From e8b49b7e925eecd7fc8415dfdbcf1fd4a8c9648f Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期四, 18 五月 2023 02:19:50 +0800
Subject: [PATCH] 优化 离散月
---
service-fee/src/main/java/com/java110/fee/smo/impl/PayFeeDetailMonthInnerServiceSMOImpl.java | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/service-fee/src/main/java/com/java110/fee/smo/impl/PayFeeDetailMonthInnerServiceSMOImpl.java b/service-fee/src/main/java/com/java110/fee/smo/impl/PayFeeDetailMonthInnerServiceSMOImpl.java
index 3511863..3c9cbd2 100644
--- a/service-fee/src/main/java/com/java110/fee/smo/impl/PayFeeDetailMonthInnerServiceSMOImpl.java
+++ b/service-fee/src/main/java/com/java110/fee/smo/impl/PayFeeDetailMonthInnerServiceSMOImpl.java
@@ -3,6 +3,7 @@
import com.java110.core.base.smo.BaseServiceSMO;
import com.java110.dto.PageDto;
+import com.java110.dto.fee.FeeDetailDto;
import com.java110.dto.payFeeDetailMonth.PayFeeDetailMonthDto;
import com.java110.fee.dao.IPayFeeDetailMonthServiceDao;
import com.java110.intf.fee.IPayFeeDetailMonthInnerServiceSMO;
@@ -41,8 +42,12 @@
@Override
public int savePayFeeDetailMonths(@RequestBody List<PayFeeDetailMonthPo> payFeeDetailMonthPos) {
int saveFlag = 1;
+ if (payFeeDetailMonthPos == null || payFeeDetailMonthPos.size() < 1) {
+ return saveFlag;
+ }
+
Map info = new HashMap();
- info.put("payFeeDetailMonthPos",payFeeDetailMonthPos);
+ info.put("payFeeDetailMonthPos", payFeeDetailMonthPos);
payFeeDetailMonthServiceDaoImpl.savePayFeeDetailMonthInfos(info);
return saveFlag;
}
@@ -57,8 +62,7 @@
@Override
public int deletePayFeeDetailMonth(@RequestBody PayFeeDetailMonthPo payFeeDetailMonthPo) {
int saveFlag = 1;
- payFeeDetailMonthPo.setStatusCd("1");
- payFeeDetailMonthServiceDaoImpl.updatePayFeeDetailMonthInfo(BeanConvertUtil.beanCovertMap(payFeeDetailMonthPo));
+ payFeeDetailMonthServiceDaoImpl.deletePayFeeDetailMonthInfo(BeanConvertUtil.beanCovertMap(payFeeDetailMonthPo));
return saveFlag;
}
@@ -97,6 +101,19 @@
return payFeeDetailMonths;
}
+ /**
+ * 鏌ヨ闇�瑕佺鏁g殑 缂磋垂璁板綍
+ *
+ * @param payFeeDetailMonthDto
+ * @return
+ */
+ @Override
+ public List<FeeDetailDto> getWaitDispersedFeeDetail(@RequestBody PayFeeDetailMonthDto payFeeDetailMonthDto) {
+ List<FeeDetailDto> payFeeDetailMonths = BeanConvertUtil.covertBeanList(payFeeDetailMonthServiceDaoImpl.getWaitDispersedFeeDetail(BeanConvertUtil.beanCovertMap(payFeeDetailMonthDto)), FeeDetailDto.class);
+
+ return payFeeDetailMonths;
+ }
+
public IPayFeeDetailMonthServiceDao getPayFeeDetailMonthServiceDaoImpl() {
return payFeeDetailMonthServiceDaoImpl;
}
--
Gitblit v1.8.0