|
@@ -39,7 +39,7 @@ public class AuditServiceImpl implements AuditService {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void personnelTrain(String[] records) throws Exception {
|
|
public void personnelTrain(String[] records) throws Exception {
|
|
|
-
|
|
|
|
|
|
|
+ log.warn(" com.lc.ibps.business.service.impl.AuditServiceImpl.personnelTrain()--->人员培训通知:records: {}", Arrays.toString(records));
|
|
|
String sql = "select p.id_,p.bian_zhi_ren_,e.name_,p.bian_zhi_bu_men_,d.name_ as dept_name_,p.pei_xun_nei_rong_,p.shi_fou_guo_shen_," +
|
|
String sql = "select p.id_,p.bian_zhi_ren_,e.name_,p.bian_zhi_bu_men_,d.name_ as dept_name_,p.pei_xun_nei_rong_,p.shi_fou_guo_shen_," +
|
|
|
"date_format(p.pei_xun_shi_jian_,'%%Y-%%m-%%d') pei_xun_shi_jian_,date_format(p.pei_xun_jie_shu_s,'%%Y-%%m-%%d') " +
|
|
"date_format(p.pei_xun_shi_jian_,'%%Y-%%m-%%d') pei_xun_shi_jian_,date_format(p.pei_xun_jie_shu_s,'%%Y-%%m-%%d') " +
|
|
|
" pei_xun_jie_shu_s,p.pei_xun_ren_yuan_,p.pei_xun_di_dian_,p.pei_xun_lao_shi_,p.di_dian_," +
|
|
" pei_xun_jie_shu_s,p.pei_xun_ren_yuan_,p.pei_xun_di_dian_,p.pei_xun_lao_shi_,p.di_dian_," +
|
|
@@ -60,10 +60,6 @@ public class AuditServiceImpl implements AuditService {
|
|
|
String starDate = train.get("pei_xun_shi_jian_").toString();
|
|
String starDate = train.get("pei_xun_shi_jian_").toString();
|
|
|
String peiXunNeiRong = train.get("pei_xun_nei_rong_").toString();
|
|
String peiXunNeiRong = train.get("pei_xun_nei_rong_").toString();
|
|
|
|
|
|
|
|
- if (train.get("shi_fou_guo_shen_").equals("未发布") && train.get("type_").equals("1")){
|
|
|
|
|
- commonDao.execute("update t_rypxcjb set shi_fou_guo_shen_='未开始' where id_= '"+id+"'");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
// 信息不全,发消息提醒 否则发公告
|
|
// 信息不全,发消息提醒 否则发公告
|
|
|
if (BeanUtils.isEmpty(train.get("pei_xun_jie_shu_s")) || BeanUtils.isEmpty(train.get("pei_xun_ren_yuan_"))
|
|
if (BeanUtils.isEmpty(train.get("pei_xun_jie_shu_s")) || BeanUtils.isEmpty(train.get("pei_xun_ren_yuan_"))
|
|
|
|| BeanUtils.isEmpty(train.get("pei_xun_lao_shi_")) || BeanUtils.isEmpty(train.get("pei_xun_di_dian_"))){
|
|
|| BeanUtils.isEmpty(train.get("pei_xun_lao_shi_")) || BeanUtils.isEmpty(train.get("pei_xun_di_dian_"))){
|
|
@@ -75,6 +71,7 @@ public class AuditServiceImpl implements AuditService {
|
|
|
String title = "【"+ peiXunNeiRong +"】的培训准备通知";
|
|
String title = "【"+ peiXunNeiRong +"】的培训准备通知";
|
|
|
String content = "您有一个主题为【"+peiXunNeiRong+"】的培训将于 "+starDate+" 开始,请及时前往培训管理页面完善培训信息!";
|
|
String content = "您有一个主题为【"+peiXunNeiRong+"】的培训将于 "+starDate+" 开始,请及时前往培训管理页面完善培训信息!";
|
|
|
this.sendCalendarRemind(id,fuzeren,content,starDate,title,didian,endDate);
|
|
this.sendCalendarRemind(id,fuzeren,content,starDate,title,didian,endDate);
|
|
|
|
|
+ log.warn("培训相关的信息填写不完整,发送日历提醒培训负责人,培训记录ID={}",id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (BeanUtils.isNotEmpty(train.get("pei_xun_jie_shu_s")) && BeanUtils.isNotEmpty(train.get("pei_xun_ren_yuan_"))
|
|
if (BeanUtils.isNotEmpty(train.get("pei_xun_jie_shu_s")) && BeanUtils.isNotEmpty(train.get("pei_xun_ren_yuan_"))
|
|
@@ -85,6 +82,11 @@ public class AuditServiceImpl implements AuditService {
|
|
|
String teachIds = train.get("pei_xun_lao_shi_").toString();
|
|
String teachIds = train.get("pei_xun_lao_shi_").toString();
|
|
|
String bianZhiBuMen = train.get("bian_zhi_bu_men_").toString();
|
|
String bianZhiBuMen = train.get("bian_zhi_bu_men_").toString();
|
|
|
|
|
|
|
|
|
|
+ if (train.get("shi_fou_guo_shen_").equals("未发布") && train.get("type_").equals("1")){
|
|
|
|
|
+ commonDao.execute("update t_rypxcjb set shi_fou_guo_shen_='未开始' where id_= '"+id+"'");
|
|
|
|
|
+ log.warn("培训相关的信息填写完整,修改培训状态为未开始,培训记录ID={}",id);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (BeanUtils.isNotEmpty(teachIds)){
|
|
if (BeanUtils.isNotEmpty(teachIds)){
|
|
|
nameIds = deduplication(nameIds + "," + teachIds);
|
|
nameIds = deduplication(nameIds + "," + teachIds);
|
|
|
}
|
|
}
|
|
@@ -114,6 +116,7 @@ public class AuditServiceImpl implements AuditService {
|
|
|
newsPo.setType(didian);
|
|
newsPo.setType(didian);
|
|
|
newsPo.setKey(id);
|
|
newsPo.setKey(id);
|
|
|
saveNews(newsPo);
|
|
saveNews(newsPo);
|
|
|
|
|
+ log.warn("培训相关的信息填写完整,发布日历和公告,培训记录ID={}",id);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -224,7 +227,7 @@ public class AuditServiceImpl implements AuditService {
|
|
|
// 管理评审通知
|
|
// 管理评审通知
|
|
|
@Override
|
|
@Override
|
|
|
public void NoticeByOneMonth(){
|
|
public void NoticeByOneMonth(){
|
|
|
-
|
|
|
|
|
|
|
+ log.warn(" com.lc.ibps.business.service.impl.AuditServiceImpl.NoticeByOneMonth()--->管理评审通知");
|
|
|
String sql = "select id_,ri_qi_,bian_zhi_bu_men_,di_dian_,date_format(date_sub(ri_qi_, interval 5 day),'%Y-%m-%d') as advance,now() as current_date_,YEAR(ri_qi_) as year_," +
|
|
String sql = "select id_,ri_qi_,bian_zhi_bu_men_,di_dian_,date_format(date_sub(ri_qi_, interval 5 day),'%Y-%m-%d') as advance,now() as current_date_,YEAR(ri_qi_) as year_," +
|
|
|
"IF(date_sub(ri_qi_,interval 5 day)>=CURRENT_DATE,'1','0') as type_ from t_gglpsjhx " +
|
|
"IF(date_sub(ri_qi_,interval 5 day)>=CURRENT_DATE,'1','0') as type_ from t_gglpsjhx " +
|
|
|
" where shi_fou_guo_shen_='已完成' and (date_format(ri_qi_,'%Y-%m-%d')<=date_format(date_add(now(), interval 1 month),'%Y-%m-%d')" +
|
|
" where shi_fou_guo_shen_='已完成' and (date_format(ri_qi_,'%Y-%m-%d')<=date_format(date_add(now(), interval 1 month),'%Y-%m-%d')" +
|
|
@@ -265,6 +268,7 @@ public class AuditServiceImpl implements AuditService {
|
|
|
newsPo.setType(glps.get("di_dian_").toString());
|
|
newsPo.setType(glps.get("di_dian_").toString());
|
|
|
}
|
|
}
|
|
|
newsMgrService.save(newsPo);
|
|
newsMgrService.save(newsPo);
|
|
|
|
|
+ log.warn("管理评审通知发送成功,ID=={}",id);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -274,6 +278,7 @@ public class AuditServiceImpl implements AuditService {
|
|
|
// 内审通知
|
|
// 内审通知
|
|
|
@Override
|
|
@Override
|
|
|
public void internalAudit(){
|
|
public void internalAudit(){
|
|
|
|
|
+ log.warn(" com.lc.ibps.business.service.impl.AuditServiceImpl.NoticeByOneMonth()--->内审通知");
|
|
|
String sql = "SELECT id_,nei_shen_kai_shi_,nei_shen_jie_shu_,bian_zhi_bu_men_,di_dian_,kuai_zhao_,nei_shen_zu_cheng,nei_shen_zu_zu_ch,nei_shen_ren_yuan from t_nbss WHERE shi_fou_guo_shen_='已完成' " +
|
|
String sql = "SELECT id_,nei_shen_kai_shi_,nei_shen_jie_shu_,bian_zhi_bu_men_,di_dian_,kuai_zhao_,nei_shen_zu_cheng,nei_shen_zu_zu_ch,nei_shen_ren_yuan from t_nbss WHERE shi_fou_guo_shen_='已完成' " +
|
|
|
"and (date_format(nei_shen_kai_shi_,'%Y-%m-%d')<=date_format(date_add(now(), interval 1 month),'%Y-%m-%d') and date_format(nei_shen_kai_shi_,'%Y-%m-%d')>=CURRENT_DATE ) ";
|
|
"and (date_format(nei_shen_kai_shi_,'%Y-%m-%d')<=date_format(date_add(now(), interval 1 month),'%Y-%m-%d') and date_format(nei_shen_kai_shi_,'%Y-%m-%d')>=CURRENT_DATE ) ";
|
|
|
List<Map<String, Object>> list = (List<Map<String, Object>>) commonDao.query(sql);
|
|
List<Map<String, Object>> list = (List<Map<String, Object>>) commonDao.query(sql);
|
|
@@ -316,6 +321,7 @@ public class AuditServiceImpl implements AuditService {
|
|
|
newsPo.setFileAttach(nbps.get("kuai_zhao_").toString());
|
|
newsPo.setFileAttach(nbps.get("kuai_zhao_").toString());
|
|
|
}
|
|
}
|
|
|
newsMgrService.save(newsPo);
|
|
newsMgrService.save(newsPo);
|
|
|
|
|
+ log.warn("内审通知发送成功,ID=={}",id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|