| | |
| | | ? serviceReimbursementdetailVO.getAnnexfiles() |
| | | : JSON.toJSONString(serviceReimbursementdetailVO.getAnnexfilesList()); |
| | | String nameError = com.ruoyi.project.common.AttachmentNameValidator |
| | | .checkJsonList(invoiceJson, annexJson); |
| | | .checkJsonList(true, invoiceJson, annexJson); |
| | | if (nameError != null) { |
| | | return AjaxResult.error("附件文件名不符合要求,无法保存:" + nameError); |
| | | } |
| | |
| | | } |
| | | } |
| | | String nameError = com.ruoyi.project.common.AttachmentNameValidator.checkJsonListForUpdate( |
| | | existingNames, serviceReimbursementdetail.getInvoicefiles(), |
| | | existingNames, true, serviceReimbursementdetail.getInvoicefiles(), |
| | | serviceReimbursementdetail.getAnnexfiles()); |
| | | if (nameError != null) { |
| | | return AjaxResult.error("附件文件名不符合要求,无法保存:" + nameError); |
| | |
| | | ? serviceReimbursementdetailVO.getAnnexfiles() |
| | | : JSON.toJSONString(serviceReimbursementdetailVO.getAnnexfilesList()); |
| | | String nameError = com.ruoyi.project.common.AttachmentNameValidator |
| | | .checkJsonListForUpdate(existingNames, invoiceJson, annexJson); |
| | | .checkJsonListForUpdate(existingNames, true, invoiceJson, annexJson); |
| | | if (nameError != null) { |
| | | return AjaxResult.error("附件文件名不符合要求,无法保存:" + nameError); |
| | | } |