修改结构

This commit is contained in:
zhangqinlin
2021-09-01 11:56:50 +08:00
parent 424796d97b
commit 91e2faba69
3 changed files with 7 additions and 1 deletions
@@ -7,6 +7,9 @@ import java.io.Serializable;
@Data
public class ChildrenFindByName implements Serializable {
@ApiModelProperty(value = "分标委成员id")
private java.lang.String childrenId;
@ApiModelProperty(value = "企业名称")
private java.lang.String companyName;
@@ -5,6 +5,7 @@
<id property="id" column="id"></id>
<result property="name" column="name"></result>
<collection property="list" ofType="com.jero.data.entity.ChildrenFindByName" javaType="java.util.List">
<id property="childrenId" column="childrenId"></id>
<result property="companyName" column="companyName"></result>
<result property="post" column="post"></result>
<result property="phone" column="phone"></result>
@@ -12,7 +13,7 @@
</collection>
</resultMap>
<select id="list" resultMap="people">
SELECT pe.id as id,pt.name as peopleName,pm.company_name as companyName,pt.post as post,pt.phone as phone ,pe.name as name
SELECT pe.id as id,pt.name as peopleName,pm.company_name as companyName,pt.post as post,pt.phone as phone ,pe.name as name,pm.id as childrenId
from
pay_case_committee pe
left JOIN pay_case_committee_subitem pm on (pe.id = pm.committee_id)