From cf80a9cabc89ed44dfd18bde55a6c78480909ec1 Mon Sep 17 00:00:00 2001 From: hansha Date: Sat, 30 Mar 2024 15:08:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E8=81=94=E8=A1=A8=E6=B7=BB=E5=8A=A0id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/szxc/domain/SzxcCsFw.java | 17 +++++- .../java/com/ruoyi/szxc/domain/SzxcJmCar.java | 36 ++++++++--- .../com/ruoyi/szxc/domain/SzxcJmHouse.java | 33 +++++++--- .../java/com/ruoyi/szxc/domain/SzxcJmTag.java | 17 +++++- .../resources/mapper/szxc/SzxcCsFwMapper.xml | 26 ++++---- .../resources/mapper/szxc/SzxcJmCarMapper.xml | 61 +++++++++++++++++++ .../mapper/szxc/SzxcJmHouseMapper.xml | 61 +++++++++++++++++++ .../resources/mapper/szxc/SzxcJmTagMapper.xml | 28 +++++---- ruoyi-ui/src/views/szxc/cs_fw/index.vue | 34 ++++++++--- 9 files changed, 261 insertions(+), 52 deletions(-) create mode 100644 ruoyi-szxc/src/main/resources/mapper/szxc/SzxcJmCarMapper.xml create mode 100644 ruoyi-szxc/src/main/resources/mapper/szxc/SzxcJmHouseMapper.xml diff --git a/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcCsFw.java b/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcCsFw.java index dcea975..8016042 100644 --- a/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcCsFw.java +++ b/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcCsFw.java @@ -9,22 +9,36 @@ import com.ruoyi.common.core.domain.BaseEntity; * 场所房屋关联对象 szxc_cs_fw * * @author hs - * @date 2024-03-29 + * @date 2024-03-30 */ public class SzxcCsFw extends BaseEntity { private static final long serialVersionUID = 1L; + /** id */ + private Long id; + /** 场所id */ + @Excel(name = "场所id") private Long csId; /** 房屋id */ + @Excel(name = "房屋id") private Long fwId; /** 房屋名称 */ @Excel(name = "房屋名称") private String fwName; + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } public void setCsId(Long csId) { this.csId = csId; @@ -56,6 +70,7 @@ public class SzxcCsFw extends BaseEntity @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) .append("csId", getCsId()) .append("fwId", getFwId()) .append("fwName", getFwName()) diff --git a/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcJmCar.java b/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcJmCar.java index e02d4ba..8024a39 100644 --- a/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcJmCar.java +++ b/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcJmCar.java @@ -1,40 +1,55 @@ package com.ruoyi.szxc.domain; -import com.ruoyi.common.core.domain.BaseEntity; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; /** * 居民车辆关联对象 szxc_jm_car - * + * * @author hs - * @date 2024-03-16 + * @date 2024-03-30 */ public class SzxcJmCar extends BaseEntity { private static final long serialVersionUID = 1L; + /** id */ + private Long id; + /** 居民id */ + @Excel(name = "居民id") private Long jmId; /** 车辆id */ + @Excel(name = "车辆id") private Long carId; - public void setJmId(Long jmId) + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setJmId(Long jmId) { this.jmId = jmId; } - public Long getJmId() + public Long getJmId() { return jmId; } - public void setCarId(Long carId) + public void setCarId(Long carId) { this.carId = carId; } - public Long getCarId() + public Long getCarId() { return carId; } @@ -42,8 +57,9 @@ public class SzxcJmCar extends BaseEntity @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("jmId", getJmId()) - .append("carId", getCarId()) - .toString(); + .append("id", getId()) + .append("jmId", getJmId()) + .append("carId", getCarId()) + .toString(); } } diff --git a/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcJmHouse.java b/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcJmHouse.java index 6a08a58..fd60e1b 100644 --- a/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcJmHouse.java +++ b/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcJmHouse.java @@ -7,35 +7,49 @@ import com.ruoyi.common.core.domain.BaseEntity; /** * 居民房屋关联对象 szxc_jm_house - * + * * @author hs - * @date 2024-03-16 + * @date 2024-03-30 */ public class SzxcJmHouse extends BaseEntity { private static final long serialVersionUID = 1L; + /** id */ + private Long id; + /** 居民id */ + @Excel(name = "居民id") private Long jmId; /** 房屋id */ + @Excel(name = "房屋id") private Long houseId; - public void setJmId(Long jmId) + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setJmId(Long jmId) { this.jmId = jmId; } - public Long getJmId() + public Long getJmId() { return jmId; } - public void setHouseId(Long houseId) + public void setHouseId(Long houseId) { this.houseId = houseId; } - public Long getHouseId() + public Long getHouseId() { return houseId; } @@ -43,8 +57,9 @@ public class SzxcJmHouse extends BaseEntity @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("jmId", getJmId()) - .append("houseId", getHouseId()) - .toString(); + .append("id", getId()) + .append("jmId", getJmId()) + .append("houseId", getHouseId()) + .toString(); } } diff --git a/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcJmTag.java b/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcJmTag.java index 4112861..35a8a31 100644 --- a/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcJmTag.java +++ b/ruoyi-szxc/src/main/java/com/ruoyi/szxc/domain/SzxcJmTag.java @@ -9,22 +9,36 @@ import com.ruoyi.common.core.domain.BaseEntity; * 居民标签关联对象 szxc_jm_tag * * @author hs - * @date 2024-03-21 + * @date 2024-03-30 */ public class SzxcJmTag extends BaseEntity { private static final long serialVersionUID = 1L; + /** id */ + private Long id; + /** 居民id */ + @Excel(name = "居民id") private Long jmId; /** 标签id */ + @Excel(name = "标签id") private Long tagId; /** 标签名称 */ @Excel(name = "标签名称") private String tagName; + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } public void setJmId(Long jmId) { this.jmId = jmId; @@ -56,6 +70,7 @@ public class SzxcJmTag extends BaseEntity @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) .append("jmId", getJmId()) .append("tagId", getTagId()) .append("tagName", getTagName()) diff --git a/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcCsFwMapper.xml b/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcCsFwMapper.xml index 1299faf..0090226 100644 --- a/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcCsFwMapper.xml +++ b/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcCsFwMapper.xml @@ -5,28 +5,31 @@ + - select cs_id, fw_id, fw_name from szxc_cs_fw + select id, cs_id, fw_id, fw_name from szxc_cs_fw - - where cs_id = #{csId} + where id = #{id} - + insert into szxc_cs_fw cs_id, @@ -43,20 +46,21 @@ update szxc_cs_fw + cs_id = #{csId}, fw_id = #{fwId}, fw_name = #{fwName}, - where cs_id = #{csId} + where id = #{id} - - delete from szxc_cs_fw where cs_id = #{csId} + + delete from szxc_cs_fw where id = #{id} - - delete from szxc_cs_fw where cs_id in - - #{csId} + + delete from szxc_cs_fw where id in + + #{id} \ No newline at end of file diff --git a/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcJmCarMapper.xml b/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcJmCarMapper.xml new file mode 100644 index 0000000..65655d6 --- /dev/null +++ b/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcJmCarMapper.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + select id, jm_id, car_id from szxc_jm_car + + + + + + + + insert into szxc_jm_car + + jm_id, + car_id, + + + #{jmId}, + #{carId}, + + + + + update szxc_jm_car + + jm_id = #{jmId}, + car_id = #{carId}, + + where id = #{id} + + + + delete from szxc_jm_car where id = #{id} + + + + delete from szxc_jm_car where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcJmHouseMapper.xml b/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcJmHouseMapper.xml new file mode 100644 index 0000000..80cd6ee --- /dev/null +++ b/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcJmHouseMapper.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + select id, jm_id, house_id from szxc_jm_house + + + + + + + + insert into szxc_jm_house + + jm_id, + house_id, + + + #{jmId}, + #{houseId}, + + + + + update szxc_jm_house + + jm_id = #{jmId}, + house_id = #{houseId}, + + where id = #{id} + + + + delete from szxc_jm_house where id = #{id} + + + + delete from szxc_jm_house where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcJmTagMapper.xml b/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcJmTagMapper.xml index 856a906..fa96688 100644 --- a/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcJmTagMapper.xml +++ b/ruoyi-szxc/src/main/resources/mapper/szxc/SzxcJmTagMapper.xml @@ -5,30 +5,31 @@ + - select jm_id, tag_id, tag_name from szxc_jm_tag + select id, jm_id, tag_id, tag_name from szxc_jm_tag - - where jm_id = #{jmId} + where id = #{id} - + insert into szxc_jm_tag jm_id, @@ -45,20 +46,21 @@ update szxc_jm_tag + jm_id = #{jmId}, tag_id = #{tagId}, tag_name = #{tagName}, - where jm_id = #{jmId} + where id = #{id} - - delete from szxc_jm_tag where jm_id = #{jmId} + + delete from szxc_jm_tag where id = #{id} - - delete from szxc_jm_tag where jm_id in - - #{jmId} + + delete from szxc_jm_tag where id in + + #{id} \ No newline at end of file diff --git a/ruoyi-ui/src/views/szxc/cs_fw/index.vue b/ruoyi-ui/src/views/szxc/cs_fw/index.vue index 874a776..512ca9c 100644 --- a/ruoyi-ui/src/views/szxc/cs_fw/index.vue +++ b/ruoyi-ui/src/views/szxc/cs_fw/index.vue @@ -1,6 +1,22 @@