From 703b2f19af6b1d65adc3bc515b9df9efebacbd8b Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期一, 10 四月 2023 13:04:25 +0800
Subject: [PATCH] optimize owner updata log
---
java110-db/src/main/resources/mapper/common/MarketLogV1ServiceDaoImplMapper.xml | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/common/MarketLogV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/common/MarketLogV1ServiceDaoImplMapper.xml
index 99f5584..c73b22a 100644
--- a/java110-db/src/main/resources/mapper/common/MarketLogV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/common/MarketLogV1ServiceDaoImplMapper.xml
@@ -20,11 +20,24 @@
select t.person_name,t.person_name personName,t.send_content,t.send_content sendContent,t.send_way,t.send_way
sendWay,t.open_id,t.open_id openId,t.log_id,t.log_id logId,t.community_name,t.community_name
communityName,t.status_cd,t.status_cd statusCd,t.remark,t.rule_id,t.rule_id ruleId,t.community_id,t.community_id
- communityId,t.person_tel,t.person_tel personTel,t.business_type,t.business_type businessType
+ communityId,t.person_tel,t.person_tel personTel,t.business_type,t.business_type businessType,mr.`name` ruleName,
+ td.`name` sendWayName,td1.name businessTypeName,t.create_time createTime
from market_log t
+ left join market_rule mr on t.rule_id = mr.rule_id and mr.status_cd = '0'
+ LEFT JOIN t_dict td on td.status_cd = t.send_way and td.table_name = 'market_log' and td.table_columns = 'send_way'
+ LEFT JOIN t_dict td1 on td1.status_cd = t.business_type and td1.table_name = 'market_log' and td1.table_columns = 'business_type'
where 1 =1
<if test="personName !=null and personName != ''">
and t.person_name= #{personName}
+ </if>
+ <if test="personNameLike !=null and personNameLike != ''">
+ and t.person_name concat('%', #{personName},'%')
+ </if>
+ <if test="startTime !=null and startTime != ''">
+ and t.create_time > #{startTime}
+ </if>
+ <if test="endTime !=null and endTime != ''">
+ and t.create_time < #{endTime}
</if>
<if test="sendContent !=null and sendContent != ''">
and t.send_content= #{sendContent}
@@ -118,6 +131,15 @@
<if test="personName !=null and personName != ''">
and t.person_name= #{personName}
</if>
+ <if test="personNameLike !=null and personNameLike != ''">
+ and t.person_name concat('%', #{personName},'%')
+ </if>
+ <if test="startTime !=null and startTime != ''">
+ and t.create_time > #{startTime}
+ </if>
+ <if test="endTime !=null and endTime != ''">
+ and t.create_time < #{endTime}
+ </if>
<if test="sendContent !=null and sendContent != ''">
and t.send_content= #{sendContent}
</if>
--
Gitblit v1.8.0