修改企业标准入库时的评分和查看时显示的评分
This commit is contained in:
+62
-2
@@ -2,6 +2,10 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.sarEnterpriseStandardEvaluation.dao.QualityEvaluationDao">
|
||||
|
||||
<update id="updateByProcessNode">
|
||||
update quality_evaluation set score = '0' where law_id = #{lawId} and process_node = '技术委员会评审、评审意见修改'
|
||||
</update>
|
||||
|
||||
<select id="getHistory"
|
||||
resultType="com.adc.da.slrs.sarEnterpriseStandardEvaluation.entity.QualityEvaluation">
|
||||
|
||||
@@ -11,8 +15,9 @@
|
||||
`index`.value_type as valueType,
|
||||
eva.evaluation_type as evaluationType,
|
||||
process_node as processNode,
|
||||
sum(eva.score * `index`.weight) AS score,
|
||||
max(eva.create_time) as createTiem
|
||||
sum(eva.score) AS score,
|
||||
max(eva.create_time) as createTiem,
|
||||
eva.law_id
|
||||
FROM
|
||||
quality_evaluation AS eva
|
||||
LEFT JOIN ts_user `user` ON eva.user_id = `user`.USID
|
||||
@@ -64,4 +69,59 @@
|
||||
)
|
||||
ORDER BY `index`.index_sort
|
||||
</select>
|
||||
|
||||
<select id="selectCountZQYJ" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
from
|
||||
quality_evaluation
|
||||
where
|
||||
law_id = #{lawId}
|
||||
and process_node = '征求意见'
|
||||
group by user_id
|
||||
</select>
|
||||
|
||||
<select id="selectCountJSWY" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
from
|
||||
quality_evaluation
|
||||
where
|
||||
law_id = #{lawId}
|
||||
and process_node = '技术委员会评审、评审意见修改'
|
||||
group by user_id
|
||||
</select>
|
||||
|
||||
<select id="selectCXJSWY" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
from
|
||||
quality_evaluation
|
||||
where
|
||||
law_id = #{lawId}
|
||||
and process_node = '重新技术委员会评审、评审意见修改'
|
||||
group by user_id
|
||||
</select>
|
||||
|
||||
<select id="selectBZHFS" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
from
|
||||
quality_evaluation
|
||||
where
|
||||
law_id = #{lawId}
|
||||
and process_node = '标准化复审'
|
||||
group by user_id
|
||||
</select>
|
||||
|
||||
<select id="selectBZSH" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
from
|
||||
quality_evaluation
|
||||
where
|
||||
law_id = #{lawId}
|
||||
and process_node = '标准法规部高级经理审核'
|
||||
group by user_id
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user