Commit 7754fc93 authored by lixuan's avatar lixuan

Merge branch 'dev-lx' into 'dev'

feat: 房源

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