|  |  |  | 
|---|
|  |  |  | || Objects.isNull(workPlansSaveDTO.getNum()) | 
|---|
|  |  |  | || Objects.isNull(workPlansSaveDTO.getFactoryId()) | 
|---|
|  |  |  | || Objects.isNull(workPlansSaveDTO.getUnitId()) | 
|---|
|  |  |  | || Objects.isNull(workPlansSaveDTO.getMaterialId())){ | 
|---|
|  |  |  | || Objects.isNull(workPlansSaveDTO.getMaterialId()) | 
|---|
|  |  |  | || Objects.isNull(workPlansSaveDTO.getStartDate()) | 
|---|
|  |  |  | || workPlansSaveDTO.getStartDate().getTime() > workPlansSaveDTO.getPlanDate().getTime()){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | WorkPlans workPlans = new WorkPlans(); | 
|---|
|  |  |  | 
|---|
|  |  |  | if(Constants.formatIntegerNum(p.getNum())<=0){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,第【"+(index+2)+"】行【计划生产数量】数据错误!"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(p.getStartDate() == null){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,第【"+(index+2)+"】行【计划开始日期】数据错误,正确格式为:yyyy-MM-dd(如2022-06-07)!"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(p.getPlanDate() == null){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,第【"+(index+2)+"】行【计划日期】数据错误,正确格式为:yyyy-MM-dd(如2022-06-07)!"); | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,第【"+(index+2)+"】行【计划结束日期】数据错误,正确格式为:yyyy-MM-dd(如2022-06-07)!"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(p.getPlanDate().getTime() <= p.getStartDate().getTime()){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,第【"+(index+2)+"】行【计划开始日期】要早于【计划结束日期】!"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(StringUtils.isBlank(p.getMaterialCode())){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,第【"+(index+2)+"】行【产品编码】数据错误!"); | 
|---|