|
@@ -750,6 +750,7 @@
|
|
c.clubId,
|
|
c.clubId,
|
|
GROUP_CONCAT(b.pageLabel) as pageLabels,
|
|
GROUP_CONCAT(b.pageLabel) as pageLabels,
|
|
GROUP_CONCAT(cpt.pageType) as pageTypes,
|
|
GROUP_CONCAT(cpt.pageType) as pageTypes,
|
|
|
|
+ MIN(b.accessTime) AS accessTime,
|
|
b.delFlag
|
|
b.delFlag
|
|
FROM cm_behavior_record b
|
|
FROM cm_behavior_record b
|
|
LEFT JOIN cm_page_type cpt ON b.pageType = cpt.id
|
|
LEFT JOIN cm_page_type cpt ON b.pageType = cpt.id
|
|
@@ -795,7 +796,7 @@
|
|
|
|
|
|
<select id="getClubRemarks" resultType="com.caimei365.tools.model.po.ClubRemarksPo">
|
|
<select id="getClubRemarks" resultType="com.caimei365.tools.model.po.ClubRemarksPo">
|
|
SELECT DISTINCT
|
|
SELECT DISTINCT
|
|
- ccr.id AS remarksId, ccr.remarks, ccr.addTime, ccr.questionMan,
|
|
|
|
|
|
+ ccr.id AS remarksId, ccr.remarks, MIN(ccr.addTime) AS addTime, ccr.questionMan,
|
|
IFNULL(ccr.consultType,'') AS consult,
|
|
IFNULL(ccr.consultType,'') AS consult,
|
|
ccr.clubType, ccr.pinceSensitve, ccr.satisfied, ccr.followup, ccr.extra,
|
|
ccr.clubType, ccr.pinceSensitve, ccr.satisfied, ccr.followup, ccr.extra,
|
|
ccr.communicationSituation, ccr.communicationMethods, ccr.customerSource, ccr.customerGender, ccr.groupAddition,
|
|
ccr.communicationSituation, ccr.communicationMethods, ccr.customerSource, ccr.customerGender, ccr.groupAddition,
|
|
@@ -806,7 +807,7 @@
|
|
UNION
|
|
UNION
|
|
|
|
|
|
SELECT DISTINCT
|
|
SELECT DISTINCT
|
|
- ccr.id AS remarksId, ccr.remarks, ccr.addTime, ccr.questionMan,
|
|
|
|
|
|
+ ccr.id AS remarksId, ccr.remarks, MIN(ccr.addTime) AS addTime, ccr.questionMan,
|
|
IFNULL(ccr.consultType,'') AS consult,
|
|
IFNULL(ccr.consultType,'') AS consult,
|
|
ccr.clubType, ccr.pinceSensitve, ccr.satisfied, ccr.followup, ccr.extra,
|
|
ccr.clubType, ccr.pinceSensitve, ccr.satisfied, ccr.followup, ccr.extra,
|
|
ccr.communicationSituation AS communicationSituation, ccr.communicationMethods AS communicationMethods, ccr.customerSource AS customerSource,
|
|
ccr.communicationSituation AS communicationSituation, ccr.communicationMethods AS communicationMethods, ccr.customerSource AS customerSource,
|