| | |
| | | solutions.setDataType(Constants.ZERO); |
| | | solutions.setStatus(Constants.ZERO); |
| | | solutions.setCorrectWarnTime(solutionsBase.getCorrectWarnTime()); |
| | | solutions.setDelOnlyReplace(solutionsBase.getDelOnlyReplace()); |
| | | //2024年6月17日15:56:18 仅支持替换模式下,批增日期 等于 批减日期 |
| | | if(Constants.equalsInteger(solutions.getDelOnlyReplace(),Constants.ONE)){ |
| | | solutions.setAddValidDays(solutions.getDelValidDays()); |
| | |
| | | private void dealWorkType(Solutions solutions, Solutions newModel, List<SolutionWorktype> worktypes) { |
| | | |
| | | int num =0; |
| | | List<SolutionWorktype> typeList = new ArrayList<>(); |
| | | for(SolutionWorktype type : worktypes) { |
| | | //基础版本 |
| | | SolutionWorktype w = new SolutionWorktype(); |
| | |
| | | //历史版本的工种信息 |
| | | SolutionWorktype newType = new SolutionWorktype(); |
| | | BeanUtils.copyProperties(w, newType); |
| | | newType.setId(null); |
| | | newType.setSolutionId(newModel.getId()); |
| | | solutionWorktypeJoinMapper.insert(newType); |
| | | typeList.add(newType); |
| | | } |
| | | if(typeList.size()>0){ |
| | | solutionWorktypeJoinMapper.insert(typeList); |
| | | } |
| | | } |
| | | |