whyclxw
2021-04-15 a920f534ceb37a76243524618368a6bf61763b83
提交
6个文件已修改
28 ■■■■ 已修改文件
src/main/java/com/example/lxw/pojo/UserBattgroupBaojigroupUsr.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/example/lxw/pojo/User_inf.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/User_infMapper.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/example/lxw/pojo/UserBattgroupBaojigroupUsr.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/com/example/lxw/pojo/User_inf.class 补丁 | 查看 | 原始文档 | blame | 历史
target/classes/mapper/User_infMapper.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/example/lxw/pojo/UserBattgroupBaojigroupUsr.java
@@ -1,6 +1,7 @@
package com.example.lxw.pojo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@@ -14,10 +15,14 @@
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName(schema = "db_user",value = "tb_user_battgroup_baojigroup_usr")
public class UserBattgroupBaojigroupUsr {
    @TableField(exist = false)
    private long num;
    @TableField(value = "baoji_group_id")
    private long baojiGroupId;
    @TableField(exist = false)
    private long uId;
}
src/main/java/com/example/lxw/pojo/User_inf.java
@@ -9,6 +9,7 @@
import lombok.ToString;
import java.io.Serializable;
import java.util.List;
/**
 * @author lxw
@@ -52,6 +53,14 @@
    @TableField(exist = false)
    private String note;
    @TableField(exist = false)
    private UserBattgroupBaojigroupUsr baojigroupUsr;
    private List<UserBattgroupBaojigroupUsr> baojigroupUsrs;
    public void setBaojigroupUsrs(List<UserBattgroupBaojigroupUsr> baojigroupUsrs) {
        this.baojigroupUsrs = baojigroupUsrs;
    }
    public List<UserBattgroupBaojigroupUsr> getBaojigroupUsrs() {
        return baojigroupUsrs;
    }
}
src/main/resources/mapper/User_infMapper.xml
@@ -5,9 +5,9 @@
    <resultMap id="baojiUserMap" type="User_inf">
        <result column="uSnId" property="uSnId" />
        <result column="uName" property="uName" />
        <association property="UserBattgroupBaojigroupUsr">
            <result property="baojiGroupId" column="baojiGroupId"/>
        </association>
        <collection property="baojigroupUsrs" ofType="UserBattgroupBaojigroupUsr">
            <result column="baoji_group_id" property="baojiGroupId" />
        </collection>
    </resultMap>
    <select id="searchByBaojiUsr" resultMap="baojiUserMap">
target/classes/com/example/lxw/pojo/UserBattgroupBaojigroupUsr.class
Binary files differ
target/classes/com/example/lxw/pojo/User_inf.class
Binary files differ
target/classes/mapper/User_infMapper.xml
@@ -5,9 +5,9 @@
    <resultMap id="baojiUserMap" type="User_inf">
        <result column="uSnId" property="uSnId" />
        <result column="uName" property="uName" />
        <association property="UserBattgroupBaojigroupUsr">
            <result property="baojiGroupId" column="baojiGroupId"/>
        </association>
        <collection property="baojigroupUsrs" ofType="UserBattgroupBaojigroupUsr">
            <result column="baoji_group_id" property="baojiGroupId" />
        </collection>
    </resultMap>
    <select id="searchByBaojiUsr" resultMap="baojiUserMap">