diff --git a/attendance-performance-manager/src/main/resources/sqlmap/module/check/CheckAllRecordMapper.xml b/attendance-performance-manager/src/main/resources/sqlmap/module/check/CheckAllRecordMapper.xml index 8dc3fbad8d65b097968b01e1a87708827dea7ea2..22e0b42672ddfe37e37b01dae022d92ed52abf4b 100644 --- a/attendance-performance-manager/src/main/resources/sqlmap/module/check/CheckAllRecordMapper.xml +++ b/attendance-performance-manager/src/main/resources/sqlmap/module/check/CheckAllRecordMapper.xml @@ -14,7 +14,7 @@ <if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> UNION - SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS 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,score,subMethod,checkTime,createTime AS deductTime,4 AS checkType ,'effect' AS performType FROM mortals_xhx_check_effect_record WHERE 1=1 <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if> @@ -23,7 +23,7 @@ <if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> UNION - SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS 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,score,subMethod,checkTime,createTime AS deductTime,6 AS checkType ,'complain' AS performType FROM mortals_xhx_check_complain_record WHERE 1=1 <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if> @@ -32,7 +32,7 @@ <if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> UNION - SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS 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,score,subMethod,checkTime,createTime AS deductTime,3 AS checkType ,'gowork' AS performType FROM mortals_xhx_check_gowork_record WHERE 1=1 <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if> @@ -41,7 +41,7 @@ <if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> UNION - SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS 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,score,subMethod,checkTime,createTime AS deductTime,2 AS checkType ,'review' AS performType FROM mortals_xhx_check_review_record WHERE 1=1 <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if> @@ -50,7 +50,7 @@ <if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> UNION - SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS 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,score,subMethod,checkTime,createTime AS deductTime,5 AS checkType ,'other' AS performType FROM mortals_xhx_check_other_record WHERE 1=1 <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if> @@ -72,7 +72,7 @@ <if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> UNION - SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS 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,score,subMethod,checkTime,createTime AS deductTime,4 AS checkType ,'effect' AS performType FROM mortals_xhx_check_effect_record WHERE 1=1 <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if> @@ -81,7 +81,7 @@ <if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> UNION - SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS 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,score,subMethod,checkTime,createTime AS deductTime,6 AS checkType ,'complain' AS performType FROM mortals_xhx_check_complain_record WHERE 1=1 <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if> @@ -90,7 +90,7 @@ <if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> UNION - SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS 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,score,subMethod,checkTime,createTime AS deductTime,3 AS checkType ,'gowork' AS performType FROM mortals_xhx_check_gowork_record WHERE 1=1 <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if> @@ -99,7 +99,7 @@ <if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> UNION - SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS 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,score,subMethod,checkTime,createTime AS deductTime,2 AS checkType ,'review' AS performType FROM mortals_xhx_check_review_record WHERE 1=1 <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if> @@ -108,7 +108,7 @@ <if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> UNION - SELECT id,recordId,staffId,staffName,workNum,deptId,deptName,ruleId,ruleName,2 AS subAddType,score,subMethod,checkTime,createTime AS 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,score,subMethod,checkTime,createTime AS deductTime,5 AS checkType ,'other' AS performType FROM mortals_xhx_check_other_record WHERE 1=1 <if test="checkStatus != null and checkStatus!=''"> AND checkStatus = #{checkStatus} </if> <if test="subMethod != null and subMethod!=''"> AND subMethod = #{subMethod} </if> <if test="subAddType != null and subAddType!=''"> AND subAddType = #{subAddType} </if>