|
|
@@ -97,11 +97,19 @@ public class StatisticsApiController extends CertifyApiController {
|
|
|
List<OutOrderSalesSource> list =orderStatisticsService.orderSalesSource( in);
|
|
|
NewExcelUtil<OutOrderSalesSource> excelUtil=new NewExcelUtil<>(OutOrderSalesSource.class);
|
|
|
StringBuffer str=new StringBuffer("搜索条件=》");
|
|
|
- if (in.getDepName()!=null)str=str.append("部门:").append(in.getDepName()).append(";");
|
|
|
- if(in.getProvinceName()!=null)str=str.append("省份:").append(in.getProvinceName()).append(";");
|
|
|
- if (in.getSort()!=null)str=str.append("排序:").append(in.getSort()==1?"签单数":"签单金额").append(";");
|
|
|
- if (in.getStartDate()!=null &&in.getEndDate()!=null)str=str.append("时间:").append(in.getStartDate()).append("~")
|
|
|
- .append(in.getEndDate()).append(";");
|
|
|
+ if (in.getDepName()!=null){
|
|
|
+ str=str.append("部门:").append(in.getDepName()).append(";");
|
|
|
+ }
|
|
|
+ if(in.getProvinceName()!=null){
|
|
|
+ str=str.append("省份:").append(in.getProvinceName()).append(";");
|
|
|
+ }
|
|
|
+ if (in.getSort()!=null){
|
|
|
+ str=str.append("排序:").append(in.getSort()==1?"签单数":"签单金额").append(";");
|
|
|
+ }
|
|
|
+ if (in.getStartDate()!=null &&in.getEndDate()!=null){
|
|
|
+ str=str.append("时间:").append(in.getStartDate()).append("~")
|
|
|
+ .append(in.getEndDate()).append(";");
|
|
|
+ }
|
|
|
return excelUtil.exportExcel(list,"订单销售来源统计表",uploadPath,str.toString());
|
|
|
}
|
|
|
|