Explorar el Código

用户行为记录

huangzhiguo hace 2 años
padre
commit
420b565ec5

+ 13 - 1
src/main/java/com/caimei/modules/cmpage/entity/CmPage.java

@@ -47,6 +47,10 @@ public class CmPage extends DataEntity<CmPage> {
     private String enabledStatus;        // 状态 0停用 1启用
     private String crmHeadImage;//crm端首层大图
     private String headLink;//首层大图链接
+
+    // 内容标签
+    private String contentLabel;
+
     private String backgroundType;  //填充背景类型默认不显示 :1使用颜色,2使用背景图
     private String backgroundColour;  //背景颜色,示例#3333b9
     private String backgroundImage;   //背景图
@@ -91,6 +95,14 @@ public class CmPage extends DataEntity<CmPage> {
         this.buttonLink = buttonLink;
     }
 
+    public String getContentLabel() {
+        return contentLabel;
+    }
+
+    public void setContentLabel(String contentLabel) {
+        this.contentLabel = contentLabel;
+    }
+
     public String getBackgroundType() {
         return backgroundType;
     }
@@ -358,4 +370,4 @@ public class CmPage extends DataEntity<CmPage> {
     public void setInfoBarStatus(Integer infoBarStatus) {
         this.infoBarStatus = infoBarStatus;
     }
-}
+}

+ 45 - 16
src/main/java/com/caimei/modules/user/entity/CmBehaviorRecord.java

@@ -31,11 +31,15 @@ public class CmBehaviorRecord extends DataEntity<CmBehaviorRecord> {
     private String accessDate;  //访问日期
 
     private Integer numbers;    //访问页面总数
-
-    private String name; // 公司名称
     private String userIdentity; //公司类型
-    private String linkMan; //联系人
-    private String contractPhone;  //联系手机
+
+    private String name; // 机构公司名称
+    private String linkMan; //机构联系人
+    private String contractMobile;  //联系手机
+
+    private String sname; // 供应商公司名称
+    private String slinkMan; //供应商联系人
+    private String scontractMobile;  //联系手机
     private String spName;  // 协销名称
     private String startTime; //开始时间
     private String endTime; //结束时间
@@ -44,6 +48,7 @@ public class CmBehaviorRecord extends DataEntity<CmBehaviorRecord> {
 
     private String pageTypes;   //页面类型下拉
 
+
     public Integer getRecordID() {
         return recordID;
     }
@@ -148,14 +153,6 @@ public class CmBehaviorRecord extends DataEntity<CmBehaviorRecord> {
         this.numbers = numbers;
     }
 
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-
     public String getUserIdentity() {
         return userIdentity;
     }
@@ -164,6 +161,14 @@ public class CmBehaviorRecord extends DataEntity<CmBehaviorRecord> {
         this.userIdentity = userIdentity;
     }
 
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
     public String getLinkMan() {
         return linkMan;
     }
@@ -172,12 +177,36 @@ public class CmBehaviorRecord extends DataEntity<CmBehaviorRecord> {
         this.linkMan = linkMan;
     }
 
-    public String getContractPhone() {
-        return contractPhone;
+    public String getContractMobile() {
+        return contractMobile;
+    }
+
+    public void setContractMobile(String contractMobile) {
+        this.contractMobile = contractMobile;
+    }
+
+    public String getSname() {
+        return sname;
+    }
+
+    public void setSname(String sname) {
+        this.sname = sname;
+    }
+
+    public String getSlinkMan() {
+        return slinkMan;
+    }
+
+    public void setSlinkMan(String slinkMan) {
+        this.slinkMan = slinkMan;
+    }
+
+    public String getScontractMobile() {
+        return scontractMobile;
     }
 
-    public void setContractPhone(String contractPhone) {
-        this.contractPhone = contractPhone;
+    public void setScontractMobile(String scontractMobile) {
+        this.scontractMobile = scontractMobile;
     }
 
     public String getSpName() {

+ 12 - 5
src/main/java/com/caimei/modules/user/service/CmBehaviorRecordService.java

@@ -8,6 +8,7 @@ import com.thinkgem.jeesite.common.service.CrudService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
+import java.text.ParseException;
 import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.List;
@@ -61,8 +62,6 @@ public class CmBehaviorRecordService extends CrudService<CmBehaviorRecordDao, Cm
         int mm = 0;
         //秒
         int ss = 0;
-        // 毫秒
-        int millisecond = num % 1000;
         int item = num / 1000;
         if ((item / 60) >0) {
             mm = item / 60;
@@ -72,10 +71,18 @@ public class CmBehaviorRecordService extends CrudService<CmBehaviorRecordDao, Cm
         }
         if ((mm / 60) >0) {
             HH = mm / 60;
-            mm = HH % 60;
+            mm = mm % 60;
         }
-        String  str= HH+":"+mm+":"+ss+":"+millisecond;
-        return str;
+        String  str= HH+":"+mm+":"+ss;
+        SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");
+        Date parse = null;
+        try {
+            parse = dateFormat.parse(str);
+        } catch (ParseException e) {
+            e.printStackTrace();
+        }
+        String format = dateFormat.format(parse);
+        return format;
     }
 
 }

+ 6 - 2
src/main/resources/mappings/modules/cmpage/CmPageMapper.xml

@@ -26,6 +26,7 @@
 		a.createDate AS "createDate",
 		a.updateBy AS "updateBy.id",
 		a.updateDate AS "updateDate",
+		a.contentLabel as "contentLabel",
 		a.backgroundType AS "backgroundType",
 		a.backgroundColour AS "backgroundColour",
 		a.backgroundImage AS "backgroundImage",
@@ -123,6 +124,7 @@
 			createDate,
 			updateBy,
 			updateDate,
+			contentLabel,
 			backgroundType,
 			backgroundColour,
 			backgroundImage,
@@ -153,6 +155,7 @@
 			#{createDate},
 			#{updateBy.id},
 			#{updateDate},
+		    #{contentLabel},
 			#{backgroundType},
 			#{backgroundColour},
 			#{backgroundImage},
@@ -164,7 +167,7 @@
 	</insert>
 
     <update id="update">
-		UPDATE cm_page SET 	
+		UPDATE cm_page SET
 			title = #{title},
 			typeSort = #{typeSort},
 			keywords = #{keywords},
@@ -186,6 +189,7 @@
 			createDate = #{createDate},
 			updateBy = #{updateBy.id},
 			updateDate = #{updateDate},
+			contentLabel = #{contentLabel},
 			backgroundType = #{backgroundType},
 			backgroundColour = #{backgroundColour},
 			backgroundImage = #{backgroundImage},
@@ -232,4 +236,4 @@
 	<select id="findHotSearch" resultType="com.caimei.modules.cmpage.entity.CmPageHotSearch">
 		SELECT * FROM cm_page_hot_search WHERE pageId = #{pageId}
 	</select>
-</mapper>
+</mapper>

+ 30 - 13
src/main/resources/mappings/modules/user/CmBehaviorRecordMapper.xml

@@ -17,27 +17,39 @@
           <include refid="behaviorRecord"/>
           ,SUM(b.accessDuration) AS accessDuration,
           u.userIdentity,
-          u.name,
+          c.name,
           c.linkMan,
-          c.contractPhone,
-          sp.name as spName,
+          c.contractMobile,
+          s.name AS sname,
+          s.linkMan AS slinkMan,
+          s.contractMobile AS scontractMobile,
+          (SELECT CASE STATUS WHEN 91 THEN '采美默认协销经理(官方账号)' ELSE linkMan END FROM serviceprovider WHERE serviceProviderID = c.spID) AS spName,
           COUNT(IP) as numbers
         FROM cm_behavior_record b
         LEFT JOIN USER u ON b.userID = u.userID
         LEFT JOIN club c ON b.userID = c.userID
+        LEFT JOIN shop s ON b.userID = s.userID
         LEFT JOIN serviceprovider sp on c.spID = sp.serviceProviderID
         <where>
             <if test="name != null and name != ''">
                 u.name = #{name}
             </if>
             <if test="userIdentity != null and userIdentity != ''">
-                u.userIdentity = #{userIdentity}
+                <if test="userIdentity == 2">
+                    AND u.userIdentity in (2, 4)
+                </if>
+                <if test="userIdentity == 3">
+                    AND u.userIdentity = 3
+                </if>
+                <if test="userIdentity == 1">
+                    AND  b.userID = 0
+                </if>
             </if>
             <if test="linkMan != null and linkMan != ''">
-                AND c.linkMan = #{linkMan}
+                AND (c.linkMan = #{linkMan} or s.linkMan = #{linkMan})
             </if>
-            <if test="contractPhone != null and contractPhone != ''">
-                AND c.contractPhone = #{contractPhone}
+            <if test="contractMobile != null and contractMobile != ''">
+                AND (c.contractMobile = #{contractMobile} or s.contractMobile = #{contractMobile})
             </if>
             <if test="spName != null and spName != ''">
                 AND sp.name = #{spName}
@@ -46,7 +58,7 @@
                 AND b.accessDate between #{startTime} and #{endTime}
             </if>
         </where>
-        GROUP BY b.IP, b.accessDate ORDER BY b.accessTime
+        GROUP BY b.IP, b.accessDate,b.userID ORDER BY b.accessTime DESC
     </select>
 
     <select id="recordList" resultType="com.caimei.modules.user.entity.CmBehaviorRecord">
@@ -54,8 +66,12 @@
         <include refid="behaviorRecord"/>
            ,b.accessDuration,
            u.userIdentity,
-           c.name,c.linkMan,
+           c.name,
+           c.linkMan,
            c.contractMobile,
+           s.name AS sname,
+           s.linkMan AS slinkMan,
+           s.contractMobile AS sncontractMobile,
            c.spID,
            p.name AS productName,
            p.mainImage AS productImage,
@@ -63,12 +79,13 @@
         FROM cm_behavior_record b
         LEFT JOIN USER u ON b.userID = u.userID
         LEFT JOIN club c ON b.userID = c.userID
+        LEFT JOIN shop s ON b.userID = s.userID
         LEFT JOIN product p ON b.productID = p.productID
         LEFT JOIN cm_page_type pt ON b.pageType = pt.id
         <where>
-            b.IP = #{IP} AND b.accessDate = #{accessDate}
-            <if test="pageTypes != null and pageTypes != ''">
-                AND pt.pageType = #{pageTypes}
+            b.IP = #{IP} AND b.accessDate = #{accessDate} AND b.userID = #{userID}
+            <if test="pageType != null and pageType != ''">
+                AND b.pageType = #{pageType}
             </if>
             <if test="productID != null and productID != ''">
                 AND p.productID = #{productID}
@@ -77,7 +94,7 @@
                 AND p.name like concat('%',#{productName},'%')
             </if>
         </where>
-        ORDER BY accessTime
+        ORDER BY accessTime DESC
     </select>
     <select id="pageType" resultType="com.caimei.modules.user.entity.CmPageType">
         SELECT id as idPage,pageType FROM cm_page_type

+ 8 - 1
src/main/webapp/WEB-INF/views/modules/cmpage/cmLecturerPageForm.jsp

@@ -87,6 +87,13 @@
 			<shiro:hasPermission name="cmpage:cmPage:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
 			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
 		</div>
+		<div class="control-group">
+			<label class="control-label"><font color="red">*</font>内容标签:</label>
+			<div class="controls">
+				<form:input path="contentLabel" htmlEscape="false" maxlength="20" class="input-small required"/>
+				<span style="color: red">(请总结本页面的宣传内容,以简短标签关键词的形式填入,多个标签用中文逗号隔开)</span>
+			</div>
+		</div>
 	</form:form>
 </body>
-</html>
+</html>

+ 8 - 1
src/main/webapp/WEB-INF/views/modules/cmpage/cmPageActivityForm.jsp

@@ -98,6 +98,13 @@
             <form:input path="headLink" htmlEscape="false" maxlength="255" placeholder="输入URL地址" class="input-xlarge url"/>
         </div>
     </div>
+    <div class="control-group">
+        <label class="control-label"><font color="red">*</font>内容标签:</label>
+        <div class="controls">
+            <form:input path="contentLabel" htmlEscape="false" maxlength="20" class="input-small required"/>
+            <span style="color: red">(请总结本页面的宣传内容,以简短标签关键词的形式填入,多个标签用中文逗号隔开)</span>
+        </div>
+    </div>
     <div class="control-group">
         <label class="control-label">填充背景:</label>
         <div class="controls">
@@ -141,4 +148,4 @@
     </div>
 </form:form>
 </body>
-</html>
+</html>

+ 8 - 1
src/main/webapp/WEB-INF/views/modules/cmpage/cmPageBeautyForm.jsp

@@ -112,6 +112,13 @@
                    onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
         </div>
     </div>
+    <div class="control-group">
+        <label class="control-label"><font color="red">*</font>内容标签:</label>
+        <div class="controls">
+            <form:input path="contentLabel" htmlEscape="false" maxlength="20" class="input-small required"/>
+            <span style="color: red">(请总结本页面的宣传内容,以简短标签关键词的形式填入,多个标签用中文逗号隔开)</span>
+        </div>
+    </div>
     <div class="control-group">
         <label class="control-label">咨询浮窗:</label>
         <div class="controls">
@@ -135,4 +142,4 @@
     </div>
 </form:form>
 </body>
-</html>
+</html>

+ 8 - 1
src/main/webapp/WEB-INF/views/modules/cmpage/cmPageDetailsForm.jsp

@@ -95,6 +95,13 @@
             </form:select>
         </div>
     </div>
+    <div class="control-group">
+        <label class="control-label"><font color="red">*</font>内容标签:</label>
+        <div class="controls">
+            <form:input path="contentLabel" htmlEscape="false" maxlength="20" class="input-small required"/>
+            <span style="color: red">(请总结本页面的宣传内容,以简短标签关键词的形式填入,多个标签用中文逗号隔开)</span>
+        </div>
+    </div>
     <div class="control-group">
         <label class="control-label">填充背景:</label>
         <div class="controls">
@@ -362,4 +369,4 @@
 
 </script>
 </body>
-</html>
+</html>

+ 8 - 1
src/main/webapp/WEB-INF/views/modules/cmpage/cmPageFreedomForm.jsp

@@ -143,6 +143,13 @@
             </tr>
         </table>
     </div>
+    <div class="control-group">
+        <label class="control-label"><font color="red">*</font>内容标签:</label>
+        <div class="controls">
+            <form:input path="contentLabel" htmlEscape="false" maxlength="20" class="input-small required"/>
+            <span style="color: red">(请总结本页面的宣传内容,以简短标签关键词的形式填入,多个标签用中文逗号隔开)</span>
+        </div>
+    </div>
     <div class="control-group">
         <label class="control-label">填充背景:</label>
         <div class="controls">
@@ -187,4 +194,4 @@
 
 </form:form>
 </body>
-</html>
+</html>

+ 8 - 1
src/main/webapp/WEB-INF/views/modules/cmpage/cmPageProjectDetailForm.jsp

@@ -307,6 +307,13 @@
             <label style="color:#D0D0D0 ;">尺寸:700 * 300 / PX</label>
         </div>
     </div>
+    <div class="control-group">
+        <label class="control-label"><font color="red">*</font>内容标签:</label>
+        <div class="controls">
+            <form:input path="contentLabel" htmlEscape="false" maxlength="20" class="input-small required"/>
+            <span style="color: red">(请总结本页面的宣传内容,以简短标签关键词的形式填入,多个标签用中文逗号隔开)</span>
+        </div>
+    </div>
     <div class="control-group">
         <label class="control-label">填充背景:</label>
         <div class="controls">
@@ -350,4 +357,4 @@
 </div>
 </form:form>
 </body>
-</html>
+</html>

+ 8 - 1
src/main/webapp/WEB-INF/views/modules/cmpage/cmPageSecondaryForm.jsp

@@ -158,6 +158,13 @@
             <label style="color:#D0D0D0 ;">尺寸:700 * 300 / PX</label>
         </div>
     </div>
+    <div class="control-group">
+        <label class="control-label"><font color="red">*</font>内容标签:</label>
+        <div class="controls">
+            <form:input path="contentLabel" htmlEscape="false" maxlength="20" class="input-small required"/>
+            <span style="color: red">(请总结本页面的宣传内容,以简短标签关键词的形式填入,多个标签用中文逗号隔开)</span>
+        </div>
+    </div>
     <div class="control-group">
         <label class="control-label">填充背景:</label>
         <div class="controls">
@@ -201,4 +208,4 @@
     </div>
 </form:form>
 </body>
-</html>
+</html>

+ 12 - 5
src/main/webapp/WEB-INF/views/modules/user/behaviorRecordDetailsList.jsp

@@ -23,10 +23,10 @@
 </head>
 <body>
 <ul class="nav nav-tabs">
-    <li class="active"><a href="${ctx}/user/behavior/record/list">用户行为记录</a></li>
-    <li class="active"><a href="${ctx}/user/behavior/record/recordList?IP=${cmBehaviorRecord.IP}&accessDate=${cmBehaviorRecord.accessDate}">查看详情</a></li>
+    <li><a href="${ctx}/user/behavior/record/list">用户行为记录</a></li>
+    <li class="active"><a href="${ctx}/user/behavior/record/recordList?IP=${cmBehaviorRecord.IP}&accessDate=${cmBehaviorRecord.accessDate}&userID=${cmBehaviorRecord.userID}">查看详情</a></li>
 </ul>
-<form:form id="searchForm" modelAttribute="cmBehaviorRecord" action="${ctx}/user/behavior/record/recordList?IP=${cmBehaviorRecord.IP}&accessDate=${cmBehaviorRecord.accessDate}" method="post" class="breadcrumb form-search">
+<form:form id="searchForm" modelAttribute="cmBehaviorRecord" action="${ctx}/user/behavior/record/recordList?IP=${cmBehaviorRecord.IP}&accessDate=${cmBehaviorRecord.accessDate}&userID=${cmBehaviorRecord.userID}" method="post" class="breadcrumb form-search">
     <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
     <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
     <div class="ul-form">
@@ -66,7 +66,14 @@
     <tbody>
     <C:forEach items="${page.list}" var="cmBehaviorRecord" varStatus="index">
         <tr>
-            <td><a href="${cmBehaviorRecord.pagePath}">${cmBehaviorRecord.pagePath}</a></td>
+            <td>
+                <c:if test="${!fn:contains(cmBehaviorRecord.pagePath,'http')}">
+                    <a>${cmBehaviorRecord.pagePath}</a>
+                </c:if>
+                <c:if test="${fn:contains(cmBehaviorRecord.pagePath,'http')}">
+                    <a href="${cmBehaviorRecord.pagePath}" target="_blank">${cmBehaviorRecord.pagePath}</a>
+                </c:if>
+            </td>
             <td>${cmBehaviorRecord.pageTypes}</td>
             <td>${cmBehaviorRecord.pageLabel}</td>
             <c:if test="${cmBehaviorRecord.productID == '0'}">
@@ -86,7 +93,6 @@
     </tbody>
 </table>
 <div class="pagination">${page}</div>
-</body>
 <script type="text/javascript">
     function page(n,s){
         $("#pageNo").val(n);
@@ -95,4 +101,5 @@
         return false;
     }
 </script>
+</body>
 </html>

+ 75 - 24
src/main/webapp/WEB-INF/views/modules/user/behaviorRecordList.jsp

@@ -21,6 +21,12 @@
         .table td{
             text-align: center;
         }
+        .ul-form input,select{
+            margin-left: 10px;
+        }
+        .ys-kin input,span{
+            margin-left: 10px;
+        }
     </style>
 </head>
 <body>
@@ -32,27 +38,30 @@
     <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
     <div class="ul-form">
         <label>公司名称:</label>
-        <form:input path="name" htmlEscape="false" maxlength="11" class="input-mini"/>
+            <form:input path="name" htmlEscape="false" maxlength="11" class="input-mini"/>
         <label>公司类型:</label>
-        <form:select path="userIdentity" class="input-medium required">
-            <form:option value="" label="请选择"/>
-            <form:option value="2" label="机构"/>
-            <form:option value="3" label="供应商"/>
-        </form:select>
+            <form:select path="userIdentity" class="input-medium required">
+                <form:option value="" label="请选择"/>
+                <form:option value="2" label="机构"/>
+                <form:option value="3" label="供应商"/>
+                <form:option value="1" label="游客"/>
+            </form:select>
         <label>联系人:</label>
             <form:input path="linkMan" htmlEscape="false" maxlength="20" class="input-small"/>
         <label>手机号码:</label>
-        <form:input path="contractPhone" htmlEscape="false" maxlength="20" class="input-small"/>
+            <form:input path="contractMobile" htmlEscape="false" maxlength="20" class="input-small"/>
         <label>协销:</label>
-        <form:input path="spName" htmlEscape="false" maxlength="20" class="input-small"/>
-        <label>访问日期:</label>
-        <input name="startTime" type="text" readonly="readonly" maxlength="15" class="input-mini Wdate"
-               value="${cmBehaviorRecord.startTime}"
-               onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/> -
-        <input name="endTime" type="text" readonly="readonly" maxlength="15" class="input-mini Wdate"
-               value="${cmBehaviorRecord.endTime}"
-               onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
-        &nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
+            <form:input path="spName" htmlEscape="false" maxlength="20" class="input-small"/>
+        <div class="ys-kin" style="margin-top: 20px">
+            <label>访问日期:</label>
+            <input name="startTime" type="text" readonly="readonly" maxlength="15" class="input-mini Wdate"
+                   value="${cmBehaviorRecord.startTime}"
+                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/> <span> > </span>
+            <input name="endTime" type="text" readonly="readonly" maxlength="15" class="input-mini Wdate"
+                   value="${cmBehaviorRecord.endTime}"
+                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
+            <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
+        </div>
         <div class="clearfix"></div>
     </div>
 </form:form>
@@ -77,32 +86,72 @@
         <tr>
            <td>${cmBehaviorRecord.IP}</td>
            <td>
-               <c:if test="${cmBehaviorRecord.userIdentity eq 2}">
+               <c:if test="${cmBehaviorRecord.userIdentity eq 2 || cmBehaviorRecord.userIdentity eq 4}">
                    机构
                </c:if>
                <c:if test="${cmBehaviorRecord.userIdentity eq 3}">
                    供应商
                </c:if>
-               <c:if test="${cmBehaviorRecord.userIdentity ne 2 && cmBehaviorRecord.userIdentity ne 3}">
+               <c:if test="${cmBehaviorRecord.userID == '0'}">
+                   游客
+               </c:if>
+               <c:if test="${cmBehaviorRecord.userID != '0' && (cmBehaviorRecord.userIdentity == null || cmBehaviorRecord.userIdentity == '')}">
                    ---
                </c:if>
            </td>
-           <td>${cmBehaviorRecord.name}</td>
-           <td>${cmBehaviorRecord.linkMan}</td>
-           <td>${cmBehaviorRecord.contractPhone}</td>
-           <td>${cmBehaviorRecord.spName}</td>
+            <c:if test="${cmBehaviorRecord.userID == '0'}">
+                <td>---</td>
+                <td>---</td>
+                <td>---</td>
+                <td>---</td>
+            </c:if>
+            <c:if test="${cmBehaviorRecord.userID != '0'}">
+               <td>
+                <c:if test="${cmBehaviorRecord.userIdentity eq 2}">
+                    ${cmBehaviorRecord.name}
+                </c:if>
+                <c:if test="${cmBehaviorRecord.userIdentity eq 4}">
+                    ${cmBehaviorRecord.linkMan}
+                </c:if>
+                <c:if test="${cmBehaviorRecord.userIdentity eq 3}">
+                    ${cmBehaviorRecord.sname}
+                </c:if>
+               </td>
+               <td>
+                   <c:if test="${cmBehaviorRecord.userIdentity eq 2 || cmBehaviorRecord.userIdentity eq 4}">
+                       ${cmBehaviorRecord.linkMan}
+                   </c:if>
+                   <c:if test="${cmBehaviorRecord.userIdentity eq 3}">
+                       ${cmBehaviorRecord.slinkMan}
+                   </c:if>
+               </td>
+               <td>
+                   <c:if test="${cmBehaviorRecord.userIdentity eq 2 || cmBehaviorRecord.userIdentity eq 4}">
+                       ${cmBehaviorRecord.contractMobile}
+                   </c:if>
+                   <c:if test="${cmBehaviorRecord.userIdentity eq 3}">
+                       ${cmBehaviorRecord.scontractMobile}
+                   </c:if>
+               </td>
+               <td>
+                   <c:if test="${cmBehaviorRecord.spName ne null}">
+                       ${cmBehaviorRecord.spName}
+                   </c:if>
+                   <c:if test="${cmBehaviorRecord.spName eq null}">
+                       ---
+                   </c:if></td>
+            </c:if>
            <td>${cmBehaviorRecord.numbers}</td>
            <td>${cmBehaviorRecord.accessDuration}</td>
            <td>${cmBehaviorRecord.accessDate}</td>
            <td>
-               <a href="${ctx}/user/behavior/record/recordList?IP=${cmBehaviorRecord.IP}&accessDate=${cmBehaviorRecord.accessDate}">查看详情</a>
+               <a href="${ctx}/user/behavior/record/recordList?IP=${cmBehaviorRecord.IP}&accessDate=${cmBehaviorRecord.accessDate}&userID=${cmBehaviorRecord.userID}">查看详情</a>
            </td>
         </tr>
     </c:forEach>
     </tbody>
 </table>
 <div class="pagination">${page}</div>
-</body>
 <% request.setAttribute("caimeiCore", Global.getConfig("caimei.core"));%>
 <script type="text/javascript">
     function page(n,s){
@@ -112,4 +161,6 @@
         return false;
     }
 </script>
+</body>
+
 </html>