|
@@ -887,17 +887,25 @@ public class InformationWriteQueryController extends BladeController {
|
|
if (ObjectUtil.isNotEmpty(startTaskVO.getTrialSelfInspectionRecordId())) {
|
|
if (ObjectUtil.isNotEmpty(startTaskVO.getTrialSelfInspectionRecordId())) {
|
|
//试验
|
|
//试验
|
|
businessData = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery().eq(InformationQuery::getWbsId, startTaskVO.getIds().replaceAll(",", "")).eq(InformationQuery::getClassify, startTaskVO.getClassify().toString()).eq(InformationQuery::getType, 2));
|
|
businessData = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery().eq(InformationQuery::getWbsId, startTaskVO.getIds().replaceAll(",", "")).eq(InformationQuery::getClassify, startTaskVO.getClassify().toString()).eq(InformationQuery::getType, 2));
|
|
|
|
+ if (businessData != null) {
|
|
|
|
+ //设置业务数据ID
|
|
|
|
+ startTaskVO.setIds(businessData.getWbsId().toString());
|
|
|
|
+ startTaskVO.setTrialSelfInspectionRecordId(1L);
|
|
|
|
+ return this.batchTask(startTaskVO);
|
|
|
|
+ } else {
|
|
|
|
+ return R.data(300, false, "未查询到填报信息,上报失败");
|
|
|
|
+ }
|
|
} else { //质检
|
|
} else { //质检
|
|
businessData = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery().eq(InformationQuery::getWbsId, startTaskVO.getIds().replaceAll(",", "")).eq(InformationQuery::getClassify, startTaskVO.getClassify().toString()).eq(InformationQuery::getType, 1));
|
|
businessData = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery().eq(InformationQuery::getWbsId, startTaskVO.getIds().replaceAll(",", "")).eq(InformationQuery::getClassify, startTaskVO.getClassify().toString()).eq(InformationQuery::getType, 1));
|
|
|
|
+ if (businessData != null) {
|
|
|
|
+ //设置业务数据ID
|
|
|
|
+ startTaskVO.setIds(businessData.getId().toString());
|
|
|
|
+ return this.batchTask(startTaskVO);
|
|
|
|
+ } else {
|
|
|
|
+ return R.data(300, false, "未查询到填报信息,上报失败");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- //处理上报信息
|
|
|
|
- if (businessData != null) {
|
|
|
|
- //设置业务数据ID
|
|
|
|
- startTaskVO.setIds(businessData.getId().toString());
|
|
|
|
- return this.batchTask(startTaskVO);
|
|
|
|
- } else {
|
|
|
|
- return R.data(300, false, "未查询到填报信息,上报失败");
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|