我的一般重复修复
This commit is contained in:
parent
c3cc3898b4
commit
6b6450c6fc
|
|
@ -717,17 +717,17 @@
|
||||||
)
|
)
|
||||||
) m
|
) m
|
||||||
) mm
|
) mm
|
||||||
WHERE mm.rn = 1
|
|
||||||
<where>
|
<where>
|
||||||
|
mm.rn = 1
|
||||||
<if test="customParamMap != null">
|
<if test="customParamMap != null">
|
||||||
<if test="customParamMap.startDate != null and customParamMap.startDate != '' ">
|
<if test="customParamMap.startDate != null and customParamMap.startDate != '' ">
|
||||||
and date_format(m.CREATETIME,'%Y-%m-%d') >= #{customParamMap.startDate}
|
AND date_format(mm.CREATETIME,'%Y-%m-%d') >= #{customParamMap.startDate}
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.endDate != null and customParamMap.endDate != '' ">
|
<if test="customParamMap.endDate != null and customParamMap.endDate != '' ">
|
||||||
and date_format(m.CREATETIME,'%Y-%m-%d') <= #{customParamMap.endDate}
|
AND date_format(mm.CREATETIME,'%Y-%m-%d') <= #{customParamMap.endDate}
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.UNISCID and customParamMap.UNISCID != '' ">
|
<if test="customParamMap.UNISCID and customParamMap.UNISCID != '' ">
|
||||||
and m.BIZSEQID in (
|
AND mm.BIZSEQID in (
|
||||||
select BIZSEQ from aiccs.tsbizremlist tsb left join e_baseinfo eb on tsb.PRIPID = eb.PRIPID
|
select BIZSEQ from aiccs.tsbizremlist tsb left join e_baseinfo eb on tsb.PRIPID = eb.PRIPID
|
||||||
where 1=1
|
where 1=1
|
||||||
and eb.UNISCID = #{customParamMap.UNISCID}
|
and eb.UNISCID = #{customParamMap.UNISCID}
|
||||||
|
|
@ -739,7 +739,7 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.REGNO and customParamMap.REGNO != '' ">
|
<if test="customParamMap.REGNO and customParamMap.REGNO != '' ">
|
||||||
and m.BIZSEQID in (
|
AND mm.BIZSEQID in (
|
||||||
select BIZSEQ from aiccs.tsbizremlist tsb left join e_baseinfo eb on tsb.PRIPID = eb.PRIPID
|
select BIZSEQ from aiccs.tsbizremlist tsb left join e_baseinfo eb on tsb.PRIPID = eb.PRIPID
|
||||||
where 1=1
|
where 1=1
|
||||||
and eb.REGNO = #{customParamMap.REGNO}
|
and eb.REGNO = #{customParamMap.REGNO}
|
||||||
|
|
@ -751,22 +751,22 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.bustype != null and customParamMap.bustype != '' ">
|
<if test="customParamMap.bustype != null and customParamMap.bustype != '' ">
|
||||||
and m.BUSTYPE = #{customParamMap.bustype}
|
AND mm.BUSTYPE = #{customParamMap.bustype}
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.searchName != null and customParamMap.searchName != '' ">
|
<if test="customParamMap.searchName != null and customParamMap.searchName != '' ">
|
||||||
and m.BUSNAME = #{customParamMap.searchName}
|
AND mm.BUSNAME = #{customParamMap.searchName}
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.acceptno != null and customParamMap.acceptno != '' ">
|
<if test="customParamMap.acceptno != null and customParamMap.acceptno != '' ">
|
||||||
and m.ACCEPTNO = #{customParamMap.acceptno}
|
AND mm.ACCEPTNO = #{customParamMap.acceptno}
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.currentNode != null and customParamMap.currentNode != '' ">
|
<if test="customParamMap.currentNode != null and customParamMap.currentNode != '' ">
|
||||||
and m.currentNodeOrBizStatus = #{customParamMap.currentNode}
|
AND mm.currentNodeOrBizStatus = #{customParamMap.currentNode}
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.lastNode != null and customParamMap.lastNode != '' ">
|
<if test="customParamMap.lastNode != null and customParamMap.lastNode != '' ">
|
||||||
and m.lastNode = #{customParamMap.lastNode}
|
AND mm.lastNode = #{customParamMap.lastNode}
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '1'.toString() ">
|
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '1'.toString() ">
|
||||||
and m.currentNodeOrBizStatus in ('exptlistEnter',
|
AND mm.currentNodeOrBizStatus in ('exptlistEnter',
|
||||||
'serIllegalEnter',
|
'serIllegalEnter',
|
||||||
'revCancelEnter',
|
'revCancelEnter',
|
||||||
'startAccept',
|
'startAccept',
|
||||||
|
|
@ -779,7 +779,7 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '2'.toString() ">
|
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '2'.toString() ">
|
||||||
and m.currentNodeOrBizStatus in ('handleExptlist',
|
AND mm.currentNodeOrBizStatus in ('handleExptlist',
|
||||||
'handleSerIllegal',
|
'handleSerIllegal',
|
||||||
'handleRevCancel',
|
'handleRevCancel',
|
||||||
'handleCancel',
|
'handleCancel',
|
||||||
|
|
@ -798,7 +798,7 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '3'.toString() ">
|
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '3'.toString() ">
|
||||||
and m.currentNodeOrBizStatus in ( 'approvelist',
|
AND mm.currentNodeOrBizStatus in ( 'approvelist',
|
||||||
'approveSerIllegal',
|
'approveSerIllegal',
|
||||||
'approveRevCancel',
|
'approveRevCancel',
|
||||||
'approvalCancel',
|
'approvalCancel',
|
||||||
|
|
@ -817,7 +817,7 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '4'.toString() ">
|
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '4'.toString() ">
|
||||||
and m.currentNodeOrBizStatus in ('endExptlist',
|
AND mm.currentNodeOrBizStatus in ('endExptlist',
|
||||||
'endDissent',
|
'endDissent',
|
||||||
'endSerIllegal',
|
'endSerIllegal',
|
||||||
'endRevoke',
|
'endRevoke',
|
||||||
|
|
@ -828,7 +828,7 @@
|
||||||
'14','noRegister','cancelShow','noRegister')
|
'14','noRegister','cancelShow','noRegister')
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '5'.toString() ">
|
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '5'.toString() ">
|
||||||
and m.currentNodeOrBizStatus in ('overExptlist',
|
AND mm.currentNodeOrBizStatus in ('overExptlist',
|
||||||
'overDissent',
|
'overDissent',
|
||||||
'overSerIllegal',
|
'overSerIllegal',
|
||||||
'overRevoke',
|
'overRevoke',
|
||||||
|
|
@ -839,14 +839,14 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '6'.toString() ">
|
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '6'.toString() ">
|
||||||
and m.currentNodeOrBizStatus = 'clueReturn'
|
AND mm.currentNodeOrBizStatus = 'clueReturn'
|
||||||
</if>
|
</if>
|
||||||
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '7'.toString() ">
|
<if test="customParamMap.busStatus != null and customParamMap.busStatus == '7'.toString() ">
|
||||||
and m.currentNodeOrBizStatus in ('overNullify','noAccept')
|
AND mm.currentNodeOrBizStatus in ('overNullify','noAccept')
|
||||||
</if>
|
</if>
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY m.LAUPTIME DESC
|
ORDER BY mm.LAUPTIME DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="searchUnionTaskList" resultMap="TaskListUnionMap">
|
<select id="searchUnionTaskList" resultMap="TaskListUnionMap">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue