no message
parent
cc5385c1fe
commit
72a2bf398c
|
|
@ -9,7 +9,7 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2024-05-09T15:58:44+0800",
|
||||
date = "2024-05-09T16:31:31+0800",
|
||||
comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_202 (Oracle Corporation)"
|
||||
)
|
||||
@Component
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2024-05-09T15:58:44+0800",
|
||||
date = "2024-05-09T16:31:31+0800",
|
||||
comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_202 (Oracle Corporation)"
|
||||
)
|
||||
@Component
|
||||
|
|
|
|||
|
|
@ -214,25 +214,25 @@ public class MoServiceImpl implements MoService {
|
|||
|
||||
private void validateStockStatus(Stock stock) {
|
||||
if (stock.getStatus().equals(BaseStatus.USED)) {
|
||||
throw new RuntimeException(stock.getCode() + " 箱码已经有绑定关系!");
|
||||
throw new IllegalArgumentException(stock.getCode() + " 箱码已经有绑定关系!");
|
||||
}
|
||||
}
|
||||
|
||||
private void validateLabelState(MoDto moDto) {
|
||||
if (!"PRINTED".equals(moDto.getLabelState())) {
|
||||
throw new RuntimeException(moDto.getLabelNo() + " 标签已被接收(已接收状态)!");
|
||||
throw new IllegalArgumentException(moDto.getLabelNo() + " 标签已被接收(已接收状态)!");
|
||||
}
|
||||
}
|
||||
|
||||
private void validateTask(MoDto moDto) {
|
||||
if (taskService.findByLabelNo(moDto.getLabelNo()).size() > 0) {
|
||||
throw new RuntimeException(moDto.getLabelNo() + "此标签已入库!");
|
||||
throw new IllegalArgumentException(moDto.getLabelNo() + "此标签已入库!");
|
||||
}
|
||||
}
|
||||
|
||||
private void validateOrder(OrderDto orderDto, MoDto moDto) {
|
||||
if (!orderDto.getDeliveryStatus().equals("lm_initial")) {
|
||||
throw new RuntimeException(moDto.getLabelNo() + "标签背后的送货单" + orderDto.getBarcodeNumber() + "已取消(标签失效)!");
|
||||
throw new IllegalArgumentException(moDto.getLabelNo() + "标签背后的送货单" + orderDto.getBarcodeNumber() + "已取消(标签失效)!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue