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