|
@@ -13,17 +13,17 @@
|
|
|
<!-- select DISTINCT work_id from work_score-->
|
|
|
<!-- </select>-->
|
|
|
<select id="getScoreWork" resultType="java.util.Map">
|
|
|
- select a.work_id,b.work_name,count(a.work_id) pfrs from work_score a LEFT JOIN work b on a.work_id=b.work_id where a.`status`='1' GROUP BY a.work_id
|
|
|
+ select a.work_id,b.work_name,count(a.work_id) pfrs from work_score a LEFT JOIN work b on a.work_id=b.work_id where a.`status`='1' and a.deleted='0' GROUP BY a.work_id
|
|
|
</select>
|
|
|
|
|
|
<!-- <select id="getdfrs" resultType="java.lang.Integer">-->
|
|
|
<!-- select count(work_id) from work_score where work_id='37' and `status`='1' GROUP BY work_id-->
|
|
|
<!-- </select>-->
|
|
|
<select id="getxydfrs" resultType="java.lang.String">
|
|
|
- select user_ids from work_allocation where work_type_id = (select category_id from work where work_id=#{workId})
|
|
|
+ select user_ids from work_allocation where work_type_id = (select category_id from work where work_id=#{workId}) and deleted='0'
|
|
|
</select>
|
|
|
<select id="getdfxq" resultType="java.lang.Integer">
|
|
|
- select score from work_score where `status`='1' and work_id=#{workId}
|
|
|
+ select score from work_score where `status`='1' and work_id=#{workId} and deleted='0'
|
|
|
</select>
|
|
|
|
|
|
<!-- <select id="getScoreWork" resultType="java.util.LinkedHashMap">-->
|