<?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.goldenwater.hzz.mapper.SupervisionMapper">
    <select id="getSupervisionList" resultType="com.goldenwater.hzz.domain.SupervisionInfoDTO">SELECT * FROM GW_SUPERVISION_INFO</select>
    <select id="getAttachmentByGuid" resultType="com.goldenwater.hzz.domain.SupervisionInfoDTO">SELECT * FROM GW_SUPERVISION_ATTACHMENT WHERE SUPERVISION_GUID=#{guid}</select>
    <select id="getDivisionByGuid" resultType="com.goldenwater.hzz.domain.SupervisionInfoDTO">SELECT * FROM GW_SUPERVISION_DIVISION WHERE SUPERVISION_GUID=#{guid}</select>
    <select id="getResultByGuid" resultType="com.goldenwater.hzz.domain.SupervisionInfoDTO">SELECT * FROM GW_SUPERVISION_RESULT WHERE SUPERVISION_GUID=#{guid}</select>
    <update id="audit">UPDATE GW_SUPERVISION_INFO SET STATUS=#{audit}, AUDIT_INFO=#{auditInfo} WHERE GUID=#{guid}</update>
</mapper>
