Selaa lähdekoodia

运营数据统计导出开发》/statisticsListExprot 搜索条件待完成

anderx 4 vuotta sitten
vanhempi
commit
cccbef9f8f

+ 18 - 0
src/main/java/com/goafanti/order/bo/InputStatistics.java

@@ -2,7 +2,9 @@ package com.goafanti.order.bo;
 
 public class InputStatistics {
     private String depId;
+    private String depName;
     private Integer province;
+    private String provinceName;
     private String orderNo;
     private String startCreate;
     private String endCreate;
@@ -13,6 +15,22 @@ public class InputStatistics {
      */
     private Integer sort;
 
+    public String getProvinceName() {
+        return provinceName;
+    }
+
+    public void setProvinceName(String provinceName) {
+        this.provinceName = provinceName;
+    }
+
+    public String getDepName() {
+        return depName;
+    }
+
+    public void setDepName(String depName) {
+        this.depName = depName;
+    }
+
     public String getOrderNo() {
         return orderNo;
     }

+ 15 - 4
src/main/java/com/goafanti/order/controller/AdminNewOrderApiController.java

@@ -10,7 +10,7 @@ import java.util.List;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
-import com.goafanti.order.bo.InputStatistics;
+import com.goafanti.order.bo.*;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
@@ -25,9 +25,6 @@ import com.goafanti.common.model.TOrderNewWithBLOBs;
 import com.goafanti.common.model.TOrderRefundWithBLOBs;
 import com.goafanti.common.model.TOrderTask;
 import com.goafanti.common.utils.excel.NewExcelUtil;
-import com.goafanti.order.bo.InputArrearsDunListBo;
-import com.goafanti.order.bo.OutArrearsDunListBo;
-import com.goafanti.order.bo.TOrderTaskBo;
 import com.goafanti.order.enums.ApprovalNewState;
 import com.goafanti.order.enums.OrderNewState;
 import com.goafanti.order.service.OrderNewService;
@@ -542,6 +539,20 @@ public class AdminNewOrderApiController extends CertifyApiController {
 	}
 
 	/**
+	 * 	签单统计表
+	 * @throws IOException
+	 */
+	@RequestMapping(value = "/statisticsListExprot", method = RequestMethod.GET)
+	public Result statisticsListExprot(InputStatistics in){
+		List<outStatisticsList>  list =orderNewService.statisticsList(in);
+		NewExcelUtil<outStatisticsList> excelUtil=new NewExcelUtil<>(outStatisticsList.class);
+		StringBuffer sb=new StringBuffer("搜索条件  ");
+		if (in.getDepName()!=null)sb.append("  部门:").append(in.getDepName());
+		if(in.getProvinceName()!=null)sb.append("  省份:").append(in.getProvinceName());
+		return res().data(excelUtil.exportExcel(list,"签单统计表",uploadPath));
+	}
+
+	/**
 	 * 	省份签单统计表
 	 * @throws IOException
 	 */

+ 0 - 4
src/main/java/com/goafanti/user/controller/UserChannelApiController.java

@@ -37,7 +37,6 @@ public class UserChannelApiController  extends CertifyApiController{
 	/**
 	 * 	新增渠道
 	 * 
-	 * @param uid
 	 * @return
 	 */
 	@RequestMapping(value = "/add", method = RequestMethod.POST)
@@ -53,7 +52,6 @@ public class UserChannelApiController  extends CertifyApiController{
 	/**
 	 * 	删除渠道
 	 * 
-	 * @param uid
 	 * @return
 	 */
 	@RequestMapping(value = "/delete", method = RequestMethod.POST)
@@ -70,7 +68,6 @@ public class UserChannelApiController  extends CertifyApiController{
 	/**
 	 * 	Excel批量导入渠道客户
      * 
-     * @param response
      * @return
      */
     @RequestMapping(value = "/import" , method = RequestMethod.POST)
@@ -95,7 +92,6 @@ public class UserChannelApiController  extends CertifyApiController{
     /**
   	 * 	已存在渠道客户列表
        * 
-       * @param response
        * @return
        */
       @RequestMapping(value = "/erorrList" , method = RequestMethod.GET)

+ 13 - 0
src/main/java/com/goafanti/user/controller/UserFollowController.java

@@ -4,6 +4,7 @@ import com.goafanti.common.bo.Result;
 import com.goafanti.common.controller.BaseApiController;
 import com.goafanti.common.utils.excel.NewExcelUtil;
 import com.goafanti.user.bo.InputUserFollowList;
+import com.goafanti.user.bo.outFollowStatisticsList;
 import com.goafanti.user.bo.outUserFollowList;
 import com.goafanti.user.service.UserFollowService;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -57,6 +58,18 @@ public class UserFollowController extends BaseApiController {
         return res.data(userFollowService.followStatisticsList(depId,date,province,sort));
     }
 
+    /**
+     * 面谈跟进统计导出
+     * @return
+     */
+    @RequestMapping(value = "/followStatisticsListExport", method = RequestMethod.GET)
+    public Result  followStatisticsListExport(String depId,String date,Integer province,Integer sort){
+        Result res =new Result();
+        List<outFollowStatisticsList> list=userFollowService.followStatisticsList(depId,date,province,sort);
+        NewExcelUtil<outFollowStatisticsList>excelUtil =new NewExcelUtil<>(outFollowStatisticsList.class);
+        return res.data(excelUtil.exportExcel(list,"面谈跟进统计",uploadPath));
+    }
+
 
     /**
      * 省份面谈跟进统计