|
@@ -29,6 +29,21 @@
|
|
|
group by wpu.user_id
|
|
|
order by a.audit_pass_date desc
|
|
|
</select>
|
|
|
+ <select id="getBjiProject" resultType="java.lang.Integer" >
|
|
|
+ select count(a.create_by)
|
|
|
+ from project_report_data a
|
|
|
+ left join work_project_user wpu on wpu.project_id = a.project_id
|
|
|
+ left join rural_project_records rpr on rpr.id = a.project_id
|
|
|
+ <where>
|
|
|
+ and a.del_flag = 0
|
|
|
+ and rpr.project_id is not null
|
|
|
+ and a.status = 5
|
|
|
+ and wpu.is_master = 1
|
|
|
+ and rpr.submit_money =1
|
|
|
+ and wpu.user_id=#{userId}
|
|
|
+ </where>
|
|
|
+ group by wpu.user_id
|
|
|
+ </select>
|
|
|
|
|
|
<select id="queryCount" resultType="int" >
|
|
|
select count(1)
|
|
@@ -105,7 +120,7 @@
|
|
|
and wpu.user_id = #{userId}
|
|
|
and a.del_flag = 0 and wpu.is_master = 1 and a.status = 5
|
|
|
and wa.type=4
|
|
|
- and wa.standard_id is not null
|
|
|
+ and (wa.deductOption IS NOT NULL and wa.deductOption !='' )
|
|
|
<if test="auditUserIdList.size>0">
|
|
|
and a.bzshb_user_id in
|
|
|
<foreach collection="auditUserIdList" item="auditUserId" separator="," open="(" close=")">
|
|
@@ -125,7 +140,7 @@
|
|
|
and wpu.user_id = #{userId}
|
|
|
and a.del_flag = 0 and wpu.is_master = 1 and a.status = 5
|
|
|
and wa.type=4
|
|
|
- and wa.standard_id is not null
|
|
|
+ and (wa.deductOption IS NOT NULL and wa.deductOption !='' )
|
|
|
<if test="auditUserIdList.size>0">
|
|
|
and a.bzshb_user_id in
|
|
|
<foreach collection="auditUserIdList" item="auditUserId" separator="," open="(" close=")">
|
|
@@ -144,7 +159,8 @@
|
|
|
aa.projectName,
|
|
|
aa.createDate,
|
|
|
ws.standard_detail AS "standardDetail",
|
|
|
- wa.deductOption AS "deductOption"
|
|
|
+ wa.deductOption AS "deductOption",
|
|
|
+ wa.standard_detail AS "standardDetailTwo"
|
|
|
FROM (
|
|
|
select a.id as "projectId" ,a.project_name as "projectName",a.create_date AS "createDate",prd.id as "reportId",wpu.user_id as "user_id",prd.bzshb_user_id as "bzshb_user_id" FROM rural_project_records a
|
|
|
LEFT JOIN work_project_user wpu ON wpu.project_id = a.id
|
|
@@ -159,7 +175,7 @@
|
|
|
<where>
|
|
|
and aa.user_id = #{userId}
|
|
|
AND wa.type = 4
|
|
|
- AND wa.standard_id IS NOT NULL
|
|
|
+ AND (wa.deductOption IS NOT NULL and wa.deductOption !='' )
|
|
|
<if test="auditUserIdList.size>0">
|
|
|
and aa.bzshb_user_id in
|
|
|
<foreach collection="auditUserIdList" item="auditUserId" separator="," open="(" close=")">
|
|
@@ -186,7 +202,7 @@
|
|
|
<where>
|
|
|
and wpu.user_id = #{userId}
|
|
|
AND wa.type = 4
|
|
|
- AND wa.standard_id IS NOT NULL
|
|
|
+ AND (wa.deductOption IS NOT NULL and wa.deductOption !='' )
|
|
|
<if test="auditUserIdList.size>0">
|
|
|
and prd.bzshb_user_id in
|
|
|
<foreach collection="auditUserIdList" item="auditUserId" separator="," open="(" close=")">
|
|
@@ -210,7 +226,7 @@
|
|
|
<where>
|
|
|
and wpu.user_id = #{userId}
|
|
|
AND wa.type = 4
|
|
|
- AND wa.standard_id IS NOT NULL
|
|
|
+ AND (wa.deductOption IS NOT NULL and wa.deductOption !='' )
|
|
|
<if test="auditUserIdList.size>0">
|
|
|
and prd.bzshb_user_id in
|
|
|
<foreach collection="auditUserIdList" item="auditUserId" separator="," open="(" close=")">
|
|
@@ -225,7 +241,14 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
+ <select id="getBjiStandard" resultType="java.lang.Integer">
|
|
|
+ select count(1) from work_review_standard where parent_ids like concat('0,3,','%') and
|
|
|
+ parent_id != '3'
|
|
|
+ </select>
|
|
|
+ <select id="getAjiStandard" resultType="java.lang.Integer">
|
|
|
+ select count(1) from work_review_standard where parent_ids like concat('0,1,','%') and
|
|
|
+ parent_id != '1'
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
</mapper>
|