Просмотр исходного кода

加入房产导入日志功能

Your Name лет назад: 2
Родитель
Сommit
2556de40da

+ 261 - 0
java110-bean/src/main/java/com/java110/dto/log/AssetImportOwnerRoomDto.java

@@ -0,0 +1,261 @@
+package com.java110.dto.log;
+
+import com.java110.dto.PageDto;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @ClassName FloorDto
+ * @Description 资产导入日志数据层封装
+ * @Author wuxw
+ * @Date 2019/4/24 8:52
+ * @Version 1.0
+ * add by wuxw 2019/4/24
+ **/
+public class AssetImportOwnerRoomDto extends PageDto implements Serializable {
+
+    public static final String STATE_WAIT_IMPORT = "W"; //W 待导入 C 导入成功 F 导入失败
+    public static final String STATE_SUCCESS_IMPORT = "C"; //W 待导入 C 导入成功 F 导入失败
+    public static final String STATE_FAIL_IMPORT = "F"; //W 待导入 C 导入成功 F 导入失败
+
+    private String roomState;
+    private String idCard;
+    private String ownerTypeCd;
+    private String detailId;
+    private String unitNum;
+    private String section;
+    private String remark;
+    private String floorNum;
+    private String layer;
+    private String roomNum;
+    private String ownerName;
+    private String logId;
+    private String tel;
+    private String state;
+    private String communityId;
+    private String roomRent;
+    private String layerCount;
+    private String sex;
+    private String roomSubType;
+    private String roomArea;
+    private String builtUpArea;
+    private String left;
+    private String importUserId;
+    private String age;
+
+
+    private Date createTime;
+
+    private String statusCd = "0";
+
+
+    public String getRoomState() {
+        return roomState;
+    }
+
+    public void setRoomState(String roomState) {
+        this.roomState = roomState;
+    }
+
+    public String getIdCard() {
+        return idCard;
+    }
+
+    public void setIdCard(String idCard) {
+        this.idCard = idCard;
+    }
+
+    public String getOwnerTypeCd() {
+        return ownerTypeCd;
+    }
+
+    public void setOwnerTypeCd(String ownerTypeCd) {
+        this.ownerTypeCd = ownerTypeCd;
+    }
+
+    public String getDetailId() {
+        return detailId;
+    }
+
+    public void setDetailId(String detailId) {
+        this.detailId = detailId;
+    }
+
+    public String getUnitNum() {
+        return unitNum;
+    }
+
+    public void setUnitNum(String unitNum) {
+        this.unitNum = unitNum;
+    }
+
+    public String getSection() {
+        return section;
+    }
+
+    public void setSection(String section) {
+        this.section = section;
+    }
+
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+    public String getFloorNum() {
+        return floorNum;
+    }
+
+    public void setFloorNum(String floorNum) {
+        this.floorNum = floorNum;
+    }
+
+    public String getLayer() {
+        return layer;
+    }
+
+    public void setLayer(String layer) {
+        this.layer = layer;
+    }
+
+    public String getRoomNum() {
+        return roomNum;
+    }
+
+    public void setRoomNum(String roomNum) {
+        this.roomNum = roomNum;
+    }
+
+    public String getOwnerName() {
+        return ownerName;
+    }
+
+    public void setOwnerName(String ownerName) {
+        this.ownerName = ownerName;
+    }
+
+    public String getLogId() {
+        return logId;
+    }
+
+    public void setLogId(String logId) {
+        this.logId = logId;
+    }
+
+    public String getTel() {
+        return tel;
+    }
+
+    public void setTel(String tel) {
+        this.tel = tel;
+    }
+
+    public String getState() {
+        return state;
+    }
+
+    public void setState(String state) {
+        this.state = state;
+    }
+
+    public String getCommunityId() {
+        return communityId;
+    }
+
+    public void setCommunityId(String communityId) {
+        this.communityId = communityId;
+    }
+
+    public String getRoomRent() {
+        return roomRent;
+    }
+
+    public void setRoomRent(String roomRent) {
+        this.roomRent = roomRent;
+    }
+
+    public String getLayerCount() {
+        return layerCount;
+    }
+
+    public void setLayerCount(String layerCount) {
+        this.layerCount = layerCount;
+    }
+
+    public String getSex() {
+        return sex;
+    }
+
+    public void setSex(String sex) {
+        this.sex = sex;
+    }
+
+    public String getRoomSubType() {
+        return roomSubType;
+    }
+
+    public void setRoomSubType(String roomSubType) {
+        this.roomSubType = roomSubType;
+    }
+
+    public String getRoomArea() {
+        return roomArea;
+    }
+
+    public void setRoomArea(String roomArea) {
+        this.roomArea = roomArea;
+    }
+
+    public String getBuiltUpArea() {
+        return builtUpArea;
+    }
+
+    public void setBuiltUpArea(String builtUpArea) {
+        this.builtUpArea = builtUpArea;
+    }
+
+    public String getLeft() {
+        return left;
+    }
+
+    public void setLeft(String left) {
+        this.left = left;
+    }
+
+    public String getImportUserId() {
+        return importUserId;
+    }
+
+    public void setImportUserId(String importUserId) {
+        this.importUserId = importUserId;
+    }
+
+    public String getAge() {
+        return age;
+    }
+
+    public void setAge(String age) {
+        this.age = age;
+    }
+
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getStatusCd() {
+        return statusCd;
+    }
+
+    public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+}

