|
|
@@ -170,17 +170,8 @@ public class AuditServiceImpl implements AuditService {
|
|
|
data.put("data_source_id_", id);
|
|
|
data.put("data_info_", T_RYPXCJB);
|
|
|
data.put("type_", TRAIN_REMIND_NOTICE); // 人员培训准备通知
|
|
|
- String sql = "select id_ from ibps_party_user_calendar where data_info_='%s' and data_source_id_='%s' and user_id_='%s' and type_='%s' limit 1";
|
|
|
- sql = String.format(sql,T_RYPXCJB, id, userId, TRAIN_REMIND_NOTICE);
|
|
|
- Map<String,Object> map = commonDao.queryOne(sql);
|
|
|
- if (BeanUtils.isEmpty(map)){
|
|
|
- commonDao.execute(buildInsertSql(data,"ibps_party_user_calendar"));
|
|
|
- }else {
|
|
|
- String updSQL= "update ibps_party_user_calendar set di_dian_='%s',user_id_='%s',title_='%s',content_='%s',start_time_='%s',end_time_='%s', " +
|
|
|
- "update_by_='1',update_time_=now() where data_info_='%s' and data_source_id_='%s' and user_id_='%s' and type_='%s'";
|
|
|
- updSQL = String.format(updSQL,diDian,userId,title,peiXunNeiRong,starDate,endDate,T_RYPXCJB, id, userId, TRAIN_REMIND_NOTICE);
|
|
|
- commonDao.execute(updSQL);
|
|
|
- }
|
|
|
+ commonDao.execute(buildInsertSql(data,"ibps_party_user_calendar"));
|
|
|
+ log.warn(" com.lc.ibps.business.service.impl.AuditServiceImpl.sendCalendarRemind()--->人员培训准备通知添加日历成功!");
|
|
|
}
|
|
|
|
|
|
//培训通知
|