|
@@ -124,6 +124,10 @@
|
|
|
<if test="remarks != null and remarks !=''">
|
|
|
AND ccr.remarks LIKE concat('%',#{remarks},'%')
|
|
|
</if>
|
|
|
+ <if test="clubName !=null and clubName !=''">
|
|
|
+ AND ccr.clubId is not null
|
|
|
+ AND c.Name like concat('%',#{clubName},'%')
|
|
|
+ </if>
|
|
|
<if test="leaderId != null">
|
|
|
and csr.leaderId = #{leaderId}
|
|
|
</if>
|
|
@@ -392,6 +396,18 @@
|
|
|
and ccr.clubId = #{clubId}
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="remarks != null and remarks !=''">
|
|
|
+ AND ccr.remarks LIKE concat('%',#{remarks},'%')
|
|
|
+ </if>
|
|
|
+ <if test="consult != null">
|
|
|
+ and ccr.consultType like concat('%',#{consult},'%')
|
|
|
+ </if>
|
|
|
+ <if test="startAddTime != '' and startAddTime != null">
|
|
|
+ and ccr.addTime <![CDATA[ > ]]> #{startAddTime}
|
|
|
+ </if>
|
|
|
+ <if test="endAddTime != '' and endAddTime != null">
|
|
|
+ and ccr.addTime <![CDATA[ < ]]> #{endAddTime}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
|
|
|
union
|
|
@@ -400,8 +416,9 @@
|
|
|
ccr.id AS remarksId, ccr.remarks, s.name AS spName, ccr.addTime, ccr.questionMan,
|
|
|
csr.leaderId AS leaderId, IFNULL(ccr.consultType,'') AS consult, c.Name AS clubName,
|
|
|
ccr.clubType, ccr.pinceSensitve, ccr.satisfied, ccr.followup, ccr.extra,
|
|
|
- '' as communicationSituation, '' as communicationMethods, '' as customerSource, '' as customerGender, '' as groupAddition,
|
|
|
- '' as customerAge, '' as trendsKeyword, '' as stateKeyword, c.newDeal, c.contractMobile, '2' as type,
|
|
|
+ ccr.communicationSituation AS communicationSituation, ccr.communicationMethods AS communicationMethods, ccr.customerSource AS customerSource,
|
|
|
+ ccr.customerGender AS customerGender, ccr.groupAddition AS groupAddition, ccr.customerAge AS customerAge,
|
|
|
+ ccr.trendsKeyword AS trendsKeyword, ccr.stateKeyword AS stateKeyword, c.newDeal, c.contractMobile, '2' as type,
|
|
|
(SELECT linkMan FROM serviceprovider s WHERE s.serviceProviderID = ccr.serviceProviderId) AS serviceName,
|
|
|
(SELECT NAME FROM serviceprovider s WHERE s.serviceProviderID = csr.leaderId) AS leaderName,
|
|
|
(SELECT mainImage FROM product p WHERE p.productID= ccre.productID) AS productMainImage,
|
|
@@ -423,6 +440,18 @@
|
|
|
<if test="clubId != null">
|
|
|
and ccr.clubId = #{clubId}
|
|
|
</if>
|
|
|
+ <if test="remarks != null and remarks !=''">
|
|
|
+ AND ccr.remarks LIKE concat('%',#{remarks},'%')
|
|
|
+ </if>
|
|
|
+ <if test="consult != null">
|
|
|
+ and ccr.consultType like concat('%',#{consult},'%')
|
|
|
+ </if>
|
|
|
+ <if test="startAddTime != '' and startAddTime != null">
|
|
|
+ and ccr.addTime <![CDATA[ > ]]> #{startAddTime}
|
|
|
+ </if>
|
|
|
+ <if test="endAddTime != '' and endAddTime != null">
|
|
|
+ and ccr.addTime <![CDATA[ < ]]> #{endAddTime}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
ORDER BY ADDTIME DESC
|
|
|
</select>
|
|
@@ -433,6 +462,7 @@
|
|
|
where remarksId = #{remarksId}
|
|
|
and fileType = 1
|
|
|
</select>
|
|
|
+
|
|
|
<select id="getVisitorFileList" resultType="com.caimei365.manager.entity.caimei.cmUser.RemarksFileVo">
|
|
|
select fileName, ossName
|
|
|
from cm_visitor_remarks_file
|