EvaluationResultDetailsMapper.xml 722 B

12345678910111213141516171819
  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="com.huaxu.evaluation.dao.EvaluationResultDetailsMapper" >
  4. <select id="findResultDetailsIds" resultType="java.lang.Integer">
  5. select d.id
  6. from sc_evaluation_result r
  7. INNER JOIN sc_evaluation_result_details d on d.EVALUATION_RESULT_ID = r.ID
  8. where
  9. r.id = #{evaluationResultId}
  10. and r.status = 1 and d.status = 1
  11. </select>
  12. <update id="updateEvaluateScore">
  13. update sc_evaluation_result_details
  14. set `VALUE` = #{score}
  15. where id = #{detailId}
  16. </update>
  17. </mapper>