|
|
|
|
@ -54,13 +54,16 @@ import org.springblade.desk.quality.constant.QAModuleConst; |
|
|
|
|
import org.springblade.desk.quality.excel.InspectionTaskExcel; |
|
|
|
|
import org.springblade.desk.quality.pojo.entity.InspectionTask; |
|
|
|
|
import org.springblade.desk.quality.pojo.entity.ReviewSheet; |
|
|
|
|
import org.springblade.desk.quality.pojo.entity.WorkPlanItem; |
|
|
|
|
import org.springblade.desk.quality.pojo.request.InspectionTaskSearch; |
|
|
|
|
import org.springblade.desk.quality.pojo.request.InspectionTaskStartNew; |
|
|
|
|
import org.springblade.desk.quality.pojo.vo.InspectionTaskDetailVO; |
|
|
|
|
import org.springblade.desk.quality.pojo.vo.InspectionTaskListVO; |
|
|
|
|
import org.springblade.desk.quality.pojo.vo.InspectionTaskSubPartVO; |
|
|
|
|
import org.springblade.desk.quality.pojo.vo.WorkPlanItemVO; |
|
|
|
|
import org.springblade.desk.quality.service.IInspectionTaskService; |
|
|
|
|
import org.springblade.desk.quality.service.IReviewSheetSubService; |
|
|
|
|
import org.springblade.desk.quality.service.IWorkPlanItemService; |
|
|
|
|
import org.springblade.desk.quality.service.InspectionTaskService2; |
|
|
|
|
import org.springblade.desk.quality.wrapper.InspectionTaskDetailWrapper; |
|
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
|
@ -107,6 +110,8 @@ public class InspectionTaskController extends BladeController { |
|
|
|
|
private IYieldOrderService yieldOrderService; |
|
|
|
|
@Resource |
|
|
|
|
private WorkPlanMapper workPlanMapper; |
|
|
|
|
@Resource |
|
|
|
|
private IWorkPlanItemService workPlanItemService; |
|
|
|
|
/** |
|
|
|
|
* [检验任务] 详情 |
|
|
|
|
*/ |
|
|
|
|
@ -122,6 +127,39 @@ public class InspectionTaskController extends BladeController { |
|
|
|
|
return R.data(detailDetailVO); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/getItems") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@Operation(summary = "详情", description = "传入inspectionTask") |
|
|
|
|
public R<List<WorkPlanItem>> getItems(Long wpId) { |
|
|
|
|
// WorkPlan plan = workPlanService.getById(wpId);
|
|
|
|
|
|
|
|
|
|
// QueryWrapper<InspectionTask> qw = new QueryWrapper<>();
|
|
|
|
|
// qw.eq("WP_ID", wpId);
|
|
|
|
|
// List<InspectionTask> list = service.list(qw);
|
|
|
|
|
//// InspectionTask inspectionTask = new InspectionTask();
|
|
|
|
|
//// if(null != list && list.size() > 0){
|
|
|
|
|
//// inspectionTask = list.get(0);
|
|
|
|
|
//// }
|
|
|
|
|
//
|
|
|
|
|
// List<WorkPlanItemVO> all = new ArrayList<>();
|
|
|
|
|
//
|
|
|
|
|
// for(InspectionTask inspectionTask : list){
|
|
|
|
|
// InspectionTask detail = service.getOne(Condition.getQueryWrapper(inspectionTask));
|
|
|
|
|
// InspectionTaskDetailVO detailDetailVO = InspectionTaskDetailWrapper.build().entityVO(detail);
|
|
|
|
|
//// InspectionTaskListVO detailDetail = service.detailById(inspectionTask);
|
|
|
|
|
// service.setDetailVOValueNew(detailDetailVO);
|
|
|
|
|
// List<WorkPlanItemVO> items = detailDetailVO.getWpItemList();
|
|
|
|
|
// all.addAll(items);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
QueryWrapper<WorkPlanItem> qw = new QueryWrapper<>(); |
|
|
|
|
qw.eq("WP_ID", wpId); |
|
|
|
|
List<WorkPlanItem> list = workPlanItemService.list(qw); |
|
|
|
|
|
|
|
|
|
return R.data(list); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/detailMut") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@Operation(summary = "详情", description = "传入inspectionTask") |
|
|
|
|
|