Explorar o código

[task-1674]日常表单未填写时下午下班前提醒对应岗位的人/【后端】每天下午提醒未作保养的设备

szjbdgzl %!s(int64=2) %!d(string=hai) anos
pai
achega
5ec9a63e67

+ 2 - 2
ibps-provider-root/modules/provider-platform/src/main/java/com/lc/ibps/platform/plan/job/DeviceToDoRemindJob.java

@@ -34,12 +34,12 @@ public class DeviceToDoRemindJob extends BaseJob2 {
 
 
         // 按部门分组,查询每个部门没做保养的设备数量
-        String sql = "select bian_zhi_bu_men_ from t_mjsbwhbyjlby where shi_fou_guo_shen_ ='待处理' group by bian_zhi_bu_men_";
+        String sql = "select bian_zhi_bu_men_ from t_mjsbwhbyjlby where shi_fou_guo_shen_ ='待处理' and ji_hua_shi_jian_=current_date group by bian_zhi_bu_men_";
         List<Map<String, Object>> deptList = (List<Map<String, Object>>)commonDao.query(sql);
         if (BeanUtils.isNotEmpty(deptList)){
             for (Map<String,Object> map : deptList){
                 String deptId = map.get("bian_zhi_bu_men_").toString();
-                Map<String,Object> total = commonDao.queryOne("select count(1) total from t_mjsbwhbyjlby where bian_zhi_bu_men_ ='"+deptId+"'");
+                Map<String,Object> total = commonDao.queryOne("select count(1) total from t_mjsbwhbyjlby where ji_hua_shi_jian_=current_date and bian_zhi_bu_men_ ='"+deptId+"'");
                 long count = (long)total.get("total");
                 if (count>0){
                     // 发系统消息给对应的专业组组长