| | |
| | | <?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.gkhy.exam.system.mapper.InternalAuditCheckMapper"> |
| | | <update id="updateByYearAndDeptId"> |
| | | update internal_audit_check set person_id = #{personId} ,start_time = #{startTime},end_time = #{endTime} where year = #{year} and dept_id = #{deptId} and company_id = #{companyId} |
| | | </update> |
| | | |
| | | |
| | | <select id="selectInternalAuditCheckList" resultType="com.gkhy.exam.system.domain.InternalAuditCheck"> |
| | |
| | | iac.`person_id`, |
| | | es.`name` as person_name, |
| | | iac.`check_time`, |
| | | iac.`start_time`, |
| | | iac.`end_time`, |
| | | iac.`year`, |
| | | iac.`del_flag`, |
| | | iac.`create_by`, |
| | | iac.`create_time`, |
| | |
| | | ORDER BY |
| | | iac.create_time DESC |
| | | </select> |
| | | <select id="selectAuditCheckCatalogue" |
| | | resultType="com.gkhy.exam.system.domain.InternalAuditCheckCatalogue"> |
| | | |
| | | |
| | | |
| | | <select id ="getStatisticData" resultType="int"> |
| | | select count(*) |
| | | from internal_audit_check_content aa |
| | | INNER JOIN internal_audit_check_catalogue bb on aa.check_catalogue_id = bb.id |
| | | INNER JOIN internal_audit_check cc on bb.check_id = cc.id |
| | | where aa.del_flag = 0 |
| | | and bb.del_flag = 0 |
| | | and cc.del_flag = 0 |
| | | and aa.result != 1 |
| | | and cc.company_id = #{companyId} and cc.check_time between #{startTime} and #{endTime} |
| | | </select> |
| | | </mapper> |