1、单据查询字段时,新增嵌套
This commit is contained in:
parent
dea87559c8
commit
67ab11cddc
|
@ -28,6 +28,10 @@ public class MdmModuleEntity extends BaseEntity {
|
||||||
private String modifyUser;
|
private String modifyUser;
|
||||||
/** 0:预制 1:手工 */
|
/** 0:预制 1:手工 */
|
||||||
private String tag;
|
private String tag;
|
||||||
|
private String u8cDbPk;
|
||||||
|
private String nccDbPk;
|
||||||
|
private String ysDbPk;
|
||||||
|
|
||||||
|
|
||||||
public String getTag() {
|
public String getTag() {
|
||||||
return tag;
|
return tag;
|
||||||
|
@ -37,6 +41,30 @@ public class MdmModuleEntity extends BaseEntity {
|
||||||
this.tag = tag;
|
this.tag = tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getU8cDbPk() {
|
||||||
|
return u8cDbPk;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setU8cDbPk(String u8cDbPk) {
|
||||||
|
this.u8cDbPk = u8cDbPk;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNccDbPk() {
|
||||||
|
return nccDbPk;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNccDbPk(String nccDbPk) {
|
||||||
|
this.nccDbPk = nccDbPk;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYsDbPk() {
|
||||||
|
return ysDbPk;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYsDbPk(String ysDbPk) {
|
||||||
|
this.ysDbPk = ysDbPk;
|
||||||
|
}
|
||||||
|
|
||||||
public String getMdmName() {
|
public String getMdmName() {
|
||||||
return mdmName;
|
return mdmName;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,9 @@
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
<result property="tag" column="tag" jdbcType="VARCHAR"/>
|
<result property="tag" column="tag" jdbcType="VARCHAR"/>
|
||||||
|
<result property="u8cDbPk" column="u8c_db_pk" jdbcType="VARCHAR"/>
|
||||||
|
<result property="nccDbPk" column="ncc_db_pk" jdbcType="VARCHAR"/>
|
||||||
|
<result property="ysDbPk" column="ys_db_pk" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,6 +44,9 @@
|
||||||
,org_id
|
,org_id
|
||||||
,company_id
|
,company_id
|
||||||
,tag
|
,tag
|
||||||
|
,u8c_db_pk
|
||||||
|
,ncc_db_pk
|
||||||
|
,ys_db_pk
|
||||||
</sql>
|
</sql>
|
||||||
<!--通过ID获取数据 -->
|
<!--通过ID获取数据 -->
|
||||||
<select id="entity_get" resultMap="get-MdmModuleEntity-result">
|
<select id="entity_get" resultMap="get-MdmModuleEntity-result">
|
||||||
|
@ -70,6 +76,9 @@
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
||||||
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||||
<if test="tag != null and tag != ''">and tag = #{tag}</if>
|
<if test="tag != null and tag != ''">and tag = #{tag}</if>
|
||||||
|
<if test="u8cDbPk != null and u8cDbPk != ''">and u8c_db_pk = #{u8cDbPk}</if>
|
||||||
|
<if test="nccDbPk != null and nccDbPk != ''">and ncc_db_pk = #{nccDbPk}</if>
|
||||||
|
<if test="ysDbPk != null and ysDbPk != ''">and ys_db_pk = #{ysDbPk}</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||||
|
@ -95,6 +104,9 @@
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
||||||
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||||
<if test="tag != null and tag != ''">and tag = #{tag}</if>
|
<if test="tag != null and tag != ''">and tag = #{tag}</if>
|
||||||
|
<if test="u8cDbPk != null and u8cDbPk != ''">and u8c_db_pk = #{u8cDbPk}</if>
|
||||||
|
<if test="nccDbPk != null and nccDbPk != ''">and ncc_db_pk = #{nccDbPk}</if>
|
||||||
|
<if test="ysDbPk != null and ysDbPk != ''">and ys_db_pk = #{ysDbPk}</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||||
|
@ -182,6 +194,9 @@
|
||||||
<if test="companyId != null and companyId != ''">company_id ,</if>
|
<if test="companyId != null and companyId != ''">company_id ,</if>
|
||||||
<if test="sts == null ">sts,</if>
|
<if test="sts == null ">sts,</if>
|
||||||
<if test="tag == null ">tag ,</if>
|
<if test="tag == null ">tag ,</if>
|
||||||
|
<if test="u8cDbPk != null and u8cDbPk != ''">u8c_db_pk,</if>
|
||||||
|
<if test="nccDbPk != null and nccDbPk != ''">ncc_db_pk,</if>
|
||||||
|
<if test="ysDbPk != null and ysDbPk != ''">ys_db_pk,</if>
|
||||||
</trim>
|
</trim>
|
||||||
)values(
|
)values(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
@ -202,6 +217,9 @@
|
||||||
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
|
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
|
||||||
<if test="sts == null ">'Y',</if>
|
<if test="sts == null ">'Y',</if>
|
||||||
<if test="tag == null ">'1',</if>
|
<if test="tag == null ">'1',</if>
|
||||||
|
<if test="u8cDbPk != null and u8cDbPk != ''">#{u8cDbPk},</if>
|
||||||
|
<if test="nccDbPk != null and nccDbPk != ''">#{nccDbPk},</if>
|
||||||
|
<if test="ysDbPk != null and ysDbPk != ''">#{ysDbPk},</if>
|
||||||
</trim>
|
</trim>
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
@ -289,6 +307,9 @@ where id = #{id}
|
||||||
<select id="queryMdm" resultMap="get-MdmModuleEntity-result"
|
<select id="queryMdm" resultMap="get-MdmModuleEntity-result"
|
||||||
parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
select
|
select
|
||||||
|
a.u8c_db_pk as u8c_db_pk,
|
||||||
|
a.ncc_db_pk as ncc_db_pk,
|
||||||
|
a.ys_db_pk as ys_db_pk,
|
||||||
a.id as id,
|
a.id as id,
|
||||||
a.mdm_name as mdm_name,
|
a.mdm_name as mdm_name,
|
||||||
a.mdm_logo as mdm_logo,
|
a.mdm_logo as mdm_logo,
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.hzya.frame.mdm.mdmModuleDbFileds.entity;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
@ -253,5 +254,18 @@ public class MdmModuleDbFiledsEntity extends BaseEntity {
|
||||||
public void setIsSysName(String isSysName) {
|
public void setIsSysName(String isSysName) {
|
||||||
this.isSysName = isSysName;
|
this.isSysName = isSysName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联的表
|
||||||
|
*/
|
||||||
|
private MdmModuleDbEntity mdmModuleDbEntity;
|
||||||
|
|
||||||
|
public MdmModuleDbEntity getMdmModuleDbEntity() {
|
||||||
|
return mdmModuleDbEntity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMdmModuleDbEntity(MdmModuleDbEntity mdmModuleDbEntity) {
|
||||||
|
this.mdmModuleDbEntity = mdmModuleDbEntity;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue