楼栋字段修改

main
hansha 2 years ago
parent 59b001f6f3
commit 93837e6863

@ -30,12 +30,12 @@ public class SzxcLdInfo extends BaseEntity
@Excel(name = "楼栋名称") @Excel(name = "楼栋名称")
private String ldName; private String ldName;
/** 类型(0小区楼栋1独立房2其它) */ /** 楼栋类型(0小区楼栋1独立房2其它) */
@Excel(name = "类型(0小区楼栋1独立房2其它)") @Excel(name = "楼栋类型(0小区楼栋1独立房2其它)")
private String xqType; private String ldType;
/** 类别字典 */ /** 楼栋类别字典 */
@Excel(name = "类别字典") @Excel(name = "楼栋类别字典")
private String ldSort; private String ldSort;
/** 楼栋结构字典 */ /** 楼栋结构字典 */
@ -110,14 +110,14 @@ public class SzxcLdInfo extends BaseEntity
{ {
return ldName; return ldName;
} }
public void setXqType(String xqType) public void setLdType(String ldType)
{ {
this.xqType = xqType; this.ldType = ldType;
} }
public String getXqType() public String getLdType()
{ {
return xqType; return ldType;
} }
public void setLdSort(String ldSort) public void setLdSort(String ldSort)
{ {
@ -217,7 +217,7 @@ public class SzxcLdInfo extends BaseEntity
.append("xqId", getXqId()) .append("xqId", getXqId())
.append("xqName", getXqName()) .append("xqName", getXqName())
.append("ldName", getLdName()) .append("ldName", getLdName())
.append("xqType", getXqType()) .append("ldType", getLdType())
.append("ldSort", getLdSort()) .append("ldSort", getLdSort())
.append("ldjg", getLdjg()) .append("ldjg", getLdjg())
.append("qnfs", getQnfs()) .append("qnfs", getQnfs())

@ -1,17 +1,18 @@
package com.ruoyi.szxc.domain; package com.ruoyi.szxc.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity; import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
/** /**
* szxc_xq_info * szxc_xq_info
* *
* @author hs * @author hs
* @date 2024-03-16 * @date 2024-03-28
*/ */
public class SzxcXqInfo extends BaseEntity public class SzxcXqInfo extends BaseEntity
{ {
@ -20,6 +21,10 @@ public class SzxcXqInfo extends BaseEntity
/** id */ /** id */
private Long id; private Long id;
/** 小区名称 */
@Excel(name = "小区名称")
private String name;
/** 类型(0老旧1新2片区散户) */ /** 类型(0老旧1新2片区散户) */
@Excel(name = "类型(0老旧1新2片区散户)") @Excel(name = "类型(0老旧1新2片区散户)")
private String xqType; private String xqType;
@ -73,129 +78,138 @@ public class SzxcXqInfo extends BaseEntity
@Excel(name = "创建者ID") @Excel(name = "创建者ID")
private Long userId; private Long userId;
public void setId(Long id) public void setId(Long id)
{ {
this.id = id; this.id = id;
} }
public Long getId() public Long getId()
{ {
return id; return id;
} }
public void setXqType(String xqType) public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setXqType(String xqType)
{ {
this.xqType = xqType; this.xqType = xqType;
} }
public String getXqType() public String getXqType()
{ {
return xqType; return xqType;
} }
public void setLdNum(Long ldNum) public void setLdNum(Long ldNum)
{ {
this.ldNum = ldNum; this.ldNum = ldNum;
} }
public Long getLdNum() public Long getLdNum()
{ {
return ldNum; return ldNum;
} }
public void setJzArea(String jzArea) public void setJzArea(String jzArea)
{ {
this.jzArea = jzArea; this.jzArea = jzArea;
} }
public String getJzArea() public String getJzArea()
{ {
return jzArea; return jzArea;
} }
public void setZdArea(String zdArea) public void setZdArea(String zdArea)
{ {
this.zdArea = zdArea; this.zdArea = zdArea;
} }
public String getZdArea() public String getZdArea()
{ {
return zdArea; return zdArea;
} }
public void setWyType(String wyType) public void setWyType(String wyType)
{ {
this.wyType = wyType; this.wyType = wyType;
} }
public String getWyType() public String getWyType()
{ {
return wyType; return wyType;
} }
public void setWyResponse(String wyResponse) public void setWyResponse(String wyResponse)
{ {
this.wyResponse = wyResponse; this.wyResponse = wyResponse;
} }
public String getWyResponse() public String getWyResponse()
{ {
return wyResponse; return wyResponse;
} }
public void setWyPhone(String wyPhone) public void setWyPhone(String wyPhone)
{ {
this.wyPhone = wyPhone; this.wyPhone = wyPhone;
} }
public String getWyPhone() public String getWyPhone()
{ {
return wyPhone; return wyPhone;
} }
public void setXqAddress(String xqAddress) public void setXqAddress(String xqAddress)
{ {
this.xqAddress = xqAddress; this.xqAddress = xqAddress;
} }
public String getXqAddress() public String getXqAddress()
{ {
return xqAddress; return xqAddress;
} }
public void setBuildDate(Date buildDate) public void setBuildDate(Date buildDate)
{ {
this.buildDate = buildDate; this.buildDate = buildDate;
} }
public Date getBuildDate() public Date getBuildDate()
{ {
return buildDate; return buildDate;
} }
public void setXqDescribe(String xqDescribe) public void setXqDescribe(String xqDescribe)
{ {
this.xqDescribe = xqDescribe; this.xqDescribe = xqDescribe;
} }
public String getXqDescribe() public String getXqDescribe()
{ {
return xqDescribe; return xqDescribe;
} }
public void setDeptId(Long deptId) public void setDeptId(Long deptId)
{ {
this.deptId = deptId; this.deptId = deptId;
} }
public Long getDeptId() public Long getDeptId()
{ {
return deptId; return deptId;
} }
public void setDeptName(String deptName) public void setDeptName(String deptName)
{ {
this.deptName = deptName; this.deptName = deptName;
} }
public String getDeptName() public String getDeptName()
{ {
return deptName; return deptName;
} }
public void setUserId(Long userId) public void setUserId(Long userId)
{ {
this.userId = userId; this.userId = userId;
} }
public Long getUserId() public Long getUserId()
{ {
return userId; return userId;
} }
@ -203,24 +217,25 @@ public class SzxcXqInfo extends BaseEntity
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId()) .append("id", getId())
.append("xqType", getXqType()) .append("name", getName())
.append("ldNum", getLdNum()) .append("xqType", getXqType())
.append("jzArea", getJzArea()) .append("ldNum", getLdNum())
.append("zdArea", getZdArea()) .append("jzArea", getJzArea())
.append("wyType", getWyType()) .append("zdArea", getZdArea())
.append("wyResponse", getWyResponse()) .append("wyType", getWyType())
.append("wyPhone", getWyPhone()) .append("wyResponse", getWyResponse())
.append("xqAddress", getXqAddress()) .append("wyPhone", getWyPhone())
.append("buildDate", getBuildDate()) .append("xqAddress", getXqAddress())
.append("xqDescribe", getXqDescribe()) .append("buildDate", getBuildDate())
.append("createBy", getCreateBy()) .append("xqDescribe", getXqDescribe())
.append("createTime", getCreateTime()) .append("createBy", getCreateBy())
.append("updateBy", getUpdateBy()) .append("createTime", getCreateTime())
.append("updateTime", getUpdateTime()) .append("updateBy", getUpdateBy())
.append("deptId", getDeptId()) .append("updateTime", getUpdateTime())
.append("deptName", getDeptName()) .append("deptId", getDeptId())
.append("userId", getUserId()) .append("deptName", getDeptName())
.toString(); .append("userId", getUserId())
.toString();
} }
} }

