增加测试语句
This commit is contained in:
parent
b0685f2565
commit
27f51bf3b0
@ -174,7 +174,6 @@ public class ProductProcessServiceImpl extends AbstractService<ProductProcess, I
|
||||
}
|
||||
|
||||
return productProcessHo;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user