| | |
| | | import doumeemes.dao.business.*; |
| | | import doumeemes.dao.business.model.*; |
| | | import doumeemes.dao.business.vo.SalaryParamVO; |
| | | import doumeemes.dao.ext.MaterialExtMapper; |
| | | import doumeemes.dao.ext.dto.SalaryParamDTO; |
| | | import doumeemes.dao.ext.dto.SalaryParamImportDTO; |
| | | import doumeemes.dao.ext.vo.DepartmentExtListVO; |
| | |
| | | insert.setProcedureId(salaryParam.getProcedureId()); |
| | | insert.setMaterialId(salaryParam.getMaterialId()); |
| | | insert.setDeleted((byte) Constants.ZERO); |
| | | insert.setType(salaryParam.getType()); |
| | | if(findOne(insert) != null){ |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(),"同一个物料在相同工序不能重复配置哦!"); |
| | | } |
| | |
| | | }).orElse(0); |
| | | salaryParam.setUnqualified(unqualified); |
| | | |
| | | Integer type = Optional.ofNullable(salaryParamImportDTO.getUnqualified()).map(s -> { |
| | | Integer type = Optional.ofNullable(salaryParamImportDTO.getType()).map(s -> { |
| | | if ("计件".equals(s)) { |
| | | return 0; |
| | | } else { |