Browse Source

rev:对工单的开始功能进行优化

master
涂强 4 weeks ago
parent
commit
289723cf2e
  1. 1
      acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/order/service/impl/OrderServiceImpl.java

1
acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/order/service/impl/OrderServiceImpl.java

@ -242,6 +242,7 @@ public class OrderServiceImpl extends CommonServiceImpl<OrderMapper, OrderDto> i
if (materialbase == null) { if (materialbase == null) {
throw new BadRequestException("不存在物料编码为" + material_code + "的物料!"); throw new BadRequestException("不存在物料编码为" + material_code + "的物料!");
} }
int count = (int) Math.ceil((double) orderDetailDto.getProductin_qty() / materialbase.getQty()); int count = (int) Math.ceil((double) orderDetailDto.getProductin_qty() / materialbase.getQty());
Work work = new Work(); Work work = new Work();
work.setWork_id(IdUtil.getSnowflake(1, 1).nextId() + "") work.setWork_id(IdUtil.getSnowflake(1, 1).nextId() + "")

Loading…
Cancel
Save