+ 208 - 0
java110-bean/src/main/java/com/java110/po/log/AssetImportOwnerRoomPo.java

@@ -0,0 +1,208 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.po.log;
+
+import java.io.Serializable;
+import java.util.Date;
+/**
+ * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
+ * add by 吴学文 at 2023-06-19 00:08:14 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+public class AssetImportOwnerRoomPo implements Serializable {
+
+    private String roomState;
+private String idCard;
+private String ownerTypeCd;
+private String detailId;
+private String unitNum;
+private String section;
+private String remark;
+private String floorNum;
+private String layer;
+private String roomNum;
+private String ownerName;
+private String logId;
+private String tel;
+private String state;
+private String communityId;
+private String roomRent;
+private String layerCount;
+private String sex;
+private String roomSubType;
+private String roomArea;
+private String statusCd = "0";
+private String builtUpArea;
+private String left;
+private String importUserId;
+private String age;
+public String getRoomState() {
+        return roomState;
+    }
+public void setRoomState(String roomState) {
+        this.roomState = roomState;
+    }
+public String getIdCard() {
+        return idCard;
+    }
+public void setIdCard(String idCard) {
+        this.idCard = idCard;
+    }
+public String getOwnerTypeCd() {
+        return ownerTypeCd;
+    }
+public void setOwnerTypeCd(String ownerTypeCd) {
+        this.ownerTypeCd = ownerTypeCd;
+    }
+public String getDetailId() {
+        return detailId;
+    }
+public void setDetailId(String detailId) {
+        this.detailId = detailId;
+    }
+public String getUnitNum() {
+        return unitNum;
+    }
+public void setUnitNum(String unitNum) {
+        this.unitNum = unitNum;
+    }
+public String getSection() {
+        return section;
+    }
+public void setSection(String section) {
+        this.section = section;
+    }
+public String getRemark() {
+        return remark;
+    }
+public void setRemark(String remark) {
+        this.remark = remark;
+    }
+public String getFloorNum() {
+        return floorNum;
+    }
+public void setFloorNum(String floorNum) {
+        this.floorNum = floorNum;
+    }
+public String getLayer() {
+        return layer;
+    }
+public void setLayer(String layer) {
+        this.layer = layer;
+    }
+public String getRoomNum() {
+        return roomNum;
+    }
+public void setRoomNum(String roomNum) {
+        this.roomNum = roomNum;
+    }
+public String getOwnerName() {
+        return ownerName;
+    }
+public void setOwnerName(String ownerName) {
+        this.ownerName = ownerName;
+    }
+public String getLogId() {
+        return logId;
+    }
+public void setLogId(String logId) {
+        this.logId = logId;
+    }
+public String getTel() {
+        return tel;
+    }
+public void setTel(String tel) {
+        this.tel = tel;
+    }
+public String getState() {
+        return state;
+    }
+public void setState(String state) {
+        this.state = state;
+    }
+public String getCommunityId() {
+        return communityId;
+    }
+public void setCommunityId(String communityId) {
+        this.communityId = communityId;
+    }
+public String getRoomRent() {
+        return roomRent;
+    }
+public void setRoomRent(String roomRent) {
+        this.roomRent = roomRent;
+    }
+public String getLayerCount() {
+        return layerCount;
+    }
+public void setLayerCount(String layerCount) {
+        this.layerCount = layerCount;
+    }
+public String getSex() {
+        return sex;
+    }
+public void setSex(String sex) {
+        this.sex = sex;
+    }
+public String getRoomSubType() {
+        return roomSubType;
+    }
+public void setRoomSubType(String roomSubType) {
+        this.roomSubType = roomSubType;
+    }
+public String getRoomArea() {
+        return roomArea;
+    }
+public void setRoomArea(String roomArea) {
+        this.roomArea = roomArea;
+    }
+public String getStatusCd() {
+        return statusCd;
+    }
+public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+public String getBuiltUpArea() {
+        return builtUpArea;
+    }
+public void setBuiltUpArea(String builtUpArea) {
+        this.builtUpArea = builtUpArea;
+    }
+public String getLeft() {
+        return left;
+    }
+public void setLeft(String left) {
+        this.left = left;
+    }
+public String getImportUserId() {
+        return importUserId;
+    }
+public void setImportUserId(String importUserId) {
+        this.importUserId = importUserId;
+    }
+public String getAge() {
+        return age;
+    }
+public void setAge(String age) {
+        this.age = age;
+    }
+
+
+
+}

+ 280 - 0
java110-db/src/main/resources/mapper/community/AssetImportOwnerRoomV1ServiceDaoImplMapper.xml

@@ -0,0 +1,280 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="assetImportOwnerRoomV1ServiceDaoImpl">
+
+
+    <!-- 保存资产导入日志信息 add by wuxw 2018-07-03 -->
+    <insert id="saveAssetImportOwnerRoomInfo" parameterType="Map">
+        insert into asset_import_owner_room(
+        room_state,id_card,owner_type_cd,detail_id,unit_num,section,remark,floor_num,layer,room_num,owner_name,log_id,tel,state,community_id,room_rent,layer_count,sex,room_sub_type,room_area,built_up_area,left,import_user_id,age
+        ) values (
+        #{roomState},#{idCard},#{ownerTypeCd},#{detailId},#{unitNum},#{section},#{remark},#{floorNum},#{layer},#{roomNum},#{ownerName},#{logId},#{tel},#{state},#{communityId},#{roomRent},#{layerCount},#{sex},#{roomSubType},#{roomArea},#{builtUpArea},#{left},#{importUserId},#{age}
+        )
+    </insert>
+
+
+    <!-- 查询资产导入日志信息 add by wuxw 2018-07-03 -->
+    <select id="getAssetImportOwnerRoomInfo" parameterType="Map" resultType="Map">
+        select t.room_state,t.room_state roomState,t.id_card,t.id_card idCard,t.owner_type_cd,t.owner_type_cd
+        ownerTypeCd,t.detail_id,t.detail_id detailId,t.unit_num,t.unit_num
+        unitNum,t.section,t.remark,t.floor_num,t.floor_num floorNum,t.layer,t.room_num,t.room_num
+        roomNum,t.owner_name,t.owner_name ownerName,t.log_id,t.log_id logId,t.tel,t.state,t.community_id,t.community_id
+        communityId,t.room_rent,t.room_rent roomRent,t.layer_count,t.layer_count
+        layerCount,t.sex,t.room_sub_type,t.room_sub_type roomSubType,t.room_area,t.room_area
+        roomArea,t.status_cd,t.status_cd statusCd,t.built_up_area,t.built_up_area
+        builtUpArea,t.left,t.import_user_id,t.import_user_id importUserId,t.age
+        from asset_import_owner_room t
+        where 1 =1
+        <if test="roomState !=null and roomState != ''">
+            and t.room_state= #{roomState}
+        </if>
+        <if test="idCard !=null and idCard != ''">
+            and t.id_card= #{idCard}
+        </if>
+        <if test="ownerTypeCd !=null and ownerTypeCd != ''">
+            and t.owner_type_cd= #{ownerTypeCd}
+        </if>
+        <if test="detailId !=null and detailId != ''">
+            and t.detail_id= #{detailId}
+        </if>
+        <if test="unitNum !=null and unitNum != ''">
+            and t.unit_num= #{unitNum}
+        </if>
+        <if test="section !=null and section != ''">
+            and t.section= #{section}
+        </if>
+        <if test="remark !=null and remark != ''">
+            and t.remark= #{remark}
+        </if>
+        <if test="floorNum !=null and floorNum != ''">
+            and t.floor_num= #{floorNum}
+        </if>
+        <if test="layer !=null and layer != ''">
+            and t.layer= #{layer}
+        </if>
+        <if test="roomNum !=null and roomNum != ''">
+            and t.room_num= #{roomNum}
+        </if>
+        <if test="ownerName !=null and ownerName != ''">
+            and t.owner_name= #{ownerName}
+        </if>
+        <if test="logId !=null and logId != ''">
+            and t.log_id= #{logId}
+        </if>
+        <if test="tel !=null and tel != ''">
+            and t.tel= #{tel}
+        </if>
+        <if test="state !=null and state != ''">
+            and t.state= #{state}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+        <if test="roomRent !=null and roomRent != ''">
+            and t.room_rent= #{roomRent}
+        </if>
+        <if test="layerCount !=null and layerCount != ''">
+            and t.layer_count= #{layerCount}
+        </if>
+        <if test="sex !=null and sex != ''">
+            and t.sex= #{sex}
+        </if>
+        <if test="roomSubType !=null and roomSubType != ''">
+            and t.room_sub_type= #{roomSubType}
+        </if>
+        <if test="roomArea !=null and roomArea != ''">
+            and t.room_area= #{roomArea}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="builtUpArea !=null and builtUpArea != ''">
+            and t.built_up_area= #{builtUpArea}
+        </if>
+        <if test="left !=null and left != ''">
+            and t.left= #{left}
+        </if>
+        <if test="importUserId !=null and importUserId != ''">
+            and t.import_user_id= #{importUserId}
+        </if>
+        <if test="age !=null and age != ''">
+            and t.age= #{age}
+        </if>
+        order by t.create_time desc
+        <if test="page != -1 and page != null ">
+            limit #{page}, #{row}
+        </if>
+
+    </select>
+
+
+    <!-- 修改资产导入日志信息 add by wuxw 2018-07-03 -->
+    <update id="updateAssetImportOwnerRoomInfo" parameterType="Map">
+        update asset_import_owner_room t set t.status_cd = #{statusCd}
+        <if test="newBId != null and newBId != ''">
+            ,t.b_id = #{newBId}
+        </if>
+        <if test="roomState !=null and roomState != ''">
+            , t.room_state= #{roomState}
+        </if>
+        <if test="idCard !=null and idCard != ''">
+            , t.id_card= #{idCard}
+        </if>
+        <if test="ownerTypeCd !=null and ownerTypeCd != ''">
+            , t.owner_type_cd= #{ownerTypeCd}
+        </if>
+        <if test="unitNum !=null and unitNum != ''">
+            , t.unit_num= #{unitNum}
+        </if>
+        <if test="section !=null and section != ''">
+            , t.section= #{section}
+        </if>
+        <if test="remark !=null and remark != ''">
+            , t.remark= #{remark}
+        </if>
+        <if test="floorNum !=null and floorNum != ''">
+            , t.floor_num= #{floorNum}
+        </if>
+        <if test="layer !=null and layer != ''">
+            , t.layer= #{layer}
+        </if>
+        <if test="roomNum !=null and roomNum != ''">
+            , t.room_num= #{roomNum}
+        </if>
+        <if test="ownerName !=null and ownerName != ''">
+            , t.owner_name= #{ownerName}
+        </if>
+        <if test="logId !=null and logId != ''">
+            , t.log_id= #{logId}
+        </if>
+        <if test="tel !=null and tel != ''">
+            , t.tel= #{tel}
+        </if>
+        <if test="state !=null and state != ''">
+            , t.state= #{state}
+        </if>
+
+        <if test="roomRent !=null and roomRent != ''">
+            , t.room_rent= #{roomRent}
+        </if>
+        <if test="layerCount !=null and layerCount != ''">
+            , t.layer_count= #{layerCount}
+        </if>
+        <if test="sex !=null and sex != ''">
+            , t.sex= #{sex}
+        </if>
+        <if test="roomSubType !=null and roomSubType != ''">
+            , t.room_sub_type= #{roomSubType}
+        </if>
+        <if test="roomArea !=null and roomArea != ''">
+            , t.room_area= #{roomArea}
+        </if>
+        <if test="builtUpArea !=null and builtUpArea != ''">
+            , t.built_up_area= #{builtUpArea}
+        </if>
+        <if test="left !=null and left != ''">
+            , t.left= #{left}
+        </if>
+        <if test="importUserId !=null and importUserId != ''">
+            , t.import_user_id= #{importUserId}
+        </if>
+        <if test="age !=null and age != ''">
+            , t.age= #{age}
+        </if>
+        where 1=1
+        <if test="detailId !=null and detailId != ''">
+            and t.detail_id= #{detailId}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+
+    </update>
+
+    <!-- 查询资产导入日志数量 add by wuxw 2018-07-03 -->
+    <select id="queryAssetImportOwnerRoomsCount" parameterType="Map" resultType="Map">
+        select count(1) count
+        from asset_import_owner_room t
+        where 1 =1
+        <if test="roomState !=null and roomState != ''">
+            and t.room_state= #{roomState}
+        </if>
+        <if test="idCard !=null and idCard != ''">
+            and t.id_card= #{idCard}
+        </if>
+        <if test="ownerTypeCd !=null and ownerTypeCd != ''">
+            and t.owner_type_cd= #{ownerTypeCd}
+        </if>
+        <if test="detailId !=null and detailId != ''">
+            and t.detail_id= #{detailId}
+        </if>
+        <if test="unitNum !=null and unitNum != ''">
+            and t.unit_num= #{unitNum}
+        </if>
+        <if test="section !=null and section != ''">
+            and t.section= #{section}
+        </if>
+        <if test="remark !=null and remark != ''">
+            and t.remark= #{remark}
+        </if>
+        <if test="floorNum !=null and floorNum != ''">
+            and t.floor_num= #{floorNum}
+        </if>
+        <if test="layer !=null and layer != ''">
+            and t.layer= #{layer}
+        </if>
+        <if test="roomNum !=null and roomNum != ''">
+            and t.room_num= #{roomNum}
+        </if>
+        <if test="ownerName !=null and ownerName != ''">
+            and t.owner_name= #{ownerName}
+        </if>
+        <if test="logId !=null and logId != ''">
+            and t.log_id= #{logId}
+        </if>
+        <if test="tel !=null and tel != ''">
+            and t.tel= #{tel}
+        </if>
+        <if test="state !=null and state != ''">
+            and t.state= #{state}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+        <if test="roomRent !=null and roomRent != ''">
+            and t.room_rent= #{roomRent}
+        </if>
+        <if test="layerCount !=null and layerCount != ''">
+            and t.layer_count= #{layerCount}
+        </if>
+        <if test="sex !=null and sex != ''">
+            and t.sex= #{sex}
+        </if>
+        <if test="roomSubType !=null and roomSubType != ''">
+            and t.room_sub_type= #{roomSubType}
+        </if>
+        <if test="roomArea !=null and roomArea != ''">
+            and t.room_area= #{roomArea}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="builtUpArea !=null and builtUpArea != ''">
+            and t.built_up_area= #{builtUpArea}
+        </if>
+        <if test="left !=null and left != ''">
+            and t.left= #{left}
+        </if>
+        <if test="importUserId !=null and importUserId != ''">
+            and t.import_user_id= #{importUserId}
+        </if>
+        <if test="age !=null and age != ''">
+            and t.age= #{age}
+        </if>
+
+
+    </select>
+
+</mapper>

+ 68 - 0
java110-interface/src/main/java/com/java110/intf/community/IAssetImportOwnerRoomV1InnerServiceSMO.java

@@ -0,0 +1,68 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.intf.community;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.log.AssetImportOwnerRoomDto;
+import com.java110.po.log.AssetImportOwnerRoomPo;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import java.util.List;
+
+/**
+ * 类表述: 服务之前调用的接口类,不对外提供接口能力 只用于接口建调用
+ * add by 吴学文 at 2023-06-19 00:08:14 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@FeignClient(name = "community-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/assetImportOwnerRoomV1Api")
+public interface IAssetImportOwnerRoomV1InnerServiceSMO {
+
+
+    @RequestMapping(value = "/saveAssetImportOwnerRoom", method = RequestMethod.POST)
+    public int saveAssetImportOwnerRoom(@RequestBody  AssetImportOwnerRoomPo assetImportOwnerRoomPo);
+
+    @RequestMapping(value = "/updateAssetImportOwnerRoom", method = RequestMethod.POST)
+    public int updateAssetImportOwnerRoom(@RequestBody  AssetImportOwnerRoomPo assetImportOwnerRoomPo);
+
+    @RequestMapping(value = "/deleteAssetImportOwnerRoom", method = RequestMethod.POST)
+    public int deleteAssetImportOwnerRoom(@RequestBody  AssetImportOwnerRoomPo assetImportOwnerRoomPo);
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     *
+     * @param assetImportOwnerRoomDto 数据对象分享
+     * @return AssetImportOwnerRoomDto 对象数据
+     */
+    @RequestMapping(value = "/queryAssetImportOwnerRooms", method = RequestMethod.POST)
+    List<AssetImportOwnerRoomDto> queryAssetImportOwnerRooms(@RequestBody AssetImportOwnerRoomDto assetImportOwnerRoomDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param assetImportOwnerRoomDto 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/queryAssetImportOwnerRoomsCount", method = RequestMethod.POST)
+    int queryAssetImportOwnerRoomsCount(@RequestBody AssetImportOwnerRoomDto assetImportOwnerRoomDto);
+}

