|
|
|
@ -34,6 +34,7 @@ import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.SpringUtil; |
|
|
|
import org.springblade.core.tool.utils.SpringUtil; |
|
|
|
import org.springblade.desk.basic.service.ICraftAbilityService; |
|
|
|
import org.springblade.desk.basic.service.ICraftAbilityService; |
|
|
|
|
|
|
|
import org.springblade.desk.basic.service.impl.WorkCenterServiceImpl; |
|
|
|
import org.springblade.desk.dashboard.constant.*; |
|
|
|
import org.springblade.desk.dashboard.constant.*; |
|
|
|
import org.springblade.desk.dashboard.pojo.dto.DsTaskingDTO; |
|
|
|
import org.springblade.desk.dashboard.pojo.dto.DsTaskingDTO; |
|
|
|
import org.springblade.desk.dashboard.pojo.entity.*; |
|
|
|
import org.springblade.desk.dashboard.pojo.entity.*; |
|
|
|
@ -51,6 +52,7 @@ import org.springblade.desk.quality.pojo.dto.PpmReportDetailDTO; |
|
|
|
import org.springblade.desk.quality.pojo.request.ReviewSheetErpSearch; |
|
|
|
import org.springblade.desk.quality.pojo.request.ReviewSheetErpSearch; |
|
|
|
import org.springblade.desk.quality.service.IReviewSheetService; |
|
|
|
import org.springblade.desk.quality.service.IReviewSheetService; |
|
|
|
import org.springblade.erpdata.feign.IErpDataReworkTaskClient; |
|
|
|
import org.springblade.erpdata.feign.IErpDataReworkTaskClient; |
|
|
|
|
|
|
|
import org.springblade.scheduling.pojo.entity.CraftAbilityEntity; |
|
|
|
import org.springblade.scheduling.pojo.entity.WorkOrderEntity; |
|
|
|
import org.springblade.scheduling.pojo.entity.WorkOrderEntity; |
|
|
|
import org.springblade.scheduling.pojo.entity.WorkPlanEntity; |
|
|
|
import org.springblade.scheduling.pojo.entity.WorkPlanEntity; |
|
|
|
import org.springblade.system.feign.IUserClient; |
|
|
|
import org.springblade.system.feign.IUserClient; |
|
|
|
@ -158,8 +160,6 @@ public class DsTaskingServiceImpl extends BaseServiceImpl<DsTaskingMapper, DsTas |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
IReviewSheetService reviewSheetService; |
|
|
|
IReviewSheetService reviewSheetService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public IPage<DsTaskingVO> selectAssignList(IPage<DsTaskingVO> page, DsTaskingVO dsTasking) { |
|
|
|
public IPage<DsTaskingVO> selectAssignList(IPage<DsTaskingVO> page, DsTaskingVO dsTasking) { |
|
|
|
List<DsTaskingVO> dsTaskingVOS = baseMapper.selectDsTaskingPage(page, dsTasking); |
|
|
|
List<DsTaskingVO> dsTaskingVOS = baseMapper.selectDsTaskingPage(page, dsTasking); |
|
|
|
@ -738,6 +738,19 @@ public class DsTaskingServiceImpl extends BaseServiceImpl<DsTaskingMapper, DsTas |
|
|
|
|
|
|
|
|
|
|
|
// 查询工序信息
|
|
|
|
// 查询工序信息
|
|
|
|
List<DsProcessEntity> processEntities = processService.selectDsProcessByCraftId(craftVO.getId()); |
|
|
|
List<DsProcessEntity> processEntities = processService.selectDsProcessByCraftId(craftVO.getId()); |
|
|
|
|
|
|
|
for (DsProcessEntity processEntity : processEntities) { |
|
|
|
|
|
|
|
if (processEntity == null) { |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Optional.ofNullable(processEntity.getPpsId()) |
|
|
|
|
|
|
|
.map(processSetService::getById) |
|
|
|
|
|
|
|
.ifPresent(processSet -> processEntity.setProcessName(processSet.getName())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Optional.ofNullable(processEntity.getCaId()) |
|
|
|
|
|
|
|
.map(craftAbilityService::getById) |
|
|
|
|
|
|
|
.ifPresent(craftAbility -> processEntity.setCraftName(craftAbility.getCaName())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!CollectionUtils.isEmpty(processEntities)) { |
|
|
|
if (!CollectionUtils.isEmpty(processEntities)) { |
|
|
|
List<Long> processIds = processEntities.stream() |
|
|
|
List<Long> processIds = processEntities.stream() |
|
|
|
@ -2237,13 +2250,18 @@ public class DsTaskingServiceImpl extends BaseServiceImpl<DsTaskingMapper, DsTas |
|
|
|
// 设置尺寸量具列表
|
|
|
|
// 设置尺寸量具列表
|
|
|
|
List<DsProcessMeasuringToolEntity> tools = measuringToolMap.get(processId); |
|
|
|
List<DsProcessMeasuringToolEntity> tools = measuringToolMap.get(processId); |
|
|
|
processNode.setMeasuringToolList(tools != null ? |
|
|
|
processNode.setMeasuringToolList(tools != null ? |
|
|
|
tools.stream().map(JSONObject::from).collect(Collectors.toList()) : |
|
|
|
tools.stream() |
|
|
|
|
|
|
|
.sorted(Comparator.comparing(DsProcessMeasuringToolEntity::getTrialNo)) |
|
|
|
|
|
|
|
.map(JSONObject::from).collect(Collectors.toList()) : |
|
|
|
new ArrayList<>()); |
|
|
|
new ArrayList<>()); |
|
|
|
|
|
|
|
|
|
|
|
// 设置工序项目列表
|
|
|
|
// // 设置工序项目列表
|
|
|
|
List<DsProcessProjectEntity> projects = projectMap.get(processId); |
|
|
|
List<DsProcessProjectEntity> projects = projectMap.get(processId); |
|
|
|
processNode.setProjectList(projects != null ? |
|
|
|
processNode.setProjectList(projects != null ? |
|
|
|
projects.stream().map(JSONObject::from).collect(Collectors.toList()) : |
|
|
|
projects.stream() |
|
|
|
|
|
|
|
.sorted(Comparator.comparing(DsProcessProjectEntity::getTrialNo)) |
|
|
|
|
|
|
|
.map(JSONObject::from) |
|
|
|
|
|
|
|
.collect(Collectors.toList()) : |
|
|
|
new ArrayList<>()); |
|
|
|
new ArrayList<>()); |
|
|
|
|
|
|
|
|
|
|
|
processTree.add(processNode); |
|
|
|
processTree.add(processNode); |
|
|
|
|