Commit 4c3b7fd9 authored by lixuan's avatar lixuan

Merge branch 'dev' into 'main'

Dev

See merge request !115
parents f48d1b5e 7754fc93
Pipeline #143169 passed with stages
in 4 minutes and 35 seconds
...@@ -24,4 +24,8 @@ public class BusinessEntityInfo implements Serializable { ...@@ -24,4 +24,8 @@ public class BusinessEntityInfo implements Serializable {
private String business; private String business;
private Integer workerNumber; private Integer workerNumber;
private String registeredAddress;
private String industryClassification;
} }
...@@ -2,6 +2,8 @@ package com.ruoyi.system.domain.house; ...@@ -2,6 +2,8 @@ package com.ruoyi.system.domain.house;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal;
@Data @Data
public class BusinessEntitySell { public class BusinessEntitySell {
...@@ -11,9 +13,9 @@ public class BusinessEntitySell { ...@@ -11,9 +13,9 @@ public class BusinessEntitySell {
private Integer year; private Integer year;
private String yearSell; private BigDecimal yearSell;
private String yearTax; private BigDecimal yearTax;
private String compare; private String compare;
} }
...@@ -37,7 +37,7 @@ public class HouseEnums { ...@@ -37,7 +37,7 @@ public class HouseEnums {
public enum HouseResourceTypeEnum { public enum HouseResourceTypeEnum {
// 房源类型 // 房源类型
ZY(0, "在营"), ZY(0, "在营"),
KZ(1, "置"), KZ(1, "置"),
GK(2, "挂靠"); GK(2, "挂靠");
private final int code; private final int code;
......
...@@ -26,5 +26,9 @@ public class BusinessEntityDto { ...@@ -26,5 +26,9 @@ public class BusinessEntityDto {
private Integer workerNumber; private Integer workerNumber;
private String registeredAddress;
private String industryClassification;
private List<BusinessEntitySell> businessEntitySells; private List<BusinessEntitySell> businessEntitySells;
} }
...@@ -15,7 +15,7 @@ public class HouseResourcePageQuery extends PageDomain { ...@@ -15,7 +15,7 @@ public class HouseResourcePageQuery extends PageDomain {
private String four; private String four;
private String houseResourceAttribute; private Integer houseResourceAttribute;
private String sortWay; private String sortWay;
......
...@@ -11,15 +11,17 @@ ...@@ -11,15 +11,17 @@
<result column="principal_tel" property="principalTel" jdbcType="VARCHAR"/> <result column="principal_tel" property="principalTel" jdbcType="VARCHAR"/>
<result column="business" property="business" jdbcType="VARCHAR"/> <result column="business" property="business" jdbcType="VARCHAR"/>
<result column="worker_number" property="workerNumber" jdbcType="INTEGER"/> <result column="worker_number" property="workerNumber" jdbcType="INTEGER"/>
<result column="registered_address" property="registeredAddress" jdbcType="VARCHAR"/>
<result column="industry_classification" property="industryClassification" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<insert id="insertBusinessEntityInfo" parameterType="com.ruoyi.system.domain.house.BusinessEntityInfo"> <insert id="insertBusinessEntityInfo" parameterType="com.ruoyi.system.domain.house.BusinessEntityInfo">
INSERT INTO business_entity_info ( INSERT INTO business_entity_info (
id, house_resource_id, name, nature, social_credit_code, id, house_resource_id, name, nature, social_credit_code,
principal, principal_tel, business, worker_number principal, principal_tel, business, worker_number, registered_address, industry_classification
) VALUES ( ) VALUES (
#{id}, #{houseResourceId}, #{name}, #{nature}, #{socialCreditCode}, #{id}, #{houseResourceId}, #{name}, #{nature}, #{socialCreditCode},
#{principal}, #{principalTel}, #{business}, #{workerNumber} #{principal}, #{principalTel}, #{business}, #{workerNumber}, #{registeredAddress}, #{industryClassification}
) )
</insert> </insert>
...@@ -38,6 +40,8 @@ ...@@ -38,6 +40,8 @@
<if test="principalTel != null">principal_tel=#{principalTel},</if> <if test="principalTel != null">principal_tel=#{principalTel},</if>
<if test="business != null">business=#{business},</if> <if test="business != null">business=#{business},</if>
<if test="workerNumber != null">worker_number=#{workerNumber},</if> <if test="workerNumber != null">worker_number=#{workerNumber},</if>
<if test="registeredAddress != null">registered_address=#{registeredAddress},</if>
<if test="industryClassification != null">industry_classification=#{industryClassification},</if>
</set> </set>
WHERE id=#{id} WHERE id=#{id}
</update> </update>
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<id column="id" property="id" jdbcType="VARCHAR"/> <id column="id" property="id" jdbcType="VARCHAR"/>
<result column="business_entity_info_id" property="businessEntityInfoId" jdbcType="VARCHAR"/> <result column="business_entity_info_id" property="businessEntityInfoId" jdbcType="VARCHAR"/>
<result column="year" property="year" jdbcType="INTEGER"/> <result column="year" property="year" jdbcType="INTEGER"/>
<result column="year_sell" property="yearSell" jdbcType="VARCHAR"/> <result column="year_sell" property="yearSell" jdbcType="DECIMAL"/>
<result column="year_tax" property="yearTax" jdbcType="VARCHAR"/> <result column="year_tax" property="yearTax" jdbcType="DECIMAL"/>
<result column="compare" property="compare" jdbcType="VARCHAR"/> <result column="compare" property="compare" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
......
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
<if test="query.four != null and query.four != ''"> <if test="query.four != null and query.four != ''">
and t2.four = #{query.four} and t2.four = #{query.four}
</if> </if>
<if test="query.houseResourceAttribute != null and query.houseResourceAttribute != ''"> <if test="query.houseResourceAttribute != null">
and t2.house_resource_attribute = #{query.houseResourceAttribute} and t2.house_resource_attribute = #{query.houseResourceAttribute}
</if> </if>
<if test="query.hireStatus != null"> <if test="query.hireStatus != null">
......
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