增加测试语句

This commit is contained in:
hy2250089 2020-02-25 15:49:18 +08:00
parent b0685f2565
commit 27f51bf3b0
3 changed files with 7 additions and 5 deletions

View File

@ -174,7 +174,6 @@ public class ProductProcessServiceImpl extends AbstractService<ProductProcess, I
} }
return productProcessHo; return productProcessHo;
} }
@Override @Override

View File

@ -110,11 +110,11 @@ public class MtAloneProcessController {
@ApiOperation(value = "根据批次产品加工单id查询工序", notes = "根据批次产品加工单id查询工序") @ApiOperation(value = "根据批次产品加工单id查询工序", notes = "根据批次产品加工单id查询工序")
@GetMapping("/processListByProductProcess") @GetMapping("/processListByProductProcess")
public Result processListByProductProcess(ProductProcessParams params, @ApiIgnore @User CurrentUser currentUser) { public Result processListByProductProcess(ProductProcessParams params, @ApiIgnore @User CurrentUser currentUser) {
//if(currentUser==null){ if(currentUser==null){
// return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null ); return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null );
//} }
params.setCompanyId(1); params.setCompanyId(currentUser.getCompanyId());
PageHelper.startPage(params.getPageNum(), params.getPageSize()); PageHelper.startPage(params.getPageNum(), params.getPageSize());
List<MtAloneProcessVo> list = mtAloneProcessService.findProcessVoListByProductProcess(params); List<MtAloneProcessVo> list = mtAloneProcessService.findProcessVoListByProductProcess(params);
PageInfo pageInfo = new PageInfo(list); PageInfo pageInfo = new PageInfo(list);

View File

@ -201,6 +201,9 @@ public class ProductProcessController {
return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null ); return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null );
} }
List<ProcessHo> processHoList = productProcessHo.getProcessHoList();
ProcessHo processHo = processHoList.get(0);
System.out.println("-----------"+processHo.getOriginalLen()+" "+processHo.getAfterLen()+" "+processHo.getProcessPrice());
productProcessService.addProduceProcess(productProcessHo, currentUser); productProcessService.addProduceProcess(productProcessHo, currentUser);
return ResultGenerator.genSuccessResult(); return ResultGenerator.genSuccessResult();
} }