huangzhiguo 1 rok temu
rodzic
commit
e3a1ab1fda

+ 2 - 2
src/main/resources/mappings/modules/user/CmPortraitMapper.xml

@@ -27,10 +27,10 @@
         SELECT cbr.pageLabel FROM cm_behavior_record cbr LEFT JOIN club c ON c.userID = cbr.userId
         WHERE pageType IN (6, 8, 9, 11, 14) AND c.clubId = #{clubId}
         <if test="startTime != null and startTime != ''">
-            and cbr.accessTime > #{startTime}
+            and cbr.accessDate > #{startTime}
         </if>
         <if test="endTime != null and endTime != ''">
-            and cbr.accessTime <![CDATA[ < ]]> #{endTime}
+            and cbr.accessDate <![CDATA[ <= ]]> #{endTime}
         </if>
         GROUP BY cbr.pageLabel ORDER BY COUNT(cbr.pageLabel) DESC
     </select>

+ 8 - 4
src/main/webapp/static/modules/cmClubPortrait/cmClubEacths.js

@@ -46,11 +46,11 @@ const getInfoDemandDate = function () {
             }
         },
         setValue: function (s, s1, s2) {
-            defaultParams.startTime = s1;
-            defaultParams.endTime = s2;
+            defaultDemand.startTime = s1;
+            defaultDemand.endTime = s2;
             $('#demandStart').val(s1);
             $('#demandEnd').val(s2);
-            if (defaultParams.startTime && defaultParams.endTime) {
+            if (defaultDemand.startTime && defaultDemand.endTime) {
                 $('#customerDemand').find('a').removeClass('active');
                 getDemandData(0)
             }
@@ -173,10 +173,14 @@ const getInfoVisitDate = function () {
         }
     });
 }
-const getDemandData = function (dateType) {
+const getDemandData = function (dateType,type) {
     console.log('客户客户');
     console.log('url', $('#demandUrl').val(),);
     defaultDemand.dateType = dateType;
+    if(type==='tabs'){
+        defaultDemand.startTime = '';
+        defaultDemand.endTime = '';
+    }
     $.ajax({
         url: $('#demandUrl').val(),
         type: "GET",

+ 1 - 1
src/main/webapp/static/modules/cmClubPortrait/cmClubPortrait.js

@@ -25,7 +25,7 @@ $(function(){
             //alert(index);
             $(this).addClass('active').siblings('a').removeClass('active');
             let dateType = $(this).attr('data-type');
-            getDemandData(dateType)
+            getDemandData(dateType,'tabs')
         });
     });
     // 点击筛选机构订单数据