|
|
@@ -442,13 +442,14 @@
|
|
|
|
|
|
<select id="selectSignSummaryList" resultType="com.goafanti.order.bo.OutSignSummary">
|
|
|
select a.id ,a.nickname ,b.sign_number signNumber,b.sign_amount signAmount,
|
|
|
- date_format(b.first_signing_time ,'%Y-%m-%d') firstSigningTime,
|
|
|
- date_format(b.last_signing_time ,'%Y-%m-%d') lastSigningTime ,
|
|
|
- b.last_sales_type lastSalesType,c.name,b.follow_dep followDep,
|
|
|
- b.last_follow_type lastFollowType,b.follow_explain followExplain ,b.follow_number followNumber ,
|
|
|
- date_format(b.last_follow_time ,'%Y-%m-%d %H:%i:%S') lastFollowTime ,b.task_names taskNames ,
|
|
|
- b.`member` ,b.chargeback ,b.big_customer bigCustomer,b.follow_aname followAname
|
|
|
+ date_format(b.first_signing_time ,'%Y-%m-%d') firstSigningTime,
|
|
|
+ date_format(b.last_signing_time ,'%Y-%m-%d') lastSigningTime ,
|
|
|
+ b.last_sales_type lastSalesType,c.name,d.name depName,
|
|
|
+ b.last_follow_type lastFollowType,b.follow_explain followExplain ,b.follow_number followNumber ,
|
|
|
+ date_format(b.last_follow_time ,'%Y-%m-%d %H:%i:%S') lastFollowTime ,b.task_names taskNames ,
|
|
|
+ b.`member` ,b.chargeback ,b.big_customer bigCustomer,b.follow_aname followAname
|
|
|
from user a left join user_mid b on a.id=b.uid left join admin c on a.aid=c.id
|
|
|
+ left join department d on c.department_id =d.id
|
|
|
where 1=1
|
|
|
<if test="userName != null">
|
|
|
and a.nickname like concat('%',#{userName},'%')
|