@ -9,7 +9,7 @@
<result property="xqId" column="xq_id" /> <result property="xqId" column="xq_id" />
<result property="xqName" column="xq_name" /> <result property="xqName" column="xq_name" />
<result property="ldName" column="ld_name" /> <result property="ldName" column="ld_name" />
<result property="xqType" column="xq_type" /> <result property="ldType" column="ld_type" />
<result property="ldSort" column="ld_sort" /> <result property="ldSort" column="ld_sort" />
<result property="ldjg" column="ldjg" /> <result property="ldjg" column="ldjg" />
<result property="qnfs" column="qnfs" /> <result property="qnfs" column="qnfs" />
@ -27,7 +27,7 @@
</resultMap> </resultMap>
<sql id="selectSzxcLdInfoVo"> <sql id="selectSzxcLdInfoVo">
select id, xq_id, xq_name, ld_name, xq_type, ld_sort, ldjg, qnfs, lc_num, unit_num, hu_num, ld_describe, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_ld_info select id, xq_id, xq_name, ld_name, ld_type, ld_sort, ldjg, qnfs, lc_num, unit_num, hu_num, ld_describe, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_ld_info
</sql> </sql>
<select id="selectSzxcLdInfoList" parameterType="SzxcLdInfo" resultMap="SzxcLdInfoResult"> <select id="selectSzxcLdInfoList" parameterType="SzxcLdInfo" resultMap="SzxcLdInfoResult">
@ -36,7 +36,7 @@
<if test="xqId != null "> and xq_id = #{xqId}</if> <if test="xqId != null "> and xq_id = #{xqId}</if>
<if test="xqName != null and xqName != ''"> and xq_name like concat('%', #{xqName}, '%')</if> <if test="xqName != null and xqName != ''"> and xq_name like concat('%', #{xqName}, '%')</if>
<if test="ldName != null and ldName != ''"> and ld_name like concat('%', #{ldName}, '%')</if> <if test="ldName != null and ldName != ''"> and ld_name like concat('%', #{ldName}, '%')</if>
<if test="xqType != null and xqType != ''"> and xq_type = #{xqType}</if> <if test="ldType != null and ldType != ''"> and ld_type = #{ldType}</if>
<if test="ldSort != null and ldSort != ''"> and ld_sort = #{ldSort}</if> <if test="ldSort != null and ldSort != ''"> and ld_sort = #{ldSort}</if>
<if test="ldjg != null and ldjg != ''"> and ldjg = #{ldjg}</if> <if test="ldjg != null and ldjg != ''"> and ldjg = #{ldjg}</if>
<if test="qnfs != null and qnfs != ''"> and qnfs = #{qnfs}</if> <if test="qnfs != null and qnfs != ''"> and qnfs = #{qnfs}</if>
@ -61,7 +61,7 @@
<if test="xqId != null">xq_id,</if> <if test="xqId != null">xq_id,</if>
<if test="xqName != null">xq_name,</if> <if test="xqName != null">xq_name,</if>
<if test="ldName != null">ld_name,</if> <if test="ldName != null">ld_name,</if>
<if test="xqType != null">xq_type,</if> <if test="ldType != null">ld_type,</if>
<if test="ldSort != null">ld_sort,</if> <if test="ldSort != null">ld_sort,</if>
<if test="ldjg != null">ldjg,</if> <if test="ldjg != null">ldjg,</if>
<if test="qnfs != null">qnfs,</if> <if test="qnfs != null">qnfs,</if>
@ -81,7 +81,7 @@
<if test="xqId != null">#{xqId},</if> <if test="xqId != null">#{xqId},</if>
<if test="xqName != null">#{xqName},</if> <if test="xqName != null">#{xqName},</if>
<if test="ldName != null">#{ldName},</if> <if test="ldName != null">#{ldName},</if>
<if test="xqType != null">#{xqType},</if> <if test="ldType != null">#{ldType},</if>
<if test="ldSort != null">#{ldSort},</if> <if test="ldSort != null">#{ldSort},</if>
<if test="ldjg != null">#{ldjg},</if> <if test="ldjg != null">#{ldjg},</if>
<if test="qnfs != null">#{qnfs},</if> <if test="qnfs != null">#{qnfs},</if>
@ -105,7 +105,7 @@
<if test="xqId != null">xq_id = #{xqId},</if> <if test="xqId != null">xq_id = #{xqId},</if>
<if test="xqName != null">xq_name = #{xqName},</if> <if test="xqName != null">xq_name = #{xqName},</if>
<if test="ldName != null">ld_name = #{ldName},</if> <if test="ldName != null">ld_name = #{ldName},</if>
<if test="xqType != null">xq_type = #{xqType},</if> <if test="ldType != null">ld_type = #{ldType},</if>
<if test="ldSort != null">ld_sort = #{ldSort},</if> <if test="ldSort != null">ld_sort = #{ldSort},</if>
<if test="ldjg != null">ldjg = #{ldjg},</if> <if test="ldjg != null">ldjg = #{ldjg},</if>
<if test="qnfs != null">qnfs = #{qnfs},</if> <if test="qnfs != null">qnfs = #{qnfs},</if>

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.szxc.mapper.SzxcXqInfoMapper"> <mapper namespace="com.ruoyi.szxc.mapper.SzxcXqInfoMapper">
<resultMap type="SzxcXqInfo" id="SzxcXqInfoResult"> <resultMap type="SzxcXqInfo" id="SzxcXqInfoResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="name" column="name" />
<result property="xqType" column="xq_type" /> <result property="xqType" column="xq_type" />
<result property="ldNum" column="ld_num" /> <result property="ldNum" column="ld_num" />
<result property="jzArea" column="jz_area" /> <result property="jzArea" column="jz_area" />
@ -26,12 +27,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectSzxcXqInfoVo"> <sql id="selectSzxcXqInfoVo">
select id, xq_type, ld_num, jz_area, zd_area, wy_type, wy_response, wy_phone, xq_address, build_date, xq_describe, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_xq_info select id, name, xq_type, ld_num, jz_area, zd_area, wy_type, wy_response, wy_phone, xq_address, build_date, xq_describe, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_xq_info
</sql> </sql>
<select id="selectSzxcXqInfoList" parameterType="SzxcXqInfo" resultMap="SzxcXqInfoResult"> <select id="selectSzxcXqInfoList" parameterType="SzxcXqInfo" resultMap="SzxcXqInfoResult">
<include refid="selectSzxcXqInfoVo"/> <include refid="selectSzxcXqInfoVo"/>
<where> <where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="xqType != null and xqType != ''"> and xq_type = #{xqType}</if> <if test="xqType != null and xqType != ''"> and xq_type = #{xqType}</if>
<if test="ldNum != null "> and ld_num = #{ldNum}</if> <if test="ldNum != null "> and ld_num = #{ldNum}</if>
<if test="jzArea != null and jzArea != ''"> and jz_area = #{jzArea}</if> <if test="jzArea != null and jzArea != ''"> and jz_area = #{jzArea}</if>
@ -47,15 +49,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
</where> </where>
</select> </select>
<select id="selectSzxcXqInfoById" parameterType="Long" resultMap="SzxcXqInfoResult"> <select id="selectSzxcXqInfoById" parameterType="Long" resultMap="SzxcXqInfoResult">
<include refid="selectSzxcXqInfoVo"/> <include refid="selectSzxcXqInfoVo"/>
where id = #{id} where id = #{id}
</select> </select>
<insert id="insertSzxcXqInfo" parameterType="SzxcXqInfo" useGeneratedKeys="true" keyProperty="id"> <insert id="insertSzxcXqInfo" parameterType="SzxcXqInfo" useGeneratedKeys="true" keyProperty="id">
insert into szxc_xq_info insert into szxc_xq_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="xqType != null">xq_type,</if> <if test="xqType != null">xq_type,</if>
<if test="ldNum != null">ld_num,</if> <if test="ldNum != null">ld_num,</if>
<if test="jzArea != null">jz_area,</if> <if test="jzArea != null">jz_area,</if>
@ -73,8 +76,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deptId != null">dept_id,</if> <if test="deptId != null">dept_id,</if>
<if test="deptName != null">dept_name,</if> <if test="deptName != null">dept_name,</if>
<if test="userId != null">user_id,</if> <if test="userId != null">user_id,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="xqType != null">#{xqType},</if> <if test="xqType != null">#{xqType},</if>
<if test="ldNum != null">#{ldNum},</if> <if test="ldNum != null">#{ldNum},</if>
<if test="jzArea != null">#{jzArea},</if> <if test="jzArea != null">#{jzArea},</if>
@ -92,12 +96,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deptId != null">#{deptId},</if> <if test="deptId != null">#{deptId},</if>
<if test="deptName != null">#{deptName},</if> <if test="deptName != null">#{deptName},</if>
<if test="userId != null">#{userId},</if> <if test="userId != null">#{userId},</if>
</trim> </trim>
</insert> </insert>
<update id="updateSzxcXqInfo" parameterType="SzxcXqInfo"> <update id="updateSzxcXqInfo" parameterType="SzxcXqInfo">
update szxc_xq_info update szxc_xq_info
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="xqType != null">xq_type = #{xqType},</if> <if test="xqType != null">xq_type = #{xqType},</if>
<if test="ldNum != null">ld_num = #{ldNum},</if> <if test="ldNum != null">ld_num = #{ldNum},</if>
<if test="jzArea != null">jz_area = #{jzArea},</if> <if test="jzArea != null">jz_area = #{jzArea},</if>
@ -124,7 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete> </delete>
<delete id="deleteSzxcXqInfoByIds" parameterType="String"> <delete id="deleteSzxcXqInfoByIds" parameterType="String">
delete from szxc_xq_info where id in delete from szxc_xq_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>

Loading…
Cancel
Save