Compare commits

..

No commits in common. "4337996e015d2b528897da05dbfc2a89922fcb0a" and "2e3f6ef8afad061fb059db2635d9ae62eb0e452a" have entirely different histories.

4 changed files with 16 additions and 28 deletions

View File

@ -101,7 +101,6 @@ public class TmTaskServiceImpl implements TmTaskService {
int result = 0;
int taskId = 0;
int num = 0;
HashSet<String> set = new HashSet<>();
Long companyId = SecurityUtils.getLoginUser().getSysUser().getCompanyId();
if (StringUtils.isNotNull(record)) {
// 内部审核
@ -155,15 +154,9 @@ public class TmTaskServiceImpl implements TmTaskService {
//短信通知人员进行出库
for (LeaseApplyDetails details : leaseApplyDetails) {
//内部审核以后通知机具管理人进行出库
set = smsNotification(details, record.getCode(), set);
}
for (String str : set) {
try {
remoteUserService.send(str, "尊敬的用户,宁夏智慧仓储管理系统提醒您:您有一个领料单号为:" + record.getCode() + "的领料申请待处理,请及时查看");
} catch (Exception e) {
log.info("手机号为:{}发送短信失败", str);
}
smsNotification(details, record.getCode());
}
} else if (record.getTaskStatus() == 32 && companyId != null) {
// 再审核领料任务信息表
List<LeaseApplyInfo> leaseApplyInfoList = record.getLeaseApplyInfoList();
@ -282,12 +275,14 @@ public class TmTaskServiceImpl implements TmTaskService {
}
}
private HashSet<String> smsNotification(LeaseApplyDetails details, String code, HashSet<String> set) {
private void smsNotification(LeaseApplyDetails details, String code) {
log.info("短信通知:{}", code);
TmTask tmTask = new TmTask();
tmTask.setId(details.getParenntId().toString());
//获取机具所属人员
List<TmTask> leaseDetailByParent = tmTaskMapper.getUserByParenntId(tmTask);
HashSet<String> set = new HashSet<>();
String message = "尊敬的用户,宁夏智慧仓储管理系统提醒您:您有一个领料单号为:" + code + "的领料申请待处理,请及时查看";
for (TmTask tmTaskNew : leaseDetailByParent) {
//对手机号进行处理因为存在一种类型的机具归属多个人的情况
log.info("短信通知人为:{}", tmTaskNew.getUserName());
@ -299,7 +294,13 @@ public class TmTaskServiceImpl implements TmTaskService {
}
}
}
return set;
for (String str : set) {
try {
remoteUserService.send(str, message);
} catch (Exception e) {
log.info("手机号为:{}发送短信失败", str);
}
}
}
@Override

View File

@ -88,18 +88,6 @@ public class PurchaseMacodeInfo extends BaseEntity
@ApiModelProperty(value = "验收数量")
private BigDecimal checkNum;
public String getCheckUrl() {
return checkUrl;
}
public void setCheckUrl(String checkUrl) {
this.checkUrl = checkUrl;
}
/** 验收材料 */
@ApiModelProperty(value = "验收材料")
private String checkUrl;
/** 验收数量 */
@ApiModelProperty(value = "绑定数量")
private Integer bindNum;

View File

@ -157,10 +157,10 @@ public class MaWholeSetServiceImpl implements MaWholeSetService {
log.error("insertMaWholeSet方法插入异常");
throw new RuntimeException("insertMaWholeSet方法插入异常");
}
/* int count = selectByWholeTypeName(dto);
if (count > 1) {
throw new RuntimeException("配套名称已重复,请重新输入");
}*/
int count = selectByWholeTypeName(dto);
if (count > 1) {
throw new RuntimeException("配套名称已重复,请重新输入");
}
} catch (Exception e) {
e.printStackTrace();
return AjaxResult.error(ExceptionEnum.UPDATE_TO_DATABASE.getCode(), ExceptionEnum.UPDATE_TO_DATABASE.getMsg());

View File

@ -375,7 +375,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
pmi.fix_code fixCode,
pcd.type_id typeId,
pcd.task_id taskId,
pcd.check_url checkUrl,
tt.task_status taskStatus,
mt.code specsCode,
mt1.code typeCode,