|
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.jeeplus.core.query.QueryWrapperGenerator;
|
|
|
import com.jeeplus.flowable.service.MyNoticeService;
|
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
|
+import com.jeeplus.sys.utils.Exceptions;
|
|
|
import com.jeeplus.sys.utils.StringUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
import com.jeeplus.sys.utils.UserUtils;
|
|
@@ -117,7 +118,7 @@ public class CollectService {
|
|
|
info.setUpdateBy(userDTO.getId());
|
|
|
info.setHandledBy(dto.getHandledById());
|
|
|
info.setUpdateDate(new Date());
|
|
|
-// basicMapper.updateById(info);
|
|
|
+ basicMapper.updateById(info);
|
|
|
// 修改报销详情列表信息
|
|
|
// 删除原有数据
|
|
|
// LambdaQueryWrapper<MaterialDetailed> detailWrapper = new LambdaQueryWrapper<>();
|
|
@@ -200,18 +201,25 @@ public class CollectService {
|
|
|
String day = format.format(new Date());
|
|
|
String title = userDTO.getLoginName() + " 在 " + day + " 发起了 [库存提醒]";
|
|
|
//向多个用户发起通知 徐珊、黄丽、杨娟、崇祝燕
|
|
|
- String[] names = {"徐珊","黄丽","杨娟","崇祝燕"};
|
|
|
- List<UserDTO> usersInfo = wareHouseDetailedMapper.getUsersInfo(names);
|
|
|
+// String[] names = {"徐珊","黄丽","杨娟","崇祝燕"};
|
|
|
+
|
|
|
+ List<UserDTO> usersInfo = wareHouseDetailedMapper.getUsersInfo();
|
|
|
//获取目前领用流程的taskid,根据procInsId去查taskId
|
|
|
+ String uuid = "";
|
|
|
if (null != usersInfo) {
|
|
|
- usersInfo.forEach(us->{
|
|
|
- try {
|
|
|
- //发送通知
|
|
|
- myNoticeService.add("cs", title, "", "库存提醒", userDTO.getLoginName(), day,us.getLoginName(), us.getId());
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- });
|
|
|
+ for (UserDTO userDTO1 : usersInfo) {
|
|
|
+ uuid = UUID.randomUUID().toString();
|
|
|
+ //发送通知
|
|
|
+ myNoticeService.add(uuid, title, "", "库存提醒", userDTO.getLoginName(), day,userDTO1.getLoginName(), userDTO1.getId());
|
|
|
+ }
|
|
|
+// usersInfo.forEach(us->{
|
|
|
+//
|
|
|
+// try {
|
|
|
+//
|
|
|
+// } catch (Exception e) {
|
|
|
+// e.printStackTrace();
|
|
|
+// }
|
|
|
+// });
|
|
|
}
|
|
|
// myNoticeService.add("", title, "", "库存提醒", userDTO.getLoginName(), day,"程倩", "1613087772650008578");
|
|
|
}
|
|
@@ -222,7 +230,7 @@ public class CollectService {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- basicMapper.updateById(info);
|
|
|
+// basicMapper.updateById(info);
|
|
|
// 修改附件信息列表
|
|
|
if (CollectionUtils.isNotEmpty(dto.getFiles())) {
|
|
|
infoService.updateFiles(dto.getFiles(), userDTO, dto.getId());
|