|  |  |  | 
|---|
|  |  |  | solutions.setVersion(UUID.randomUUID().toString());//版本号 | 
|---|
|  |  |  | solutions.setDataType(Constants.ZERO); | 
|---|
|  |  |  | solutions.setStatus(Constants.ZERO); | 
|---|
|  |  |  | //2024年6月17日15:56:18 仅支持替换模式下,批增日期 等于 批减日期 | 
|---|
|  |  |  | if(Constants.equalsInteger(solutions.getDelOnlyReplace(),Constants.ONE)){ | 
|---|
|  |  |  | solutions.setAddValidDays(solutions.getDelValidDays()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | solutionsMapper.insert(solutions);//基础版本 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //如果有工种,则产生一个新的有效历史版本 ~ | 
|---|
|  |  |  | 
|---|
|  |  |  | ){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if(!(Constants.equalsInteger(solutions.getInsureCycleUnit(),Constants.ZERO) | 
|---|
|  |  |  | ||Constants.equalsInteger(solutions.getInsureCycleUnit(),solutions.getInsureCycleUnit()))){ | 
|---|
|  |  |  | solutions.setDelOnlyReplace(Constants.ZERO); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | 
|---|
|  |  |  | solutions.setEditor(user.getId()); | 
|---|
|  |  |  | solutions.setVersion(UUID.randomUUID().toString()); | 
|---|
|  |  |  | solutions.setEditDate(new Date()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //2024年6月17日15:56:18 仅支持替换模式下,批增日期 等于 批减日期 | 
|---|
|  |  |  | if(Constants.equalsInteger(solutions.getDelOnlyReplace(),Constants.ONE)){ | 
|---|
|  |  |  | solutions.setAddValidDays(solutions.getDelValidDays()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | solutionsMapper.updateById(solutions); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Solutions oldVersion = solutionsMapper.selectOne(new QueryWrapper<Solutions>() | 
|---|