+ 83 - 0
service-community/src/main/java/com/java110/community/cmd/assetImportOwnerRoom/ListAssetImportOwnerRoomCmd.java

@@ -0,0 +1,83 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.community.cmd.assetImportOwnerRoom;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.community.IAssetImportOwnerRoomV1InnerServiceSMO;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import com.java110.dto.log.AssetImportOwnerRoomDto;
+import java.util.List;
+import java.util.ArrayList;
+import org.springframework.http.ResponseEntity;
+import org.springframework.http.HttpStatus;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * 类表述:查询
+ * 服务编码:assetImportOwnerRoom.listAssetImportOwnerRoom
+ * 请求路劲:/app/assetImportOwnerRoom.ListAssetImportOwnerRoom
+ * add by 吴学文 at 2023-06-19 00:08:14 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@Java110Cmd(serviceCode = "assetImportOwnerRoom.listAssetImportOwnerRoom")
+public class ListAssetImportOwnerRoomCmd extends Cmd {
+
+  private static Logger logger = LoggerFactory.getLogger(ListAssetImportOwnerRoomCmd.class);
+    @Autowired
+    private IAssetImportOwnerRoomV1InnerServiceSMO assetImportOwnerRoomV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        super.validatePageInfo(reqJson);
+        Assert.jsonObjectHaveKey(reqJson, "communityId", "请求中未包含communityId信息");
+
+    }
+
+    @Override
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+           AssetImportOwnerRoomDto assetImportOwnerRoomDto = BeanConvertUtil.covertBean(reqJson, AssetImportOwnerRoomDto.class);
+
+           int count = assetImportOwnerRoomV1InnerServiceSMOImpl.queryAssetImportOwnerRoomsCount(assetImportOwnerRoomDto);
+
+           List<AssetImportOwnerRoomDto> assetImportOwnerRoomDtos = null;
+
+           if (count > 0) {
+               assetImportOwnerRoomDtos = assetImportOwnerRoomV1InnerServiceSMOImpl.queryAssetImportOwnerRooms(assetImportOwnerRoomDto);
+           } else {
+               assetImportOwnerRoomDtos = new ArrayList<>();
+           }
+
+           ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, assetImportOwnerRoomDtos);
+
+           ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+           cmdDataFlowContext.setResponseEntity(responseEntity);
+    }
+}

+ 73 - 0
service-community/src/main/java/com/java110/community/dao/IAssetImportOwnerRoomV1ServiceDao.java

@@ -0,0 +1,73 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.community.dao;
+
+
+import com.java110.utils.exception.DAOException;
+
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 类表述:
+ * add by 吴学文 at 2023-06-19 00:08:14 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+public interface IAssetImportOwnerRoomV1ServiceDao {
+
+
+    /**
+     * 保存 资产导入日志信息
+     * @param info
+     * @throws DAOException DAO异常
+     */
+    int saveAssetImportOwnerRoomInfo(Map info) throws DAOException;
+
+
+
+
+    /**
+     * 查询资产导入日志信息(instance过程)
+     * 根据bId 查询资产导入日志信息
+     * @param info bId 信息
+     * @return 资产导入日志信息
+     * @throws DAOException DAO异常
+     */
+    List<Map> getAssetImportOwnerRoomInfo(Map info) throws DAOException;
+
+
+
+    /**
+     * 修改资产导入日志信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    int updateAssetImportOwnerRoomInfo(Map info) throws DAOException;
+
+
+    /**
+     * 查询资产导入日志总数
+     *
+     * @param info 资产导入日志信息
+     * @return 资产导入日志数量
+     */
+    int queryAssetImportOwnerRoomsCount(Map info);
+
+}

+ 112 - 0
service-community/src/main/java/com/java110/community/dao/impl/AssetImportOwnerRoomV1ServiceDaoImpl.java

@@ -0,0 +1,112 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.community.dao.impl;
+
+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.IAssetImportOwnerRoomV1ServiceDao;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 类表述:
+ * add by 吴学文 at 2023-06-19 00:08:14 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@Service("assetImportOwnerRoomV1ServiceDaoImpl")
+public class AssetImportOwnerRoomV1ServiceDaoImpl extends BaseServiceDao implements IAssetImportOwnerRoomV1ServiceDao {
+
+    private static Logger logger = LoggerFactory.getLogger(AssetImportOwnerRoomV1ServiceDaoImpl.class);
+
+
+
+
+
+    /**
+     * 保存资产导入日志信息 到 instance
+     * @param info   bId 信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int saveAssetImportOwnerRoomInfo(Map info) throws DAOException {
+        logger.debug("保存 saveAssetImportOwnerRoomInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("assetImportOwnerRoomV1ServiceDaoImpl.saveAssetImportOwnerRoomInfo",info);
+
+        return saveFlag;
+    }
+
+
+    /**
+     * 查询资产导入日志信息(instance)
+     * @param info bId 信息
+     * @return List<Map>
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public List<Map> getAssetImportOwnerRoomInfo(Map info) throws DAOException {
+        logger.debug("查询 getAssetImportOwnerRoomInfo 入参 info : {}",info);
+
+        List<Map> businessAssetImportOwnerRoomInfos = sqlSessionTemplate.selectList("assetImportOwnerRoomV1ServiceDaoImpl.getAssetImportOwnerRoomInfo",info);
+
+        return businessAssetImportOwnerRoomInfos;
+    }
+
+
+    /**
+     * 修改资产导入日志信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int updateAssetImportOwnerRoomInfo(Map info) throws DAOException {
+        logger.debug("修改 updateAssetImportOwnerRoomInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("assetImportOwnerRoomV1ServiceDaoImpl.updateAssetImportOwnerRoomInfo",info);
+
+        return saveFlag;
+    }
+
+     /**
+     * 查询资产导入日志数量
+     * @param info 资产导入日志信息
+     * @return 资产导入日志数量
+     */
+    @Override
+    public int queryAssetImportOwnerRoomsCount(Map info) {
+        logger.debug("查询 queryAssetImportOwnerRoomsCount 入参 info : {}",info);
+
+        List<Map> businessAssetImportOwnerRoomInfos = sqlSessionTemplate.selectList("assetImportOwnerRoomV1ServiceDaoImpl.queryAssetImportOwnerRoomsCount", info);
+        if (businessAssetImportOwnerRoomInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessAssetImportOwnerRoomInfos.get(0).get("count").toString());
+    }
+
+
+}

+ 87 - 0
service-community/src/main/java/com/java110/community/smo/impl/AssetImportOwnerRoomV1InnerServiceSMOImpl.java

@@ -0,0 +1,87 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.community.smo.impl;
+
+
+import com.java110.community.dao.IAssetImportOwnerRoomV1ServiceDao;
+import com.java110.intf.community.IAssetImportOwnerRoomV1InnerServiceSMO;
+import com.java110.dto.log.AssetImportOwnerRoomDto;
+import com.java110.po.log.AssetImportOwnerRoomPo;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.core.base.smo.BaseServiceSMO;
+import com.java110.dto.PageDto;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+/**
+ * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用
+ * add by 吴学文 at 2023-06-19 00:08:14 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@RestController
+public class AssetImportOwnerRoomV1InnerServiceSMOImpl extends BaseServiceSMO implements IAssetImportOwnerRoomV1InnerServiceSMO {
+
+    @Autowired
+    private IAssetImportOwnerRoomV1ServiceDao assetImportOwnerRoomV1ServiceDaoImpl;
+
+
+    @Override
+    public int saveAssetImportOwnerRoom(@RequestBody  AssetImportOwnerRoomPo assetImportOwnerRoomPo) {
+        int saveFlag = assetImportOwnerRoomV1ServiceDaoImpl.saveAssetImportOwnerRoomInfo(BeanConvertUtil.beanCovertMap(assetImportOwnerRoomPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int updateAssetImportOwnerRoom(@RequestBody  AssetImportOwnerRoomPo assetImportOwnerRoomPo) {
+        int saveFlag = assetImportOwnerRoomV1ServiceDaoImpl.updateAssetImportOwnerRoomInfo(BeanConvertUtil.beanCovertMap(assetImportOwnerRoomPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int deleteAssetImportOwnerRoom(@RequestBody  AssetImportOwnerRoomPo assetImportOwnerRoomPo) {
+       assetImportOwnerRoomPo.setStatusCd("1");
+       int saveFlag = assetImportOwnerRoomV1ServiceDaoImpl.updateAssetImportOwnerRoomInfo(BeanConvertUtil.beanCovertMap(assetImportOwnerRoomPo));
+       return saveFlag;
+    }
+
+    @Override
+    public List<AssetImportOwnerRoomDto> queryAssetImportOwnerRooms(@RequestBody  AssetImportOwnerRoomDto assetImportOwnerRoomDto) {
+
+        //校验是否传了 分页信息
+
+        int page = assetImportOwnerRoomDto.getPage();
+
+        if (page != PageDto.DEFAULT_PAGE) {
+            assetImportOwnerRoomDto.setPage((page - 1) * assetImportOwnerRoomDto.getRow());
+        }
+
+        List<AssetImportOwnerRoomDto> assetImportOwnerRooms = BeanConvertUtil.covertBeanList(assetImportOwnerRoomV1ServiceDaoImpl.getAssetImportOwnerRoomInfo(BeanConvertUtil.beanCovertMap(assetImportOwnerRoomDto)), AssetImportOwnerRoomDto.class);
+
+        return assetImportOwnerRooms;
+    }
+
+
+    @Override
+    public int queryAssetImportOwnerRoomsCount(@RequestBody AssetImportOwnerRoomDto assetImportOwnerRoomDto) {
+        return assetImportOwnerRoomV1ServiceDaoImpl.queryAssetImportOwnerRoomsCount(BeanConvertUtil.beanCovertMap(assetImportOwnerRoomDto));    }
+
+}