| | |
| | | if (StringUtils.isEmpty(param.getName())) { |
| | | return ResponseValue.error("机构名称为空"); |
| | | } |
| | | FinSysTenant finSysTenant = this.finSysTenantService.selectByTenantId(param.getCode()); |
| | | FinSysTenant finSysTenant = this.finSysTenantService.queryOneByCode(param.getCode()); |
| | | if (finSysTenant != null) { |
| | | return ResponseValue.error("机构编号已存在"); |
| | | } |
| | |
| | | "第" + analysisContext.readSheetHolder().getRowIndex() + "行,机构编号不能为空或长度大于20"); |
| | | throw exception; |
| | | } |
| | | if (null != finSysTenantService.selectByTenantId(finSysTenantParam.getCode())) { |
| | | if (null != finSysTenantService.queryOneByCode(finSysTenantParam.getCode())) { |
| | | throw new IllegalStateException("第" + analysisContext.readSheetHolder().getRowIndex() + "行,机构编号已存在"); |
| | | } |
| | | if (StringUtils.isEmpty(finSysTenantParam.getName()) || finSysTenantParam.getName().length() > 100) { |