From bdcb64f0293f27e2dfb3de12a60f6e8412cb962b Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 26 五月 2022 01:45:22 +0800
Subject: [PATCH] 退费修改为 从证书地址中获取
---
service-community/src/main/java/com/java110/community/dao/impl/RoomRenovationServiceDaoImpl.java | 48 ++++++++++++++++++++++++++++--------------------
1 files changed, 28 insertions(+), 20 deletions(-)
diff --git a/service-community/src/main/java/com/java110/community/dao/impl/RoomRenovationServiceDaoImpl.java b/service-community/src/main/java/com/java110/community/dao/impl/RoomRenovationServiceDaoImpl.java
old mode 100644
new mode 100755
index b9933e4..c5ff2d9
--- a/service-community/src/main/java/com/java110/community/dao/impl/RoomRenovationServiceDaoImpl.java
+++ b/service-community/src/main/java/com/java110/community/dao/impl/RoomRenovationServiceDaoImpl.java
@@ -3,13 +3,11 @@
import com.alibaba.fastjson.JSONObject;
import com.java110.utils.constant.ResponseConstant;
import com.java110.utils.exception.DAOException;
-import com.java110.utils.util.DateUtil;
import com.java110.core.base.dao.BaseServiceDao;
import com.java110.community.dao.IRoomRenovationServiceDao;
import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import com.java110.core.log.LoggerFactory;
import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Map;
@@ -24,38 +22,36 @@
private static Logger logger = LoggerFactory.getLogger(RoomRenovationServiceDaoImpl.class);
-
-
-
-
/**
* 淇濆瓨瑁呬慨鐢宠淇℃伅 鍒� instance
- * @param info bId 淇℃伅
+ *
+ * @param info bId 淇℃伅
* @throws DAOException DAO寮傚父
*/
@Override
public void saveRoomRenovationInfo(Map info) throws DAOException {
- logger.debug("淇濆瓨瑁呬慨鐢宠淇℃伅Instance 鍏ュ弬 info : {}",info);
+ logger.debug("淇濆瓨瑁呬慨鐢宠淇℃伅Instance 鍏ュ弬 info : {}", info);
- int saveFlag = sqlSessionTemplate.insert("roomRenovationServiceDaoImpl.saveRoomRenovationInfo",info);
+ int saveFlag = sqlSessionTemplate.insert("roomRenovationServiceDaoImpl.saveRoomRenovationInfo", info);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨瑁呬慨鐢宠淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇濆瓨瑁呬慨鐢宠淇℃伅Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(info));
}
}
/**
* 鏌ヨ瑁呬慨鐢宠淇℃伅锛坕nstance锛�
+ *
* @param info bId 淇℃伅
* @return List<Map>
* @throws DAOException DAO寮傚父
*/
@Override
public List<Map> getRoomRenovationInfo(Map info) throws DAOException {
- logger.debug("鏌ヨ瑁呬慨鐢宠淇℃伅 鍏ュ弬 info : {}",info);
+ logger.debug("鏌ヨ瑁呬慨鐢宠淇℃伅 鍏ュ弬 info : {}", info);
- List<Map> businessRoomRenovationInfos = sqlSessionTemplate.selectList("roomRenovationServiceDaoImpl.getRoomRenovationInfo",info);
+ List<Map> businessRoomRenovationInfos = sqlSessionTemplate.selectList("roomRenovationServiceDaoImpl.getRoomRenovationInfo", info);
return businessRoomRenovationInfos;
}
@@ -63,28 +59,40 @@
/**
* 淇敼瑁呬慨鐢宠淇℃伅
+ *
* @param info 淇敼淇℃伅
* @throws DAOException DAO寮傚父
*/
@Override
public void updateRoomRenovationInfo(Map info) throws DAOException {
- logger.debug("淇敼瑁呬慨鐢宠淇℃伅Instance 鍏ュ弬 info : {}",info);
+ logger.debug("淇敼瑁呬慨鐢宠淇℃伅Instance 鍏ュ弬 info : {}", info);
- int saveFlag = sqlSessionTemplate.update("roomRenovationServiceDaoImpl.updateRoomRenovationInfo",info);
+ int saveFlag = sqlSessionTemplate.update("roomRenovationServiceDaoImpl.updateRoomRenovationInfo", info);
- if(saveFlag < 1){
- throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼瑁呬慨鐢宠淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇敼瑁呬慨鐢宠淇℃伅Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(info));
}
}
- /**
+ @Override
+ public void updateRoom(Map info) throws DAOException {
+ logger.debug("淇敼鎴垮眿淇℃伅Instance 鍏ュ弬 info : {}", info);
+ int saveFlag = sqlSessionTemplate.update("roomRenovationServiceDaoImpl.updateRoom", info);
+
+ if (saveFlag < 1) {
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "淇敼鎴垮眿淇℃伅Instance鏁版嵁澶辫触锛�" + JSONObject.toJSONString(info));
+ }
+ }
+
+ /**
* 鏌ヨ瑁呬慨鐢宠鏁伴噺
+ *
* @param info 瑁呬慨鐢宠淇℃伅
* @return 瑁呬慨鐢宠鏁伴噺
*/
@Override
public int queryRoomRenovationsCount(Map info) {
- logger.debug("鏌ヨ瑁呬慨鐢宠鏁版嵁 鍏ュ弬 info : {}",info);
+ logger.debug("鏌ヨ瑁呬慨鐢宠鏁版嵁 鍏ュ弬 info : {}", info);
List<Map> businessRoomRenovationInfos = sqlSessionTemplate.selectList("roomRenovationServiceDaoImpl.queryRoomRenovationsCount", info);
if (businessRoomRenovationInfos.size() < 1) {
--
Gitblit v1.8.0