修改sql错误

This commit is contained in:
qiankunpingtai
2019-06-13 09:23:13 +08:00
parent aa2588b03b
commit e3711f4778

View File

@@ -110,10 +110,6 @@
dh.AccountIdList as AList,dh.AccountMoneyList as AMList dh.AccountIdList as AList,dh.AccountMoneyList as AMList
from jsh_depothead dh inner join jsh_supplier s on dh.OrganId = s.id and ifnull(s.delete_Flag,'0') !='1' from jsh_depothead dh inner join jsh_supplier s on dh.OrganId = s.id and ifnull(s.delete_Flag,'0') !='1'
where 1=1 where 1=1
<if test="accountId != null and remark != ''">
<bind name="remark" value="'%' + _parameter.remark + '%'"/>
and remark like #{remark}
</if>
<if test="accountId != null"> <if test="accountId != null">
<bind name="accountId" value="'%' + _parameter.accountId + '%'"/> <bind name="accountId" value="'%' + _parameter.accountId + '%'"/>
and dh.AccountIdList like #{accountId} and dh.AccountIdList like #{accountId}