Explorar el Código

添加停车位

java110 hace 5 años
padre
commit
0f97eaaee4

+ 5 - 4
java110-db/src/main/resources/mapper/community/ParkingSpaceServiceDaoImplMapper.xml

@@ -7,9 +7,9 @@
     <!-- 保存停车位信息 add by wuxw 2018-07-03 -->
     <insert id="saveBusinessParkingSpaceInfo" parameterType="Map">
         insert into business_parking_space(
-        area,operate,num,ps_id,pa_id, remark,state,community_id,b_id
+        area,operate,num,ps_id,pa_id, remark,state,community_id,b_id,parking_type
         ) values (
-        #{area},#{operate},#{num},#{psId},#{paId},#{remark},#{state},#{communityId},#{bId}
+        #{area},#{operate},#{num},#{psId},#{paId},#{remark},#{state},#{communityId},#{bId},#{parkingType}
         )
     </insert>
 
@@ -64,8 +64,9 @@
     <!-- 保存停车位信息至 instance表中 add by wuxw 2018-07-03 -->
     <insert id="saveParkingSpaceInfoInstance" parameterType="Map">
         insert into parking_space(
-        area,num,ps_id,pa_id,remark,status_cd,state,community_id,b_id
-        ) select t.area,t.num,t.ps_id,t.pa_id,t.remark,'0',t.state,t.community_id,t.b_id from
+        area,num,ps_id,pa_id,remark,status_cd,state,community_id,b_id,parking_type
+        ) select t.area,t.num,t.ps_id,t.pa_id,t.remark,'0',t.state,t.community_id,t.b_id,t.parking_type
+        from
         business_parking_space t where 1=1
         <if test="area !=null and area != ''">
             and t.area= #{area}

+ 3 - 1
service-api/src/main/java/com/java110/api/bmo/parkingSpace/impl/ParkingSpaceBMOImpl.java

@@ -196,7 +196,9 @@ public class ParkingSpaceBMOImpl extends ApiBaseBMO implements IParkingSpaceBMO
         businessParkingSpace.put("bId", "-1");
         businessParkingSpace.put("createTime", new Date());
         ParkingSpacePo parkingSpacePo = BeanConvertUtil.covertBean(businessParkingSpace, ParkingSpacePo.class);
-        parkingSpaceInnerServiceSMOImpl.saveParkingSpace(parkingSpacePo);
+        super.insert(dataFlowContext, parkingSpacePo, BusinessTypeConstant.BUSINESS_TYPE_SAVE_PARKING_SPACE);
+
+        //parkingSpaceInnerServiceSMOImpl.saveParkingSpace(parkingSpacePo);
     }
 
 

+ 2 - 0
service-community/src/main/java/com/java110/community/listener/parkingSpace/AbstractParkingSpaceBusinessServiceDataFlowListener.java

@@ -47,6 +47,7 @@ public abstract class AbstractParkingSpaceBusinessServiceDataFlowListener extend
         businessParkingSpaceInfo.put("state", businessParkingSpaceInfo.get("state"));
         businessParkingSpaceInfo.put("communityId", businessParkingSpaceInfo.get("community_id"));
         businessParkingSpaceInfo.put("userId", businessParkingSpaceInfo.get("user_id"));
+        businessParkingSpaceInfo.put("parkingType", businessParkingSpaceInfo.get("parking_type"));
         businessParkingSpaceInfo.remove("bId");
         businessParkingSpaceInfo.put("statusCd", statusCd);
     }
@@ -81,6 +82,7 @@ public abstract class AbstractParkingSpaceBusinessServiceDataFlowListener extend
         currentParkingSpaceInfo.put("state", currentParkingSpaceInfo.get("state"));
         currentParkingSpaceInfo.put("communityId", currentParkingSpaceInfo.get("community_id"));
         currentParkingSpaceInfo.put("userId", currentParkingSpaceInfo.get("user_id"));
+        currentParkingSpaceInfo.put("parkingType", currentParkingSpaceInfo.get("parking_type"));
 
 
         currentParkingSpaceInfo.put("operate", StatusConstant.OPERATE_DEL);