fix(bonus-material): 领料出库驳回修改任务状态
This commit is contained in:
parent
eecad8ae44
commit
db111f72b8
|
|
@ -325,7 +325,8 @@ public class LeaseTaskServiceImpl implements ILeaseTaskService {
|
||||||
.filter(item -> containsKeyword(item, keyWord))
|
.filter(item -> containsKeyword(item, keyWord))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
if(leaseApplyInfo.getIsApp()==null){
|
|
||||||
|
if(leaseApplyInfo.getIsApp() == null) {
|
||||||
if (taskStatus != null) {
|
if (taskStatus != null) {
|
||||||
list = list.stream()
|
list = list.stream()
|
||||||
.filter(item -> item.getTaskStatus().equals(taskStatus))
|
.filter(item -> item.getTaskStatus().equals(taskStatus))
|
||||||
|
|
@ -879,6 +880,12 @@ public class LeaseTaskServiceImpl implements ILeaseTaskService {
|
||||||
if (details == 0) {
|
if (details == 0) {
|
||||||
throw new ServiceException("发布驳回详情删除失败,请联系管理员");
|
throw new ServiceException("发布驳回详情删除失败,请联系管理员");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 任务修改为未完成状态
|
||||||
|
int taskResult = tmTaskMapper.updateTaskStatus(String.valueOf(leaseApplyDetails.getTaskId()), 1);
|
||||||
|
if (taskResult == 0) {
|
||||||
|
System.err.println("任务修改为未完成状态失败,请联系管理员");
|
||||||
|
}
|
||||||
return AjaxResult.success("驳回成功");
|
return AjaxResult.success("驳回成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue