Commit d0f6d648 by 赵剑炜

盘点功能修改

parent b1a0cb3a
...@@ -11,6 +11,7 @@ public enum InventoryExceptionEnum implements IExceptionEnum { ...@@ -11,6 +11,7 @@ public enum InventoryExceptionEnum implements IExceptionEnum {
INVENTORY_BEYOND_STOCK(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"填写的报废的装备数量大于实际能进行报废的数量"), INVENTORY_BEYOND_STOCK(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"填写的报废的装备数量大于实际能进行报废的数量"),
BROKENNUM_BEYOND_STOCK(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"审核中的数量已存在最大可报废数量,现提交失败"), BROKENNUM_BEYOND_STOCK(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"审核中的数量已存在最大可报废数量,现提交失败"),
ORDER_NOT_EXIST(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"盘点单据不存在"), ORDER_NOT_EXIST(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"盘点单据不存在"),
ORDER_Child_NOT_EXIST(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"盘点子单据不存在"),
ORDER_HAS_START(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"单据已经开始,请勿重复操作"), ORDER_HAS_START(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"单据已经开始,请勿重复操作"),
RUNNINGORDER_EXIST(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"已存在盘点单据"), RUNNINGORDER_EXIST(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"已存在盘点单据"),
ORDER_CLOSED(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"单据已结算,无法重复操作"), ORDER_CLOSED(CommonConstant.DEFAULT_BIZ_ERROR_CODE,"单据已结算,无法重复操作"),
......
...@@ -501,6 +501,7 @@ public class BussinessInventoryServiceImpl extends ServiceImpl<BussinessInventor ...@@ -501,6 +501,7 @@ public class BussinessInventoryServiceImpl extends ServiceImpl<BussinessInventor
BussinessDetail eqDto = new BussinessDetail(); BussinessDetail eqDto = new BussinessDetail();
BeanPlusUtil.copyProperties(detail, eqDto); BeanPlusUtil.copyProperties(detail, eqDto);
eqDto.setNum(Integer.valueOf(priceEq.getNum())); eqDto.setNum(Integer.valueOf(priceEq.getNum()));
eqDto.setFixNumber(Integer.valueOf(priceEq.getNum()));
eqDto.setPrice(priceEq.getPrice()); eqDto.setPrice(priceEq.getPrice());
eqDto.setFixPrice(priceEq.getStockPrice()); eqDto.setFixPrice(priceEq.getStockPrice());
eqDto.setStockPrice(priceEq.getStockPrice()); eqDto.setStockPrice(priceEq.getStockPrice());
...@@ -561,6 +562,10 @@ public class BussinessInventoryServiceImpl extends ServiceImpl<BussinessInventor ...@@ -561,6 +562,10 @@ public class BussinessInventoryServiceImpl extends ServiceImpl<BussinessInventor
BussinessDetail bd= bussinessInventoryDetailService.getById(req.getDetailId()); BussinessDetail bd= bussinessInventoryDetailService.getById(req.getDetailId());
if (bd==null)
{
throw new ServiceException(InventoryExceptionEnum.ORDER_Child_NOT_EXIST);
}
List<BussinessInventoryChildrenDetail> ChildrenDetail = bussinessInventoryChildrenDetailService.list( List<BussinessInventoryChildrenDetail> ChildrenDetail = bussinessInventoryChildrenDetailService.list(
new LambdaQueryWrapper<BussinessInventoryChildrenDetail>().eq(BussinessInventoryChildrenDetail::getInvDetailId, req.getDetailId()) new LambdaQueryWrapper<BussinessInventoryChildrenDetail>().eq(BussinessInventoryChildrenDetail::getInvDetailId, req.getDetailId())
); );
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论