<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
a.updateTime,
</if>
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('appealTime') or colPickMode == 1 and data.containsKey('appealTime')))">
a.appealTime,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('auditResult') or colPickMode == 1 and data.containsKey('auditResult')))">
a.auditResult,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('auditDesc') or colPickMode == 1 and data.containsKey('auditDesc')))">
a.auditDesc,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('auditTime') or colPickMode == 1 and data.containsKey('auditTime')))">
a.auditTime,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('processStatus') or colPickMode == 1 and data.containsKey('processStatus')))">
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,subAddType,score,subMethod,checkTime,deductTime,1 AS checkType ,'attend' AS performType FROM mortals_xhx_check_attend_record WHERE 1=1
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,subAddType,checkStatus,checkResult,score,subMethod,checkTime,deductTime,1 AS checkType ,'attend' AS performType FROM mortals_xhx_check_attend_record WHERE 1=1
<iftest="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<iftest="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<iftest="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<iftest="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<iftest="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>
<iftest="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<iftest="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
<iftest="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
<iftest="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
<iftest="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
UNION
UNION
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,subAddType,score,subMethod,checkTime,deductTime,4 AS checkType ,'effect' AS performType FROM mortals_xhx_check_effect_record WHERE 1=1
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,subAddType,checkStatus,checkResult,score,subMethod,checkTime,deductTime,4 AS checkType ,'effect' AS performType FROM mortals_xhx_check_effect_record WHERE 1=1
<iftest="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<iftest="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<iftest="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<iftest="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<iftest="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>
<iftest="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<iftest="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
<iftest="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
<iftest="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
<iftest="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
UNION
UNION
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,subAddType,score,subMethod,checkTime, deductTime,6 AS checkType ,'complain' AS performType FROM mortals_xhx_check_complain_record WHERE 1=1
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,subAddType,checkStatus,checkResult,score,subMethod,checkTime, deductTime,6 AS checkType ,'complain' AS performType FROM mortals_xhx_check_complain_record WHERE 1=1
<iftest="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<iftest="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<iftest="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<iftest="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<iftest="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>
<iftest="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<iftest="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
<iftest="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
<iftest="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
<iftest="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
UNION
UNION
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName, subAddType,score,subMethod,checkTime, deductTime,3 AS checkType ,'gowork' AS performType FROM mortals_xhx_check_gowork_record WHERE 1=1
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName, subAddType,checkStatus,checkResult,score,subMethod,checkTime, deductTime,3 AS checkType ,'gowork' AS performType FROM mortals_xhx_check_gowork_record WHERE 1=1
<iftest="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<iftest="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<iftest="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<iftest="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<iftest="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>
<iftest="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<iftest="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
<iftest="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
<iftest="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
<iftest="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
UNION
UNION
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,subAddType,score,subMethod,checkTime, deductTime,2 AS checkType ,'review' AS performType FROM mortals_xhx_check_review_record WHERE 1=1
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,subAddType,checkStatus,checkResult,score,subMethod,checkTime, deductTime,2 AS checkType ,'review' AS performType FROM mortals_xhx_check_review_record WHERE 1=1
<iftest="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<iftest="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<iftest="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<iftest="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<iftest="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>
<iftest="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<iftest="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
<iftest="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
<iftest="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
<iftest="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
UNION
UNION
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,subAddType,score,subMethod,checkTime, deductTime,5 AS checkType ,'other' AS performType FROM mortals_xhx_check_other_record WHERE 1=1
SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,subAddType,checkStatus,checkResult,score,subMethod,checkTime, deductTime,5 AS checkType ,'other' AS performType FROM mortals_xhx_check_other_record WHERE 1=1
<iftest="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<iftest="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if>
<iftest="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<iftest="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if>
<iftest="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>
<iftest="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>