| | |
| | | feeConfigDto.setConfigId(reqJson.getString("configId")); |
| | | List<FeeConfigDto> feeConfigDtos = feeConfigInnerServiceSMOImpl.queryFeeConfigs(feeConfigDto); |
| | | Assert.listOnlyOne(feeConfigDtos, "未找到该费用项"); |
| | | int validCount = feeInnerServiceSMO.countValidPayFeeByConfigId(reqJson.getString("configId")); |
| | | if (validCount > 0) { |
| | | throw new CmdException("关联生效中费用,无法修改,请撤销关联费用后重试!"); |
| | | } |
| | | // int validCount = feeInnerServiceSMO.countValidPayFeeByConfigId(reqJson.getString("configId")); |
| | | // if (validCount > 0) { |
| | | // throw new CmdException("关联生效中费用,无法修改,请撤销关联费用后重试!"); |
| | | // } |
| | | JSONObject businessFeeConfig = new JSONObject(); |
| | | businessFeeConfig.putAll(reqJson); |
| | | businessFeeConfig.put("isDefault", feeConfigDtos.get(0).getIsDefault()); |