From 0763faf565ee071fa2083dfdb2777e66720d77cf Mon Sep 17 00:00:00 2001
From: chengf <2156125618@qq.com>
Date: 星期四, 24 七月 2025 18:29:22 +0800
Subject: [PATCH] 完善导入白单流水功能2025/07/24
---
service-community/src/main/java/com/java110/community/smo/impl/IImportPropertyWhiteListfFlowServiceSMOImpl.java | 25 +++++++++++++++----------
1 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/service-community/src/main/java/com/java110/community/smo/impl/IImportPropertyWhiteListfFlowServiceSMOImpl.java b/service-community/src/main/java/com/java110/community/smo/impl/IImportPropertyWhiteListfFlowServiceSMOImpl.java
index eeb26c9..ecc55b8 100644
--- a/service-community/src/main/java/com/java110/community/smo/impl/IImportPropertyWhiteListfFlowServiceSMOImpl.java
+++ b/service-community/src/main/java/com/java110/community/smo/impl/IImportPropertyWhiteListfFlowServiceSMOImpl.java
@@ -15,7 +15,9 @@
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
+import java.util.Map;
/**
* 灏忓尯鏈嶅姟鍐呴儴绫�
@@ -28,20 +30,23 @@
protected SqlSessionTemplate sqlSessionTemplate;
@Override
- public int savePropertyWhiteListFlow(@RequestBody List<PropertyWhiteListFlowDto> importOwnerRoomDtos) {
+ public int savePropertyWhiteListFlow(@RequestBody PropertyWhiteListFlowDto importOwnerRoomDto) {
+ return sqlSessionTemplate.insert("propertyWhiteListFlowDaoImplMapper.savePropertyWhiteListFlow",BeanConvertUtil.beanCovertMap(importOwnerRoomDto));
+ }
- int successCount = 0;
- if (importOwnerRoomDtos == null || importOwnerRoomDtos.size() < 1) {
+ @Override
+ public List<PropertyWhiteListFlowDto> queryPropertyWhiteListFlow(PropertyWhiteListFlowDto importOwnerRoomDtos) {
+ importOwnerRoomDtos.setPage((importOwnerRoomDtos.getPage()-1)* importOwnerRoomDtos.getRow());
+ return sqlSessionTemplate.selectList("propertyWhiteListFlowDaoImplMapper.queryPropertyWhiteListFlow",BeanConvertUtil.beanCovertMap(importOwnerRoomDtos));
+ }
+
+ public int countPropertyWhiteListFlow(PropertyWhiteListFlowDto importOwnerRoomDtos) {
+ List<Map> businessPaymentPoolConfigInfos = sqlSessionTemplate.selectList("propertyWhiteListFlowDaoImplMapper.countPropertyWhiteListFlow", BeanConvertUtil.beanCovertMap(importOwnerRoomDtos));
+ if (businessPaymentPoolConfigInfos.size() < 1) {
return 0;
}
- // 1.0 鏌ョ湅 妤兼爧鏄惁瀛樺湪
- for (PropertyWhiteListFlowDto importOwnerRoomDto : importOwnerRoomDtos) {
- successCount += sqlSessionTemplate.insert("propertyWhiteListFlowDaoImplMapper.savePropertyWhiteListFlow",BeanConvertUtil.beanCovertMap(importOwnerRoomDto));
- }
-
-
- return successCount;
+ return Integer.parseInt(businessPaymentPoolConfigInfos.get(0).get("count(1)").toString());
}
}
--
Gitblit v1.8.0