forked from luyan/epmet-cloud-lingshan
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.7 KiB
40 lines
1.7 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.epmet.dao.CodeAuditResultDao">
|
|
|
|
<resultMap type="com.epmet.entity.CodeAuditResultEntity" id="codeAuditResultMap">
|
|
<result property="id" column="ID"/>
|
|
<result property="customerId" column="CUSTOMER_ID"/>
|
|
<result property="codeId" column="CODE_ID"/>
|
|
<result property="auditId" column="AUDIT_ID"/>
|
|
<result property="result" column="RESULT"/>
|
|
<result property="reason" column="REASON"/>
|
|
<result property="revision" column="REVISION"/>
|
|
<result property="delFlag" column="DEL_FLAG"/>
|
|
<result property="createdBy" column="CREATED_BY"/>
|
|
<result property="createdTime" column="CREATED_TIME"/>
|
|
<result property="updatedBy" column="UPDATED_BY"/>
|
|
<result property="updatedTime" column="UPDATED_TIME"/>
|
|
</resultMap>
|
|
<select id="selectAuditResultByCodeId" resultType="com.epmet.dto.CodeAuditResultDTO">
|
|
SELECT * FROM code_audit_result WHERE CODE_ID = #{codeId} AND DEL_FLAG = '0'
|
|
ORDER BY CREATED_TIME DESC
|
|
</select>
|
|
<select id="selectAuditFailedList" resultType="com.epmet.dto.CodeAuditResultDTO">
|
|
SELECT * FROM code_audit_result
|
|
WHERE CODE_ID = #{codeId}
|
|
AND (RESULT = 'audit_failed' OR RESULT = 'delay')
|
|
ORDER BY CREATED_TIME DESC
|
|
</select>
|
|
<!-- 更新 代码审核结果中的审核状态 -->
|
|
<update id="updateAuditResult">
|
|
UPDATE code_audit_result
|
|
SET result = #{codeResult}
|
|
WHERE del_flag = '0'
|
|
AND customer_id = #{customerId}
|
|
AND code_id = #{codeCustomerId}
|
|
</update>
|
|
|
|
|
|
</mapper>
|