增加测试语句

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;
}
@Override

View File

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

View File

@ -201,6 +201,9 @@ public class ProductProcessController {
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);
return ResultGenerator.genSuccessResult();
}