Commit ff4939e8 authored by 竹天卫's avatar 竹天卫

非平行样 可以多个人检测

parent 77a00448
...@@ -39,7 +39,7 @@ public class SampleQuery { ...@@ -39,7 +39,7 @@ public class SampleQuery {
@ApiModelProperty("(检测依据编号) 例子:01、23、15") @ApiModelProperty("(检测依据编号) 例子:01、23、15")
private String methodNumbers; private String methodNumbers;
@ApiModelProperty(" 是否平行样(1是,0否)") @ApiModelProperty(" 是否平行样(0否,是(2-4,代表要分成几个样品检测),)")
private Integer isParallel; private Integer isParallel;
@ApiModelProperty("本所编号") @ApiModelProperty("本所编号")
......
...@@ -123,4 +123,7 @@ public class EntrustVo { ...@@ -123,4 +123,7 @@ public class EntrustVo {
@ApiModelProperty("任务接受时间") @ApiModelProperty("任务接受时间")
private LocalDateTime acceptTime; private LocalDateTime acceptTime;
@ApiModelProperty("评审意见")
private String opinion;
} }
...@@ -345,8 +345,8 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl ...@@ -345,8 +345,8 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
sampleVo.setSampleDistributionTeamVoList(sampleNoDistributionTeamVoList); sampleVo.setSampleDistributionTeamVoList(sampleNoDistributionTeamVoList);
} }
sampleVoList.add(sampleVo); sampleVoList.add(sampleVo);
//样品处理列表只展示 //样品处理列表只展示主样信息
if (sample.getIsParallel() == 1) { if (sample.getIsParallel() != 0) {
if (sample.getCementCode().equals(sample.getParallelCode())) { if (sample.getCementCode().equals(sample.getParallelCode())) {
sampleHandleVoList.add(sampleVo); sampleHandleVoList.add(sampleVo);
} }
...@@ -357,6 +357,13 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl ...@@ -357,6 +357,13 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
} }
entrustVo.setSampleList(sampleVoList);//样品列表(展示平行样样品) entrustVo.setSampleList(sampleVoList);//样品列表(展示平行样样品)
entrustVo.setSampleHandleList(sampleHandleVoList);//处理样品列表(不展示平行样样品) entrustVo.setSampleHandleList(sampleHandleVoList);//处理样品列表(不展示平行样样品)
//委托评审意见
QueryWrapper<EntrustApproval> approvalWrapper = new QueryWrapper<>();
approvalWrapper.eq("entrust_id", entrustVo.getId());
approvalWrapper.orderByDesc("id");
List<EntrustApproval> approvalList = approvalMapper.selectList(approvalWrapper);
EntrustApproval approval = approvalList.get(0);
entrustVo.setOpinion(approval.getOpinion());
} else { } else {
QueryWrapper<SampleTmp> queryWrapper = new QueryWrapper<>(); QueryWrapper<SampleTmp> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("entrust_id", entrustVo.getId()); queryWrapper.eq("entrust_id", entrustVo.getId());
...@@ -384,6 +391,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl ...@@ -384,6 +391,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
} }
entrustVo.setSampleTmpList(sampleTmpVoList); entrustVo.setSampleTmpList(sampleTmpVoList);
} }
LoginUser loginUser = userService.getLoginUser(); LoginUser loginUser = userService.getLoginUser();
if (loginUser == null) { if (loginUser == null) {
return BaseResponse.errorMsg("请登录账号"); return BaseResponse.errorMsg("请登录账号");
...@@ -1657,6 +1665,10 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl ...@@ -1657,6 +1665,10 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
distributionMapper.getDistributionTeamList(sample.getId(), null); distributionMapper.getDistributionTeamList(sample.getId(), null);
} }
} }
sampleVo.setSampleDistributionTeamVoList(sampleDistributionTeamVoList); sampleVo.setSampleDistributionTeamVoList(sampleDistributionTeamVoList);
} else { } else {
sampleVo.setSampleDistributionTeamVoList(null); sampleVo.setSampleDistributionTeamVoList(null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment