Commit ef6f1ecc authored by lixuan's avatar lixuan

feat: 房源

parent d5bdd1c5
Pipeline #144148 failed with stages
in 7 minutes and 34 seconds
...@@ -75,4 +75,6 @@ public class HouseResource implements Serializable { ...@@ -75,4 +75,6 @@ public class HouseResource implements Serializable {
private String lat; private String lat;
private String remark; private String remark;
private Boolean gs;
} }
...@@ -39,7 +39,8 @@ public class HouseEnums { ...@@ -39,7 +39,8 @@ public class HouseEnums {
ZY(0, "在营"), ZY(0, "在营"),
KZ(1, "闲置"), KZ(1, "闲置"),
GK(2, "挂靠"), GK(2, "挂靠"),
SBC(3, "设备层"); SBC(3, "设备层"),
ZYZY(4, "在营自用");
private final int code; private final int code;
private final String desc; private final String desc;
......
...@@ -39,6 +39,8 @@ public class BusinessEntityStatisticsDetail { ...@@ -39,6 +39,8 @@ public class BusinessEntityStatisticsDetail {
private long gkCount; private long gkCount;
private long zyzyCount;
private long ztCount; private long ztCount;
private BigDecimal gyCount = BigDecimal.ZERO; private BigDecimal gyCount = BigDecimal.ZERO;
......
...@@ -263,6 +263,7 @@ public class HouseResourceServiceImpl implements HouseResourceService { ...@@ -263,6 +263,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
businessEntityStatisticsDetail.setZaiyingCount(list.stream().filter(x -> x.getHouseResourceType() == 0).count()); businessEntityStatisticsDetail.setZaiyingCount(list.stream().filter(x -> x.getHouseResourceType() == 0).count());
businessEntityStatisticsDetail.setXzCount(list.stream().filter(x -> x.getHouseResourceType() == 1).count()); businessEntityStatisticsDetail.setXzCount(list.stream().filter(x -> x.getHouseResourceType() == 1).count());
businessEntityStatisticsDetail.setGkCount(list.stream().filter(x -> x.getHouseResourceType() == 2).count()); businessEntityStatisticsDetail.setGkCount(list.stream().filter(x -> x.getHouseResourceType() == 2).count());
businessEntityStatisticsDetail.setZyzyCount(list.stream().filter(x -> x.getHouseResourceType() == 4).count());
List<String> houseResourceIds = list.stream().map(HouseResource::getId).collect(Collectors.toList()); List<String> houseResourceIds = list.stream().map(HouseResource::getId).collect(Collectors.toList());
List<BusinessEntityInfo> businessEntityInfos = businessEntityInfoMapper.selectAllBusinessEntityInfosByHouseResourceIds(houseResourceIds); List<BusinessEntityInfo> businessEntityInfos = businessEntityInfoMapper.selectAllBusinessEntityInfosByHouseResourceIds(houseResourceIds);
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
<result property="lon" column="lon" jdbcType="VARCHAR"/> <result property="lon" column="lon" jdbcType="VARCHAR"/>
<result property="lat" column="lat" jdbcType="VARCHAR"/> <result property="lat" column="lat" jdbcType="VARCHAR"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/> <result property="remark" column="remark" jdbcType="VARCHAR"/>
<result property="gs" column="gs" jdbcType="BIT"/>
</resultMap> </resultMap>
<insert id="insertHouseResource" parameterType="com.ruoyi.system.domain.house.HouseResource"> <insert id="insertHouseResource" parameterType="com.ruoyi.system.domain.house.HouseResource">
...@@ -43,12 +44,12 @@ ...@@ -43,12 +44,12 @@
(id, relation_id, two, three, four, type, project_id, house_resource_url, business_license_url, house_number, house_area, (id, relation_id, two, three, four, type, project_id, house_resource_url, business_license_url, house_number, house_area,
house_resource_attribute, house_resource_type, house_resource_use, house_resource_equity, house_resource_equity_tel, ownership, house_resource_attribute, house_resource_type, house_resource_use, house_resource_equity, house_resource_equity_tel, ownership,
decoration_condition, orientation, landing_head_flag, common_area_number, office_number, decoration_condition, orientation, landing_head_flag, common_area_number, office_number,
meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url, hire_status, address, lon, lat, remark) meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url, hire_status, address, lon, lat, remark, gs)
VALUES VALUES
(#{id}, #{relationId}, #{two}, #{three}, #{four}, #{type}, #{projectId}, #{houseResourceUrl}, #{businessLicenseUrl}, #{houseNumber}, #{houseArea}, (#{id}, #{relationId}, #{two}, #{three}, #{four}, #{type}, #{projectId}, #{houseResourceUrl}, #{businessLicenseUrl}, #{houseNumber}, #{houseArea},
#{houseResourceAttribute}, #{houseResourceType}, #{houseResourceUse}, #{houseResourceEquity}, #{houseResourceEquityTel}, #{ownership}, #{houseResourceAttribute}, #{houseResourceType}, #{houseResourceUse}, #{houseResourceEquity}, #{houseResourceEquityTel}, #{ownership},
#{decorationCondition}, #{orientation}, #{landingHeadFlag}, #{commonAreaNumber}, #{officeNumber}, #{decorationCondition}, #{orientation}, #{landingHeadFlag}, #{commonAreaNumber}, #{officeNumber},
#{meetingNumber}, #{stationNumber}, #{setUp}, #{labelId}, #{unitPrice}, #{rentalUnit}, #{planeGraphUrl}, #{hireStatus}, #{address}, #{lon}, #{lat}, #{remark}) #{meetingNumber}, #{stationNumber}, #{setUp}, #{labelId}, #{unitPrice}, #{rentalUnit}, #{planeGraphUrl}, #{hireStatus}, #{address}, #{lon}, #{lat}, #{remark}, #{gs})
</insert> </insert>
<select id="selectHouseResourceById" resultType="com.ruoyi.system.domain.house.HouseResource" parameterType="string"> <select id="selectHouseResourceById" resultType="com.ruoyi.system.domain.house.HouseResource" parameterType="string">
...@@ -89,7 +90,8 @@ ...@@ -89,7 +90,8 @@
address = #{address}, address = #{address},
lon = #{lon}, lon = #{lon},
lat = #{lat}, lat = #{lat},
remark = #{remark} remark = #{remark},
gs = #{gs}
WHERE id = #{id} WHERE id = #{id}
</update> </update>
...@@ -102,7 +104,7 @@ ...@@ -102,7 +104,7 @@
(id, relation_id, two, three, four, type, project_id, house_resource_url, business_license_url, house_number, house_area, (id, relation_id, two, three, four, type, project_id, house_resource_url, business_license_url, house_number, house_area,
house_resource_attribute, house_resource_type, house_resource_use, house_resource_equity, house_resource_equity_tel, ownership, house_resource_attribute, house_resource_type, house_resource_use, house_resource_equity, house_resource_equity_tel, ownership,
decoration_condition, orientation, landing_head_flag, common_area_number, office_number, decoration_condition, orientation, landing_head_flag, common_area_number, office_number,
meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url, hire_status, address, lon, lat, remark) meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url, hire_status, address, lon, lat, remark, gs)
VALUES VALUES
<foreach collection="list" item="item" separator=","> <foreach collection="list" item="item" separator=",">
(#{item.id}, #{item.relationId}, #{two}, #{three}, #{four}, #{item.type}, #{item.projectId}, #{item.houseResourceUrl}, #{item.businessLicenseUrl}, (#{item.id}, #{item.relationId}, #{two}, #{three}, #{four}, #{item.type}, #{item.projectId}, #{item.houseResourceUrl}, #{item.businessLicenseUrl},
...@@ -110,7 +112,7 @@ ...@@ -110,7 +112,7 @@
#{item.houseResourceUse}, #{item.houseResourceEquity}, #{item.houseResourceEquityTel}, #{ownership}, #{item.decorationCondition}, #{item.houseResourceUse}, #{item.houseResourceEquity}, #{item.houseResourceEquityTel}, #{ownership}, #{item.decorationCondition},
#{item.orientation}, #{item.landingHeadFlag}, #{item.commonAreaNumber}, #{item.officeNumber}, #{item.orientation}, #{item.landingHeadFlag}, #{item.commonAreaNumber}, #{item.officeNumber},
#{item.meetingNumber}, #{item.stationNumber}, #{item.setUp}, #{item.labelId}, #{item.unitPrice}, #{item.rentalUnit}, #{item.meetingNumber}, #{item.stationNumber}, #{item.setUp}, #{item.labelId}, #{item.unitPrice}, #{item.rentalUnit},
#{item.planeGraphUrl}, #{item.hireStatus}, #{item.address}, #{item.lon}, #{item.lat}, #{item.remark}) #{item.planeGraphUrl}, #{item.hireStatus}, #{item.address}, #{item.lon}, #{item.lat}, #{item.remark}, #{item.gs})
</foreach> </foreach>
</insert> </insert>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment