From c351e59bb187237aec9d86183f17214dd89054fd Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期一, 11 一月 2021 16:20:00 +0800
Subject: [PATCH] 优化代码

---
 service-community/src/main/java/com/java110/community/listener/room/AbstractRoomBusinessServiceDataFlowListener.java |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/service-community/src/main/java/com/java110/community/listener/room/AbstractRoomBusinessServiceDataFlowListener.java b/service-community/src/main/java/com/java110/community/listener/room/AbstractRoomBusinessServiceDataFlowListener.java
index ceb01d2..a3f5df4 100644
--- a/service-community/src/main/java/com/java110/community/listener/room/AbstractRoomBusinessServiceDataFlowListener.java
+++ b/service-community/src/main/java/com/java110/community/listener/room/AbstractRoomBusinessServiceDataFlowListener.java
@@ -1,12 +1,12 @@
 package com.java110.community.listener.room;
 
 import com.alibaba.fastjson.JSONObject;
+import com.java110.community.dao.IRoomServiceDao;
+import com.java110.core.event.service.AbstractBusinessServiceDataFlowListener;
+import com.java110.entity.center.Business;
 import com.java110.utils.constant.ResponseConstant;
 import com.java110.utils.constant.StatusConstant;
 import com.java110.utils.exception.ListenerExecuteException;
-import com.java110.community.dao.IRoomServiceDao;
-import com.java110.entity.center.Business;
-import com.java110.core.event.service.AbstractBusinessServiceDataFlowListener;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -19,7 +19,7 @@
  * Created by wuxw on 2018/7/4.
  */
 public abstract class AbstractRoomBusinessServiceDataFlowListener extends AbstractBusinessServiceDataFlowListener {
-    private  static Logger logger = LoggerFactory.getLogger(AbstractRoomBusinessServiceDataFlowListener.class);
+    private static Logger logger = LoggerFactory.getLogger(AbstractRoomBusinessServiceDataFlowListener.class);
 
 
     /**
@@ -50,6 +50,7 @@
         businessRoomInfo.put("unitId", businessRoomInfo.get("unit_id"));
         businessRoomInfo.put("apartment", businessRoomInfo.get("apartment"));
         businessRoomInfo.put("communityId", businessRoomInfo.get("community_id"));
+        businessRoomInfo.put("roomType", businessRoomInfo.get("room_type"));
         businessRoomInfo.remove("bId");
         businessRoomInfo.put("statusCd", statusCd);
     }
@@ -60,7 +61,7 @@
      *
      * @param businessRoom 灏忓尯鎴垮眿淇℃伅
      */
-    protected Map<String,String> autoSaveDelBusinessRoom(Business business, JSONObject businessRoom) {
+    protected Map<String, String> autoSaveDelBusinessRoom(Business business, JSONObject businessRoom) {
 //鑷姩鎻掑叆DEL
         Map info = new HashMap();
         info.put("roomId", businessRoom.getString("roomId"));
@@ -87,6 +88,7 @@
         currentRoomInfo.put("unitId", currentRoomInfo.get("unit_id"));
         currentRoomInfo.put("apartment", currentRoomInfo.get("apartment"));
         currentRoomInfo.put("communityId", currentRoomInfo.get("community_id"));
+        currentRoomInfo.put("roomType", currentRoomInfo.get("room_type"));
 
         currentRoomInfo.put("operate", StatusConstant.OPERATE_DEL);
         getRoomServiceDaoImpl().saveBusinessRoomInfo(currentRoomInfo);

--
Gitblit v1.8.0