|  |  | 
 |  |  |  | 
 |  |  |         Constants.SettleClaimsLogType applyLogType = Constants.SettleClaimsLogType.PLATFORM_REMARK; | 
 |  |  |         String info =applyLogType.getInfo(); | 
 |  |  |         info = info.replace("${param}", update.getCheckInfo()); | 
 |  |  |         info = info.replace("${param}", param.getCheckInfo()); | 
 |  |  |         SettleClaimsLog log = new SettleClaimsLog(update,applyLogType.getName(), info,update.getId(),applyLogType.getKey(), JSONObject.toJSONString(model), JSONObject.toJSONString(update)); | 
 |  |  |         settleClaimsLogMapper.insert(log); | 
 |  |  |         return  1; | 
 |  |  | 
 |  |  |         } | 
 |  |  |         settleClaims.setCreateDate(new Date()); | 
 |  |  |         settleClaims.setIsdeleted(Constants.ZERO); | 
 |  |  |         settleClaims.setCompanyId(loginUserInfo.getCompanyId()); | 
 |  |  |         settleClaims.setStatus(Constants.SettleClaimsStatus.WAIT_ACCEPTANCE.getKey()); | 
 |  |  |         settleClaims.setCreator(loginUserInfo.getId()); | 
 |  |  |         settleClaims.setCheckUserId(loginUserInfo.getId()); | 
 |  |  |         settleClaimsMapper.insert(settleClaims); | 
 |  |  | 
 |  |  |                 Multifile multifile = reportVideo.get(i); | 
 |  |  |                 if(Objects.isNull(multifile.getFileurl()) | 
 |  |  |                         || Objects.isNull(multifile.getType()) | 
 |  |  |                         || StringUtils.isBlank(multifile.getName()) | 
 |  |  |                 ){ | 
 |  |  |                     throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"附件内容异常"); | 
 |  |  |                 } | 
 |  |  | 
 |  |  |         if(!oldSettleClaims.getSolutionId().equals(settleClaims.getSolutionId())){ | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"无法修改方案信息"); | 
 |  |  |         } | 
 |  |  |         if(!(oldSettleClaims.getStatus().equals(Constants.SettleClaimsStatus.WAIT_ACCEPTANCE) | 
 |  |  |                 || oldSettleClaims.getStatus().equals(Constants.SettleClaimsStatus.CONFIRM_INFORMATION))){ | 
 |  |  |         if(!(oldSettleClaims.getStatus().equals(Constants.SettleClaimsStatus.WAIT_ACCEPTANCE.getKey()) | 
 |  |  |                 || oldSettleClaims.getStatus().equals(Constants.SettleClaimsStatus.CONFIRM_INFORMATION.getKey()))){ | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"当前状态无法进行该操作"); | 
 |  |  |         } | 
 |  |  |         oldSettleClaims.setEditor(loginUserInfo.getId()); | 
 |  |  | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"非企业员工无法进行该操作"); | 
 |  |  |         } | 
 |  |  |         SettleClaims settleClaims  = settleClaimsMapper.selectById(scSupplementDTO.getId()); | 
 |  |  |         if(!(settleClaims.getStatus().equals(Constants.SettleClaimsStatus.WAIT_ACCEPTANCE) | 
 |  |  |                 || settleClaims.getStatus().equals(Constants.SettleClaimsStatus.CONFIRM_INFORMATION))){ | 
 |  |  |         if(!(settleClaims.getStatus().equals(Constants.SettleClaimsStatus.WAIT_ACCEPTANCE.getKey()) | 
 |  |  |                 || settleClaims.getStatus().equals(Constants.SettleClaimsStatus.CONFIRM_INFORMATION.getKey()))){ | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"当前状态无法进行该操作"); | 
 |  |  |         } | 
 |  |  |         settleClaims.setEditor(loginUserInfo.getId()); | 
 |  |  | 
 |  |  |         LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); | 
 |  |  |         if(Objects.isNull(scSupplementDTO) | 
 |  |  |                 || Objects.isNull(scSupplementDTO.getId()) | 
 |  |  |                 || Objects.isNull(scSupplementDTO.getSupplement()) | 
 |  |  |                 || Objects.isNull(scSupplementDTO.getObjType()) | 
 |  |  |                 || Objects.isNull(scSupplementDTO.getFileUrl()) | 
 |  |  |                 || Objects.isNull(scSupplementDTO.getFileType()) | 
 |  |  |                 || scSupplementDTO.getObjType().equals(Constants.ZERO) | 
 |  |  |         ){ | 
 |  |  |             throw new BusinessException(ResponseStatus.BAD_REQUEST); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         SettleClaims settleClaims  = settleClaimsMapper.selectById(scSupplementDTO.getId()); | 
 |  |  |         if(!(settleClaims.getStatus().equals(Constants.SettleClaimsStatus.WAIT_ACCEPTANCE) | 
 |  |  |                 || settleClaims.getStatus().equals(Constants.SettleClaimsStatus.CONFIRM_INFORMATION))){ | 
 |  |  |         if(!(settleClaims.getStatus().equals(Constants.SettleClaimsStatus.WAIT_ACCEPTANCE.getKey()) | 
 |  |  |                 || settleClaims.getStatus().equals(Constants.SettleClaimsStatus.CONFIRM_INFORMATION.getKey()))){ | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"当前状态无法进行该操作"); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         Multifile multifile = new Multifile(); | 
 |  |  |         if(loginUserInfo.getType().equals(Constants.ONE)){ | 
 |  |  |             multifile.setCompanyId(loginUserInfo.getCompanyId()); | 
 |  |  | 
 |  |  |         multifile.setCreator(loginUserInfo.getId()); | 
 |  |  |         multifile.setCreateDate(new Date()); | 
 |  |  |         multifile.setIsdeleted(Constants.ZERO); | 
 |  |  |         multifile.setObjType(scSupplementDTO.getObjType()); | 
 |  |  |         multifile.setObjId(scSupplementDTO.getId()); | 
 |  |  |         multifile.setFileurl(scSupplementDTO.getFileUrl()); | 
 |  |  |         multifile.setName(scSupplementDTO.getFileUrl().substring(scSupplementDTO.getFileUrl().lastIndexOf("/") + 1)); | 
 |  |  |         multifile.setType(scSupplementDTO.getFileType()); | 
 |  |  |         multifileJoinMapper.insert(multifile); |