@@ -111,7 +111,7 @@ public interface TaxRuleSettingMapper extends MyMapper {
...
@@ -111,7 +111,7 @@ public interface TaxRuleSettingMapper extends MyMapper {
*/
*/
intupdateByPrimaryKey(TaxRuleSettingrecord);
intupdateByPrimaryKey(TaxRuleSettingrecord);
@Select("SELECT TRS.GROUP_NAME,TRS.ID,TRS.IS_DEFAULT,TRS.NAME,TRS.TAX_BASE,TRS.TAX_RATE*100 AS TAX_RATE,TRSO.ORGANIZATION_ID"
@Select("SELECT TRS.GROUP_NAME as groupName,TRS.ID as id,TRS.IS_DEFAULT as isDefault,TRS.NAME as name,TRS.TAX_BASE as taxBase,TRS.TAX_RATE*100 AS taxRate,TRSO.ORGANIZATION_ID as organizationId"
+" FROM TAX_RULE_SETTING TRS "
+" FROM TAX_RULE_SETTING TRS "
+"LEFT JOIN TAX_RULE_SETTING_ORGANIZATION TRSO ON TRS.ID=TRSO.TAX_SETTING_ID")
+"LEFT JOIN TAX_RULE_SETTING_ORGANIZATION TRSO ON TRS.ID=TRSO.TAX_SETTING_ID")