|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.jeeplus.core.query.QueryWrapperGenerator;
|
|
import com.jeeplus.core.query.QueryWrapperGenerator;
|
|
|
|
+import com.jeeplus.flowable.service.FlowTaskService;
|
|
import com.jeeplus.flowable.service.MyNoticeService;
|
|
import com.jeeplus.flowable.service.MyNoticeService;
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
import com.jeeplus.sys.utils.Exceptions;
|
|
import com.jeeplus.sys.utils.Exceptions;
|
|
@@ -76,6 +77,9 @@ public class CollectService {
|
|
@Resource
|
|
@Resource
|
|
private WareHouseBasicMapper wareHouseBasicMapper;
|
|
private WareHouseBasicMapper wareHouseBasicMapper;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private FlowTaskService flowTaskService;
|
|
|
|
+
|
|
public void updateStatusById(CollectDto dto) {
|
|
public void updateStatusById(CollectDto dto) {
|
|
basicMapper.updateStatusById(dto.getId(), dto.getStatus());
|
|
basicMapper.updateStatusById(dto.getId(), dto.getStatus());
|
|
}
|
|
}
|
|
@@ -364,8 +368,16 @@ public class CollectService {
|
|
|
|
|
|
queryWrapper.between("a.collect_date", contractDates[0], contractDates[1]);
|
|
queryWrapper.between("a.collect_date", contractDates[0], contractDates[1]);
|
|
}
|
|
}
|
|
-
|
|
|
|
- return basicMapper.findList(page, queryWrapper);
|
|
|
|
|
|
+ IPage<CollectDto> list = basicMapper.findList(page, queryWrapper);
|
|
|
|
+ list.getRecords().stream().forEach(item -> {
|
|
|
|
+ // 领用申请
|
|
|
|
+ if (StringUtils.isNotBlank(item.getTaskId()) && StringUtils.isNotBlank(item.getStatus())) {
|
|
|
|
+ if ("2".equals(item.getStatus())) { // “审核中”的数据要获取数据审核人
|
|
|
|
+ item.setAuditUserIds(flowTaskService.getTaskAuditUsers(item.getTaskId())); // 获取数据审核人
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ return list;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|