This commit is contained in:
parent
14c2318b26
commit
dea5b4faa2
|
|
@ -142,14 +142,24 @@ public class ScheduledCheckWarning {
|
||||||
|
|
||||||
// 省公司短信发送
|
// 省公司短信发送
|
||||||
List<SmsParam> mobileList2 = new ArrayList<>();
|
List<SmsParam> mobileList2 = new ArrayList<>();
|
||||||
List<UseMaintenanceWarningBean> userManger = mapper.getUserManger(bean2);
|
// 送一
|
||||||
|
if (bean2.getDeptId() != null && bean2.getDeptId() == 327L) {
|
||||||
if(userManger !=null && userManger.size()>0){
|
// 获取吕猛手机号
|
||||||
for (UseMaintenanceWarningBean item : userManger){
|
UseMaintenanceWarningBean useMaintenanceWarningBean = new UseMaintenanceWarningBean();
|
||||||
UseMaintenanceWarningBean item1 = mapper.getUserPhoneById(item);
|
useMaintenanceWarningBean.setUserName("lvm753x");
|
||||||
if(item1.getClzPhone() != null){
|
UseMaintenanceWarningBean item = mapper.getUserPhoneById(useMaintenanceWarningBean);
|
||||||
mobileList2.add(new SmsParam(item1.getClzPhone(), content2));
|
if(item.getClzPhone() != null){
|
||||||
}
|
mobileList2.add(new SmsParam(item.getClzPhone(), content2));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 送二
|
||||||
|
if (bean2.getDeptId() != null && bean2.getDeptId() == 102L) {
|
||||||
|
// 获取武抒理手机号
|
||||||
|
UseMaintenanceWarningBean useMaintenanceWarningBean = new UseMaintenanceWarningBean();
|
||||||
|
useMaintenanceWarningBean.setUserName("wusl6593");
|
||||||
|
UseMaintenanceWarningBean item = mapper.getUserPhoneById(useMaintenanceWarningBean);
|
||||||
|
if(item.getClzPhone() != null){
|
||||||
|
mobileList2.add(new SmsParam(item.getClzPhone(), content2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.println("短信发送成功: " + mobileList2);
|
System.out.println("短信发送成功: " + mobileList2);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue