| | |
| | | * Created by wuxw on 2018/7/4. |
| | | */ |
| | | public abstract class AbstractFeeDetailBusinessServiceDataFlowListener extends AbstractBusinessServiceDataFlowListener { |
| | | private static Logger logger = LoggerFactory.getLogger(AbstractFeeDetailBusinessServiceDataFlowListener.class); |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(AbstractFeeDetailBusinessServiceDataFlowListener.class); |
| | | |
| | | /** |
| | | * 获取 DAO工具类 |
| | |
| | | businessFeeDetailInfo.put("cycles", businessFeeDetailInfo.get("cycles")); |
| | | businessFeeDetailInfo.put("remark", businessFeeDetailInfo.get("remark")); |
| | | businessFeeDetailInfo.put("receivedAmount", businessFeeDetailInfo.get("received_amount")); |
| | | businessFeeDetailInfo.put("payableAmount", businessFeeDetailInfo.get("payable_amount")); |
| | | businessFeeDetailInfo.put("communityId", businessFeeDetailInfo.get("community_id")); |
| | | businessFeeDetailInfo.put("feeId", businessFeeDetailInfo.get("fee_id")); |
| | | businessFeeDetailInfo.put("startTime", businessFeeDetailInfo.get("start_time")); |
| | |
| | | * @param businessFeeDetail 费用明细信息 |
| | | */ |
| | | protected void autoSaveDelBusinessFeeDetail(Business business, JSONObject businessFeeDetail) { |
| | | //自动插入DEL |
| | | //自动插入DEL |
| | | Map info = new HashMap(); |
| | | info.put("detailId", businessFeeDetail.getString("detailId")); |
| | | info.put("statusCd", StatusConstant.STATUS_CD_VALID); |
| | |
| | | if (currentFeeDetailInfos == null || currentFeeDetailInfos.size() != 1) { |
| | | throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR, "未找到需要修改数据信息,入参错误或数据有问题,请检查" + info); |
| | | } |
| | | |
| | | Map currentFeeDetailInfo = currentFeeDetailInfos.get(0); |
| | | |
| | | currentFeeDetailInfo.put("bId", business.getbId()); |
| | | |
| | | currentFeeDetailInfo.put("operate", currentFeeDetailInfo.get("operate")); |
| | | currentFeeDetailInfo.put("primeRate", currentFeeDetailInfo.get("prime_rate")); |
| | | currentFeeDetailInfo.put("detailId", currentFeeDetailInfo.get("detail_id")); |
| | |
| | | currentFeeDetailInfo.put("cycles", currentFeeDetailInfo.get("cycles")); |
| | | currentFeeDetailInfo.put("remark", currentFeeDetailInfo.get("remark")); |
| | | currentFeeDetailInfo.put("receivedAmount", currentFeeDetailInfo.get("received_amount")); |
| | | currentFeeDetailInfo.put("payableAmount", currentFeeDetailInfo.get("payable_amount")); |
| | | currentFeeDetailInfo.put("communityId", currentFeeDetailInfo.get("community_id")); |
| | | currentFeeDetailInfo.put("feeId", currentFeeDetailInfo.get("fee_id")); |
| | | currentFeeDetailInfo.put("startTime", currentFeeDetailInfo.get("start_time")); |
| | | currentFeeDetailInfo.put("endTime", currentFeeDetailInfo.get("end_time")); |
| | | |
| | | |
| | | currentFeeDetailInfo.put("operate", StatusConstant.OPERATE_DEL); |
| | | getFeeDetailServiceDaoImpl().saveBusinessFeeDetailInfo(currentFeeDetailInfo); |
| | | |
| | | for (Object key : currentFeeDetailInfo.keySet()) { |
| | | if (businessFeeDetail.get(key) == null) { |
| | | businessFeeDetail.put(key.toString(), currentFeeDetailInfo.get(key)); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } |