| 12345678910111213141516171819202122232425262728 |
- <?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="org.springblade.archive.mapper.ArchiveExpertConclusionMapper">
- <update id="updateAllArchiveByProject">
- update u_archives_auto set is_apply = 0,is_reviewed = 0,update_status=0,expert_id = null,is_inspect = 0
- where project_id = #{projectId} and is_deleted = 0
- </update>
- <update id="updateAllNodeByProject">
- update m_archive_tree_contract set expert_id = null,expert_name = null
- where project_id = #{projectId} and is_deleted = 0
- </update>
- <select id="getAllSign" resultType="org.springblade.manager.entity.SignPfxFile">
- select *
- from m_sign_pfx_file where is_deleted = 0 and certificate_user_id in
- <foreach collection="ids" item="id" open="(" separator="," close=")">
- #{id}
- </foreach>
- </select>
- <select id="getAllScore" resultType="org.springblade.archive.entity.ArchiveExpertScore">
- SELECT id,score_item ,unit_type,IFNULL(integrality,0) as integrality,IFNULL(integrality_deduction,0) as integrality_deduction,
- IFNULL(normative,0) as normative ,IFNULL(normative_deduction,0) as normative_deduction
- FROM u_archive_expert_score
- WHERE project_id = #{projectId} and conclusion_id = #{id} and is_deleted = 0
- </select>
- </mapper>
|