Эх сурвалжийг харах

修改积分 内部统计规则

zx 3 сар өмнө
parent
commit
1ce1ccaf42

+ 3 - 3
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmScoreRankManagerMapper.xml

@@ -182,7 +182,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         from pdm_work_plan
         where date_format(plan_start_wk_tm,'%Y%m%d')  >= #{startDate}
           and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}
-        and work_team_nm like '%公司'
+        and work_team_nm like '%公司' and work_team_nm not like '%雁能%'
         GROUP BY work_team_nm,work_princip_nm,work_princip_id
         )t1
         LEFT JOIN
@@ -195,7 +195,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         from
         pdm_violation_records t1,pdm_inspection_records t2,pdm_work_plan t3
         where t1.audit_rec_id = t2.audit_rec_id and t1.day_op_info_id = t3.uuid
-        and work_team_nm like '%公司'
+        and work_team_nm like '%公司' and work_team_nm not like '%雁能%'
         and date_format(plan_start_wk_tm,'%Y%m%d')  >= #{startDate}
         and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}
         GROUP BY work_team_nm,work_princip_nm,t3.work_princip_id
@@ -208,7 +208,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         from
         pdm_inspection_problem_records t1,pdm_inspection_records t2,pdm_work_plan t3
         where t1.day_op_info_id = t2.day_op_info_id and  t2.day_op_info_id = t3.uuid
-        and work_team_nm like '%公司'
+        and work_team_nm like '%公司' and work_team_nm not like '%雁能%'
         and date_format(plan_start_wk_tm,'%Y%m%d')  >= #{startDate}
         and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}
         GROUP BY work_team_nm,work_princip_nm,t3.work_princip_id

+ 3 - 3
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmScoreRankTeamMapper.xml

@@ -174,7 +174,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         sum(if(op_risk_lvl_cd = '2007004',1,0))*1 work_level_4,
         sum(if(op_risk_lvl_cd = '2007005',1,0))*0.5 work_level_5
         from pdm_work_plan
-        where work_team_nm like '%公司'
+        where work_team_nm like '%公司' and work_team_nm not like '%雁能%'
         and date_format(plan_start_wk_tm,'%Y%m%d')  >= #{startDate}
         and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}
         GROUP BY work_team_nm
@@ -189,7 +189,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         from
         pdm_violation_records t1,pdm_inspection_records t2,pdm_work_plan t3
         where t1.audit_rec_id = t2.audit_rec_id and t1.day_op_info_id = t3.uuid
-        and work_team_nm like '%公司'
+        and work_team_nm like '%公司' and work_team_nm not like '%雁能%'
         and date_format(plan_start_wk_tm,'%Y%m%d')  >= #{startDate}
         and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}
         GROUP BY work_team_nm
@@ -202,7 +202,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         from
         pdm_inspection_problem_records t1,pdm_inspection_records t2,pdm_work_plan t3
         where t1.day_op_info_id = t2.day_op_info_id and  t2.day_op_info_id = t3.uuid
-        and work_team_nm like '%公司'
+        and work_team_nm like '%公司' and work_team_nm not like '%雁能%'
         and date_format(plan_start_wk_tm,'%Y%m%d')  >= #{startDate}
         and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}
         GROUP BY work_team_nm

+ 3 - 3
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmScoreRankWorkerMapper.xml

@@ -201,7 +201,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         where t1.uuid =t2.op_plan_id
         and date_format(plan_start_wk_tm,'%Y%m%d')  >= #{startDate}
         and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}
-        and work_team_nm like '%公司'
+        and work_team_nm like '%公司' and work_team_nm not like '%雁能%'
         GROUP BY work_team_nm,person_nm,person_nm
         )t1
         LEFT JOIN
@@ -214,7 +214,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         from
         pdm_violation_records t1,pdm_inspection_records t2,pdm_work_plan t3,pdm_work_plan_worker t4
         where t1.audit_rec_id = t2.audit_rec_id and t1.day_op_info_id = t3.uuid and t3.uuid =t4.op_plan_id
-        and work_team_nm like '%公司'
+        and work_team_nm like '%公司' and work_team_nm not like '%雁能%'
         and date_format(plan_start_wk_tm,'%Y%m%d')  >= #{startDate}
         and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}
         GROUP BY t3.work_team_nm,person_nm,person_id
@@ -227,7 +227,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         from
         pdm_inspection_problem_records t1,pdm_inspection_records t2,pdm_work_plan t3,pdm_work_plan_worker t4
         where t1.day_op_info_id = t2.day_op_info_id and  t2.day_op_info_id = t3.uuid and t3.uuid =t4.op_plan_id
-        and work_team_nm like '%公司'
+        and work_team_nm like '%公司' and work_team_nm not like '%雁能%'
         and date_format(plan_start_wk_tm,'%Y%m%d')  >= #{startDate}
         and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}
         GROUP BY t3.work_team_nm,person_nm,person_id