|
@@ -11,7 +11,7 @@ import com.rongwei.rwcommon.base.BaseDo;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
import com.rongwei.rwcommon.utils.SecurityUtil;
|
|
|
import com.rongwei.rwcommon.utils.StringUtils;
|
|
|
-import com.rongwei.safecommon.utils.CXCommonUtils;
|
|
|
+import com.rongwei.safecommon.utils.JSCommonUtils;
|
|
|
import com.rongwei.safecommon.utils.ExportExcelByEasyExcel;
|
|
|
import com.rongwei.sfcommon.sys.dao.DangerousDao;
|
|
|
import com.rongwei.sfcommon.sys.dao.SaveCheckCommonDao;
|
|
@@ -141,7 +141,7 @@ public class SafeCheckSendNotifyServiceImpl implements SafeCheckSendNotifyServic
|
|
|
String assignmentTimeEnd = item.get("ASSIGNMENTTIMEEND") == null ? "" : item.get("ASSIGNMENTTIMEEND").toString();
|
|
|
String penaltyAmount = item.get("PENALTYAMOUNT") == null ? "" : item.get("PENALTYAMOUNT").toString();
|
|
|
String modifyDate = item.get("MODIFYDATE") == null ? "" : item.get("MODIFYDATE").toString();
|
|
|
- CXCommonUtils.sendNotify(DANGEROUS_TITLE, String.format(DANGEROUS_CONTENT,
|
|
|
+ JSCommonUtils.sendNotify(DANGEROUS_TITLE, String.format(DANGEROUS_CONTENT,
|
|
|
jobType, assignmentTimeStart, assignmentTimeEnd, penaltyAmount, modifyDate),
|
|
|
"", personnelIdList, (String) item.get("ID"), DANGEROUS);
|
|
|
}
|
|
@@ -163,7 +163,7 @@ public class SafeCheckSendNotifyServiceImpl implements SafeCheckSendNotifyServic
|
|
|
String assignmentTimeEnd = dangerous.get("ASSIGNMENTTIMEEND") == null ? "" : dangerous.get("ASSIGNMENTTIMEEND").toString();
|
|
|
String penaltyAmount = dangerous.get("PENALTYAMOUNT") == null ? "" : dangerous.get("PENALTYAMOUNT").toString();
|
|
|
String modifyDate = dangerous.get("MODIFYDATE") == null ? "" : dangerous.get("MODIFYDATE").toString();
|
|
|
- CXCommonUtils.sendNotify(DANGEROUS_TITLE, String.format(DANGEROUS_CONTENT,
|
|
|
+ JSCommonUtils.sendNotify(DANGEROUS_TITLE, String.format(DANGEROUS_CONTENT,
|
|
|
jobType, assignmentTimeStart, assignmentTimeEnd, penaltyAmount, modifyDate),
|
|
|
"", personnelIdList, (String) dangerous.get("ID"), DANGEROUS);
|
|
|
}
|
|
@@ -174,7 +174,7 @@ public class SafeCheckSendNotifyServiceImpl implements SafeCheckSendNotifyServic
|
|
|
* 检查任务提醒
|
|
|
*/
|
|
|
public void sendInspectionTasksNotify(Map<String, String> sendNotifyMap) {
|
|
|
- sendNotifyMap.forEach((k, v) -> CXCommonUtils.sendNotify(INSPECTION_TASKS_TITLE, k.split(DEFAULT_SEPARATOR)[0], "",
|
|
|
+ sendNotifyMap.forEach((k, v) -> JSCommonUtils.sendNotify(INSPECTION_TASKS_TITLE, k.split(DEFAULT_SEPARATOR)[0], "",
|
|
|
Arrays.asList(v), k.split(DEFAULT_SEPARATOR)[1], INSPECTIONTASKS));
|
|
|
}
|
|
|
|
|
@@ -182,7 +182,7 @@ public class SafeCheckSendNotifyServiceImpl implements SafeCheckSendNotifyServic
|
|
|
* 隐患任务提醒
|
|
|
*/
|
|
|
public void sendDangerTasksNotify(List<HiddenDangerTrackDo> hiddenDangerTrackDos) {
|
|
|
- hiddenDangerTrackDos.forEach((k) -> CXCommonUtils.sendNotify(DANGER_TASKS_TITLE,
|
|
|
+ hiddenDangerTrackDos.forEach((k) -> JSCommonUtils.sendNotify(DANGER_TASKS_TITLE,
|
|
|
String.format(DANGER_TASKS_CONTENT, k.getWorkshop(), k.getRectificationdate())
|
|
|
, "",
|
|
|
new ArrayList<String>() {{
|
|
@@ -261,7 +261,7 @@ public class SafeCheckSendNotifyServiceImpl implements SafeCheckSendNotifyServic
|
|
|
if (userId.size() == 0) {
|
|
|
log.error("无法找到接收人!");
|
|
|
}
|
|
|
- CXCommonUtils.sendNotify(title,
|
|
|
+ JSCommonUtils.sendNotify(title,
|
|
|
context, null, userId, hiddenDangerTrackDo.getId(), DANGERTASKS);
|
|
|
return R.ok();
|
|
|
}
|
|
@@ -305,7 +305,7 @@ public class SafeCheckSendNotifyServiceImpl implements SafeCheckSendNotifyServic
|
|
|
if (userId.size() == 0) {
|
|
|
log.error("无法找到接收人!");
|
|
|
}
|
|
|
- CXCommonUtils.sendNotify(title,
|
|
|
+ JSCommonUtils.sendNotify(title,
|
|
|
context, null, userId, hiddenDangerTrackDo.getId(), DANGERTASKS);
|
|
|
return R.ok();
|
|
|
}
|
|
@@ -427,7 +427,7 @@ public class SafeCheckSendNotifyServiceImpl implements SafeCheckSendNotifyServic
|
|
|
if (StringUtils.isBlank(fileNameAndId)) {
|
|
|
return;
|
|
|
}
|
|
|
- CXCommonUtils.sendNotify(notifyId, tenantId, WEEK_HIDDEN_DANGER_TASK,
|
|
|
+ JSCommonUtils.sendNotify(notifyId, tenantId, WEEK_HIDDEN_DANGER_TASK,
|
|
|
String.format(HIDDEN_DANGER_TASK_CONTENT, dangerTrackDos.size()), fileNameAndId, recipientIds, null,
|
|
|
notifyType, false);
|
|
|
}
|
|
@@ -445,7 +445,7 @@ public class SafeCheckSendNotifyServiceImpl implements SafeCheckSendNotifyServic
|
|
|
public void rectificationNotify(List<HiddenDangerTrackDo> hiddenDangerTrackList) {
|
|
|
hiddenDangerTrackList.forEach(hiddenDangerTrack -> {
|
|
|
List<String> userIds = Arrays.asList(hiddenDangerTrack.getTrackuserid().split(","));
|
|
|
- CXCommonUtils.sendNotify(RECTIFICATION_MAIL_TITLE,
|
|
|
+ JSCommonUtils.sendNotify(RECTIFICATION_MAIL_TITLE,
|
|
|
String.format(RECTIFICATION_MAIL_CONTENT, hiddenDangerTrack.getCode(), hiddenDangerTrack.getFindtime(),
|
|
|
hiddenDangerTrack.getFindusername(), hiddenDangerTrack.getHiddendangercontent(),
|
|
|
hiddenDangerTrack.getRectificationdate()), null, userIds, hiddenDangerTrack.getId(), DANGERTASKS);
|
|
@@ -467,7 +467,7 @@ public class SafeCheckSendNotifyServiceImpl implements SafeCheckSendNotifyServic
|
|
|
hiddenDangerTrackList.forEach(hiddenDangerTrack -> {
|
|
|
List<String> userIds = Arrays.asList(hiddenDangerTrack.getShopfacilitatorid().split(","));
|
|
|
String format = String.format(VERIFICATION_REMIND_TEMP, hiddenDangerTrack.getCode(), hiddenDangerTrack.getHiddendangercontent());
|
|
|
- CXCommonUtils.sendNotify(VERIFICATION_MAIL_TITLE,
|
|
|
+ JSCommonUtils.sendNotify(VERIFICATION_MAIL_TITLE,
|
|
|
String.format(VERIFICATION_REMIND_MAIL_CONTENT, format), null, userIds, hiddenDangerTrack.getId(), DANGERTASKS);
|
|
|
});
|
|
|
|
|
@@ -486,7 +486,7 @@ public class SafeCheckSendNotifyServiceImpl implements SafeCheckSendNotifyServic
|
|
|
hiddenDangerTrackList.forEach(hiddenDangerTrack -> {
|
|
|
List<String> userIds = Arrays.asList(hiddenDangerTrack.getSafetypromoterid().split(","));
|
|
|
String format = String.format(VERIFICATION_REMIND_TEMP, hiddenDangerTrack.getCode(), hiddenDangerTrack.getHiddendangercontent());
|
|
|
- CXCommonUtils.sendNotify(AFFIRM_MAIL_TITLE,
|
|
|
+ JSCommonUtils.sendNotify(AFFIRM_MAIL_TITLE,
|
|
|
String.format(AFFIRM_REMIND_MAIL_CONTENT, format), null, userIds, hiddenDangerTrack.getId(), DANGERTASKS);
|
|
|
});
|
|
|
|