提交 9046f1b3 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 760e95fd
...@@ -29,4 +29,12 @@ export interface IncidentCustomer { ...@@ -29,4 +29,12 @@ export interface IncidentCustomer {
* @memberof IncidentCustomer * @memberof IncidentCustomer
*/ */
customername?: any; customername?: any;
/**
* 商业类型
*
* @returns {*}
* @memberof IncidentCustomer
*/
businesstypecode?: any;
} }
\ No newline at end of file
...@@ -4,6 +4,7 @@ export default { ...@@ -4,6 +4,7 @@ export default {
customerid: "客户", customerid: "客户",
customertype: "客户类型", customertype: "客户类型",
customername: "客户", customername: "客户",
businesstypecode: "商业类型",
}, },
views: { views: {
pickupview: { pickupview: {
......
...@@ -3,6 +3,7 @@ export default { ...@@ -3,6 +3,7 @@ export default {
customerid: "客户", customerid: "客户",
customertype: "客户类型", customertype: "客户类型",
customername: "客户", customername: "客户",
businesstypecode: "商业类型",
}, },
views: { views: {
pickupview: { pickupview: {
......
...@@ -24,6 +24,9 @@ export default class MPickupViewpickupviewpanelModel { ...@@ -24,6 +24,9 @@ export default class MPickupViewpickupviewpanelModel {
{ {
name: 'customername', name: 'customername',
}, },
{
name: 'businesstypecode',
},
] ]
} }
......
...@@ -24,6 +24,9 @@ export default class PickupViewpickupviewpanelModel { ...@@ -24,6 +24,9 @@ export default class PickupViewpickupviewpanelModel {
{ {
name: 'customername', name: 'customername',
}, },
{
name: 'businesstypecode',
},
] ]
} }
......
...@@ -61,6 +61,13 @@ public class IncidentCustomer extends EntityMP implements Serializable { ...@@ -61,6 +61,13 @@ public class IncidentCustomer extends EntityMP implements Serializable {
@JSONField(name = "customername") @JSONField(name = "customername")
@JsonProperty("customername") @JsonProperty("customername")
private String customername; private String customername;
/**
* 商业类型
*/
@TableField(exist = false)
@JSONField(name = "businesstypecode")
@JsonProperty("businesstypecode")
private String businesstypecode;
......
...@@ -41,6 +41,13 @@ public class IncidentCustomerSearchContext extends QueryWrapperContext<IncidentC ...@@ -41,6 +41,13 @@ public class IncidentCustomerSearchContext extends QueryWrapperContext<IncidentC
this.getSearchCond().like("customername", n_customername_like); this.getSearchCond().like("customername", n_customername_like);
} }
} }
private String n_businesstypecode_eq;//[商业类型]
public void setN_businesstypecode_eq(String n_businesstypecode_eq) {
this.n_businesstypecode_eq = n_businesstypecode_eq;
if(!ObjectUtils.isEmpty(this.n_businesstypecode_eq)){
this.getSearchCond().eq("businesstypecode", n_businesstypecode_eq);
}
}
/** /**
* 启用快速搜索 * 启用快速搜索
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性--> <!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="IncidentCustomerResultMap" databaseId="mysql"> <select id="selectById" resultMap="IncidentCustomerResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CUSTOMERID`, t1.`CUSTOMERNAME`, t1.`CUSTOMERTYPE` FROM (SELECT 'ACCOUNT' AS `CUSTOMERTYPE`,v1.`ACCOUNTID` AS `CUSTOMERID` ,v1.`ACCOUNTNAME` AS `CUSTOMERNAME` FROM (SELECT t1.`ACCOUNTID`, t1.`ACCOUNTNAME` FROM `ACCOUNT` t1 ) v1 UNION ALL SELECT 'CONTACT' AS `CUSTOMERTYPE`,v2.`CONTACTID` AS `CUSTOMERID` ,v2.`FULLNAME` AS `CUSTOMERNAME` FROM (SELECT t1.`CONTACTID`, t1.`FULLNAME` FROM `CONTACT` t1 ) v2 ) t1 ) t1 where customerid=#{id}]]> <![CDATA[select t1.* from (SELECT t1.`BUSINESSTYPECODE`, t1.`CUSTOMERID`, t1.`CUSTOMERNAME`, t1.`CUSTOMERTYPE` FROM (SELECT 'ACCOUNT' AS `CUSTOMERTYPE`,v1.`ACCOUNTID` AS `CUSTOMERID` ,v1.`ACCOUNTNAME` AS `CUSTOMERNAME` ,NULL AS `BUSINESSTYPECODE` FROM (SELECT t1.`ACCOUNTID`, t1.`ACCOUNTNAME` FROM `ACCOUNT` t1 ) v1 UNION ALL SELECT 'CONTACT' AS `CUSTOMERTYPE`,v2.`CONTACTID` AS `CUSTOMERID` ,v2.`FULLNAME` AS `CUSTOMERNAME` ,NULL AS `BUSINESSTYPECODE` FROM (SELECT t1.`CONTACTID`, t1.`FULLNAME` FROM `CONTACT` t1 ) v2 ) t1 ) t1 where customerid=#{id}]]>
</select> </select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
</sql> </sql>
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="mysql"> <sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CUSTOMERID`, t1.`CUSTOMERNAME`, t1.`CUSTOMERTYPE` FROM (SELECT 'ACCOUNT' AS `CUSTOMERTYPE`,v1.`ACCOUNTID` AS `CUSTOMERID` ,v1.`ACCOUNTNAME` AS `CUSTOMERNAME` FROM (SELECT t1.`ACCOUNTID`, t1.`ACCOUNTNAME` FROM `ACCOUNT` t1 ) v1 UNION ALL SELECT 'CONTACT' AS `CUSTOMERTYPE`,v2.`CONTACTID` AS `CUSTOMERID` ,v2.`FULLNAME` AS `CUSTOMERNAME` FROM (SELECT t1.`CONTACTID`, t1.`FULLNAME` FROM `CONTACT` t1 ) v2 ) t1 <![CDATA[ SELECT t1.`BUSINESSTYPECODE`, t1.`CUSTOMERID`, t1.`CUSTOMERNAME`, t1.`CUSTOMERTYPE` FROM (SELECT 'ACCOUNT' AS `CUSTOMERTYPE`,v1.`ACCOUNTID` AS `CUSTOMERID` ,v1.`ACCOUNTNAME` AS `CUSTOMERNAME` ,NULL AS `BUSINESSTYPECODE` FROM (SELECT t1.`ACCOUNTID`, t1.`ACCOUNTNAME` FROM `ACCOUNT` t1 ) v1 UNION ALL SELECT 'CONTACT' AS `CUSTOMERTYPE`,v2.`CONTACTID` AS `CUSTOMERID` ,v2.`FULLNAME` AS `CUSTOMERNAME` ,NULL AS `BUSINESSTYPECODE` FROM (SELECT t1.`CONTACTID`, t1.`FULLNAME` FROM `CONTACT` t1 ) v2 ) t1
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="mysql"> <sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CUSTOMERID`, t1.`CUSTOMERNAME`, t1.`CUSTOMERTYPE` FROM (SELECT 'ACCOUNT' AS `CUSTOMERTYPE`,v1.`ACCOUNTID` AS `CUSTOMERID` ,v1.`ACCOUNTNAME` AS `CUSTOMERNAME` FROM (SELECT t1.`ACCOUNTID`, t1.`ACCOUNTNAME` FROM `ACCOUNT` t1 ) v1 UNION ALL SELECT 'CONTACT' AS `CUSTOMERTYPE`,v2.`CONTACTID` AS `CUSTOMERID` ,v2.`FULLNAME` AS `CUSTOMERNAME` FROM (SELECT t1.`CONTACTID`, t1.`FULLNAME` FROM `CONTACT` t1 ) v2 ) t1 <![CDATA[ SELECT t1.`BUSINESSTYPECODE`, t1.`CUSTOMERID`, t1.`CUSTOMERNAME`, t1.`CUSTOMERTYPE` FROM (SELECT 'ACCOUNT' AS `CUSTOMERTYPE`,v1.`ACCOUNTID` AS `CUSTOMERID` ,v1.`ACCOUNTNAME` AS `CUSTOMERNAME` ,NULL AS `BUSINESSTYPECODE` FROM (SELECT t1.`ACCOUNTID`, t1.`ACCOUNTNAME` FROM `ACCOUNT` t1 ) v1 UNION ALL SELECT 'CONTACT' AS `CUSTOMERTYPE`,v2.`CONTACTID` AS `CUSTOMERID` ,v2.`FULLNAME` AS `CUSTOMERNAME` ,NULL AS `BUSINESSTYPECODE` FROM (SELECT t1.`CONTACTID`, t1.`FULLNAME` FROM `CONTACT` t1 ) v2 ) t1
]]> ]]>
</sql> </sql>
</mapper> </mapper>
......
...@@ -47,6 +47,14 @@ public class IncidentCustomerDTO extends DTOBase implements Serializable { ...@@ -47,6 +47,14 @@ public class IncidentCustomerDTO extends DTOBase implements Serializable {
@JsonProperty("customername") @JsonProperty("customername")
private String customername; private String customername;
/**
* 属性 [BUSINESSTYPECODE]
*
*/
@JSONField(name = "businesstypecode")
@JsonProperty("businesstypecode")
private String businesstypecode;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册