ArchiveExpertConclusionMapper.xml 1.4 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="org.springblade.archive.mapper.ArchiveExpertConclusionMapper">
  4. <update id="updateAllArchiveByProject">
  5. update u_archives_auto set is_apply = 0,is_reviewed = 0,update_status=0,expert_id = null,is_inspect = 0
  6. where project_id = #{projectId} and is_deleted = 0
  7. </update>
  8. <update id="updateAllNodeByProject">
  9. update m_archive_tree_contract set expert_id = null,expert_name = null
  10. where project_id = #{projectId} and is_deleted = 0
  11. </update>
  12. <select id="getAllSign" resultType="org.springblade.manager.entity.SignPfxFile">
  13. select *
  14. from m_sign_pfx_file where is_deleted = 0 and certificate_user_id in
  15. <foreach collection="ids" item="id" open="(" separator="," close=")">
  16. #{id}
  17. </foreach>
  18. </select>
  19. <select id="getAllScore" resultType="org.springblade.archive.entity.ArchiveExpertScore">
  20. SELECT id,score_item ,unit_type,IFNULL(integrality,0) as integrality,IFNULL(integrality_deduction,0) as integrality_deduction,
  21. IFNULL(normative,0) as normative ,IFNULL(normative_deduction,0) as normative_deduction
  22. FROM u_archive_expert_score
  23. WHERE project_id = #{projectId} and conclusion_id = #{id} and is_deleted = 0
  24. </select>
  25. </mapper>