feat: sqlserver bug修复
This commit is contained in:
parent
acab57aa36
commit
2877d58a1f
|
|
@ -318,7 +318,7 @@
|
|||
<!-- 发送状态 -->
|
||||
<if test="param.sendStatusVal != null">
|
||||
AND t1.send_status = #{param.sendStatusVal}
|
||||
</if>
|
||||
</if>
|
||||
<if test="param.isGranted != null">
|
||||
<if test="param.isGranted">
|
||||
and t1.send_status = 1
|
||||
|
|
@ -347,9 +347,17 @@
|
|||
WHERE
|
||||
t1.delete_type = 0
|
||||
|
||||
<if test="param.sendStatusVal != null">
|
||||
AND t1.send_status = #{param.sendStatusVal}
|
||||
</if>
|
||||
<if test="param.sendStatusVal != null">
|
||||
AND t1.send_status = #{param.sendStatusVal}
|
||||
</if>
|
||||
<if test="param.isGranted != null">
|
||||
<if test="param.isGranted">
|
||||
and t1.send_status = 1
|
||||
</if>
|
||||
<if test="!param.isGranted">
|
||||
and t1.send_status in (0, 2)
|
||||
</if>
|
||||
</if>
|
||||
<include refid="paramSql"/>
|
||||
<!-- 排序 -->
|
||||
<if test="param.orderRule != null">
|
||||
|
|
@ -367,11 +375,18 @@
|
|||
LEFT JOIN hrmdepartment d ON d.id = e.DEPARTMENTID
|
||||
LEFT JOIN hrmsubcompany c ON c.id = e.subcompanyid1
|
||||
LEFT JOIN hrsa_tax_agent t2 ON t2.id = t1.tax_agent_id
|
||||
WHERE
|
||||
t1.delete_type = 0
|
||||
<if test="param.sendStatusVal != null">
|
||||
AND t1.send_status = #{param.sendStatusVal}
|
||||
</if>
|
||||
WHERE t1.delete_type = 0
|
||||
<if test="param.sendStatusVal != null">
|
||||
AND t1.send_status = #{param.sendStatusVal}
|
||||
</if>
|
||||
<if test="param.isGranted != null">
|
||||
<if test="param.isGranted">
|
||||
and t1.send_status = 1
|
||||
</if>
|
||||
<if test="!param.isGranted">
|
||||
and t1.send_status in (0, 2)
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<include refid="paramSql"/>
|
||||
<!-- 排序 -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue