| | |
| | | if (Objects.isNull(material)){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "导入数据内容【产品编码】有误!"); |
| | | } |
| | | <<<<<<< HEAD |
| | | if (Objects.nonNull(material) && !Objects.equals(material.getName(),salaryParamImportDTO.getMaterialName())){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "导入数据内容【产品名称】有误!"); |
| | | } |
| | |
| | | if (Objects.isNull(materialDistribute)){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "导入数据内容【产品编码】有误!"); |
| | | } |
| | | ======= |
| | | QueryWrapper<MaterialDistribute> materialDistribute = new QueryWrapper<>(); |
| | | materialDistribute.lambda() |
| | | .eq(MaterialDistribute::getDeleted,Constants.ZERO) |
| | | .eq(MaterialDistribute::getMaterialId,material.getId()) |
| | | .eq(MaterialDistribute::getRootDepartId,department.getRootId()) |
| | | .eq(MaterialDistribute::getDepartId,department.getParentId()); |
| | | MaterialDistribute materialDistribute1 = materialDistributeMapper.selectOne(materialDistribute); |
| | | // if (Objects.nonNull(material) && !Objects.equals(material.getName(),salaryParamImportDTO.getMaterialName())){ |
| | | // throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "导入数据内容【产品名称】有误!"); |
| | | // } |
| | | >>>>>>> 4d94726acad17e5cdcf828e21cab762e8b39921c |
| | | QueryWrapper<Procedures> proceduresWrapper = new QueryWrapper<>(); |
| | | proceduresWrapper.lambda() |
| | | .eq(Procedures::getName,salaryParamImportDTO.getProcedureName()) |