给单据增加账户、状态和备注的筛选接口
This commit is contained in:
@@ -113,6 +113,14 @@
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
<if test="accountId != null">
|
||||
<bind name="bindAccountId" value="'%'+accountId+'%'"/>
|
||||
and (dh.account_id=#{accountId} or dh.account_id_list like #{bindAccountId})
|
||||
</if>
|
||||
<if test="remark != null and remark !=''">
|
||||
<bind name="bindRemark" value="'%'+remark+'%'"/>
|
||||
and dh.remark like #{bindRemark}
|
||||
</if>
|
||||
and ifnull(dh.delete_flag,'0') !='1'
|
||||
order by dh.id desc
|
||||
<if test="offset != null and rows != null">
|
||||
@@ -181,6 +189,14 @@
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
<if test="accountId != null">
|
||||
<bind name="bindAccountId" value="'%'+accountId+'%'"/>
|
||||
and (dh.account_id=#{accountId} or dh.account_id_list like #{bindAccountId})
|
||||
</if>
|
||||
<if test="remark != null and remark !=''">
|
||||
<bind name="bindRemark" value="'%'+remark+'%'"/>
|
||||
and dh.remark like #{bindRemark}
|
||||
</if>
|
||||
and ifnull(dh.delete_Flag,'0') !='1') tb
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user