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

This commit is contained in:
2024-10-29 11:16:27 +08:00
parent 576413cc35
commit 5645556630

View File

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