|
@@ -305,6 +305,9 @@ public class MaterialGoodsStockLogic {
|
|
|
if (workerStockDTO.getChangeQty().compareTo(BigDecimal.ZERO) <= 0) {
|
|
|
throw new RuntimeException("变动数量不能少于0");
|
|
|
}
|
|
|
+ if (workerStockDTO.getGoodsType().equals(WebsitGoodsTypeEnum.P.toString()) && StringUtils.isBlank(workerStockDTO.getWorkerId())) {
|
|
|
+ throw new RuntimeException("师傅编号不能空");
|
|
|
+ }
|
|
|
} catch (ValidationException ve) {
|
|
|
throw new RemoteServiceException("第" + (i + 1) + "行" + ve.getMessage());
|
|
|
}
|