|
|
|
@ -144,6 +144,10 @@ public class RohsServiceImpl extends ServiceImpl<RohsMapper, RohsEntity> impleme |
|
|
|
if (!"草稿".equals(rohs.getStatus())) { |
|
|
|
throw new RuntimeException("仅草稿状态的单据允许下达"); |
|
|
|
} |
|
|
|
if (HSF_STANDARD_CUSTOMER.equalsIgnoreCase(StringUtils.trimToEmpty(rohs.getEndCustomer())) |
|
|
|
&& rohs.getPlannedMassProductionDate() == null) { |
|
|
|
throw new RuntimeException("当前客户为Macallan,计划转量产时间不能为空"); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(userName)) { |
|
|
|
throw new RuntimeException("下达人不能为空"); |
|
|
|
} |
|
|
|
|