Commit 0bca7943 authored by 罗林杰's avatar 罗林杰

修改门店字段

parent 58be04f2
......@@ -117,5 +117,11 @@ public class CustInfo extends CyIdIncreEntity<CustInfo> {
@TableField(exist = false)
private String customerBalanceMin;
/**
* 门店名称
*/
@TableField(exist = false)
private String storeName;
}
......@@ -121,5 +121,11 @@ public class CustRecharge extends CyIdIncreEntity<CustRecharge> {
*/
@TableField(exist = false)
private String customerTelephone;
/**
* 门店名称
*/
@TableField(exist = false)
private String storeName;
}
......@@ -21,9 +21,10 @@
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
<select id="queryCustInfos" resultMap="BaseResultMap">
select *,create_tb.name as create_name
select *,create_tb.name as create_name,dept_tb.dept_name as store_name
from cust_info as cio
left join sys_user as create_tb on cio.create_by = create_tb.business_id
left join sys_dept as dept_tb on cio.store_id = dept_tb.business_id
where 1=1
and cio.del_flag = '0'
<if test="entity.flag !=null and entity.flag != '' ">
......@@ -69,9 +70,10 @@
</select>
<select id="queryCustInfosPaged" resultMap="BaseResultMap">
select *,create_tb.name as create_name
select *,create_tb.name as create_name,dept_tb.dept_name as store_name
from cust_info as cio
left join sys_user as create_tb on cio.create_by = create_tb.business_id
left join sys_dept as dept_tb on cio.store_id = dept_tb.business_id
where 1=1
and cio.del_flag = '0'
<if test="entity.flag !=null and entity.flag != '' ">
......
......@@ -23,10 +23,12 @@
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
<select id="queryCustRecharges" resultMap="BaseResultMap">
select *,create_tb.name as create_name,cio.customer_name as customer_name,cio.customer_telephone as customer_telephone
select *,create_tb.name as create_name,cio.customer_name as customer_name
,cio.customer_telephone as customer_telephone,dept_tb.dept_name as store_name
from cust_recharge as cre
left join sys_user as create_tb on cre.create_by = create_tb.business_id
left join cust_info cio on cre.customer_id = cio.business_id
left join sys_dept as dept_tb on cre.store_id = dept_tb.business_id
where 1=1
and cre.del_flag = '0'
<if test="entity.flag !=null and entity.flag != '' ">
......@@ -75,10 +77,12 @@
</select>
<select id="queryCustRechargesPaged" resultMap="BaseResultMap">
select *,create_tb.name as create_name,cio.customer_name as customer_name,cio.customer_telephone as customer_telephone
select *,create_tb.name as create_name,cio.customer_name as customer_name
,cio.customer_telephone as customer_telephone,dept_tb.dept_name as store_name
from cust_recharge as cre
left join sys_user as create_tb on cre.create_by = create_tb.business_id
left join cust_info cio on cre.customer_id = cio.business_id
left join sys_dept as dept_tb on cre.store_id = dept_tb.business_id
where 1=1
and cre.del_flag = '0'
<if test="entity.flag !=null and entity.flag != '' ">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment