Przeglądaj źródła

用户行为显示更改

huangzhiguo 2 lat temu
rodzic
commit
2449de21bb

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

@@ -30,7 +30,7 @@ public class CmBehaviorRecord extends DataEntity<CmBehaviorRecord> {
     private String name; // 公司名称
     private String companyType; //公司类型
     private String linkMan; //联系人
-    private String contractMobile;  //联系手机
+    private String contractPhone;  //联系手机
     private String spName;  // 协销名称
     private String startTime; //开始时间
     private String endTime; //结束时间
@@ -165,12 +165,12 @@ public class CmBehaviorRecord extends DataEntity<CmBehaviorRecord> {
         this.linkMan = linkMan;
     }
 
-    public String getContractMobile() {
-        return contractMobile;
+    public String getContractPhone() {
+        return contractPhone;
     }
 
-    public void setContractMobile(String contractMobile) {
-        this.contractMobile = contractMobile;
+    public void setContractPhone(String contractMobile) {
+        this.contractPhone = contractMobile;
     }
 
     public String getSpName() {

+ 3 - 0
src/main/java/com/caimei/modules/user/service/CmBehaviorRecordService.java

@@ -7,6 +7,9 @@ import com.thinkgem.jeesite.common.service.CrudService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
 /**
  * Description
  *

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

@@ -20,7 +20,7 @@
           u.name,
           c.linkMan,
           c.contractPhone,
-          c.spID,
+          c.spID as spName,
           COUNT(IP) as numbers
         FROM cm_behavior_record b
         LEFT JOIN USER u ON b.userID = u.userID

+ 13 - 11
src/main/webapp/WEB-INF/views/modules/user/behaviorRecordList.jsp

@@ -41,7 +41,7 @@
         <label>联系人:</label>
             <form:input path="linkMan" htmlEscape="false" maxlength="20" class="input-small"/>
         <label>手机号码:</label>
-        <form:input path="contractMobile" htmlEscape="false" maxlength="20" class="input-small"/>
+        <form:input path="contractPhone" htmlEscape="false" maxlength="20" class="input-small"/>
         <label>协销:</label>
         <form:input path="spName" htmlEscape="false" maxlength="20" class="input-small"/>
         <label>访问时间:</label>
@@ -72,20 +72,22 @@
         </tr>
     </thead>
     <tbody>
+    <c:forEach items="${page.list}" var="cmBehaviorRecord" varStatus="index">
         <tr>
-           <td></td>
-           <td></td>
-           <td></td>
-           <td></td>
-           <td></td>
-           <td></td>
-           <td></td>
-           <td></td>
-           <td></td>
+           <td>${cmBehaviorRecord.IP}</td>
+           <td>${cmBehaviorRecord.companyType}</td>
+           <td>${cmBehaviorRecord.name}</td>
+           <td>${cmBehaviorRecord.linkMan}</td>
+           <td>${cmBehaviorRecord.contractPhone}</td>
+           <td>${cmBehaviorRecord.spName}</td>
+           <td>${cmBehaviorRecord.numbers}</td>
+           <td>${cmBehaviorRecord.accessDuration}</td>
+           <td>${cmBehaviorRecord.accessDate}</td>
            <td>
-               <a href="">查看详情</a>
+               <a href="${ctx}/user/behavior/record/recordList?IP=${cmBehaviorRecord.IP}&accessDate=${cmBehaviorRecord.accessDate}">查看详情</a>
            </td>
         </tr>
+    </c:forEach>
     </tbody>
 </table>
 <div class="pagination">${page}</div>