新增邀请用户导出功能V2
This commit is contained in:
@@ -24,10 +24,7 @@ import org.apache.poi.hssf.usermodel.HSSFRow;
|
||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.context.request.ServletWebRequest;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
@@ -56,6 +53,7 @@ public class FlowTeamSettlementInfoController extends BaseController {
|
||||
|
||||
/**
|
||||
* 获取引流团队结算数据
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/listTeamSettlementData")
|
||||
@@ -66,6 +64,7 @@ public class FlowTeamSettlementInfoController extends BaseController {
|
||||
|
||||
/**
|
||||
* 获取引流团队结算数据
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/listTeamSettlementDataDetail")
|
||||
@@ -84,7 +83,7 @@ public class FlowTeamSettlementInfoController extends BaseController {
|
||||
// 设置下载时客户端Excel的名称
|
||||
String filename = new StrBuilder("_").append(month).append("累计充值明细.xls").toString();
|
||||
response.setContentType("application/vnd.ms-excel");
|
||||
response.setHeader("Content-disposition", "attachment;filename=" + new String(filename.getBytes("utf-8"),"ISO8859-1"));
|
||||
response.setHeader("Content-disposition", "attachment;filename=" + new String(filename.getBytes("utf-8"), "ISO8859-1"));
|
||||
response.setCharacterEncoding("UTF-8");
|
||||
OutputStream ouputStream = response.getOutputStream();
|
||||
workbook.write(ouputStream);
|
||||
@@ -115,9 +114,17 @@ public class FlowTeamSettlementInfoController extends BaseController {
|
||||
return workbook;
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出
|
||||
*
|
||||
* @param groupId
|
||||
* @param teamId
|
||||
* @param request
|
||||
* @param response
|
||||
*/
|
||||
@GetMapping("export")
|
||||
public void export(Long groupId,
|
||||
String teamId,
|
||||
public void export(@RequestParam("query-groupSelector") Long groupId,
|
||||
@RequestParam(value = "query-teamSelector", required = false) String teamId,
|
||||
HttpServletRequest request,
|
||||
HttpServletResponse response) {
|
||||
flowTeamSettlementBizService.export(groupId, teamId, new ServletWebRequest(request, response));
|
||||
|
@@ -16,13 +16,15 @@
|
||||
<div class="col-sm-12">
|
||||
<label for="query-groupSelector" class="col-sm-3 control-label">选择查询团队:</label>
|
||||
<div class="col-sm-3">
|
||||
<select name="query-teamSelector" onchange="initTeamSelector(this.options[this.selectedIndex].value, this.name)"
|
||||
<select name="query-teamSelector"
|
||||
onchange="initTeamSelector(this.options[this.selectedIndex].value, this.name)"
|
||||
id="query-groupSelector" class="form-control" data-btn-class="btn-warning">
|
||||
</select>
|
||||
</div>
|
||||
<label for="query-teamSelector" class="col-sm-3 control-label">选择查询小组:</label>
|
||||
<div class="col-sm-3">
|
||||
<select name="teamSelector" id="query-teamSelector" class="form-control" data-btn-class="btn-warning">
|
||||
<select name="teamSelector" id="query-teamSelector" class="form-control"
|
||||
data-btn-class="btn-warning">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -53,7 +55,7 @@
|
||||
<h4 class="modal-title" id="teamDetailModalTitle">分组明细</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div >
|
||||
<div>
|
||||
<input type="text" id="queryErbanNo" placeholder="输入用户ID">
|
||||
</div>
|
||||
<button type="button" class="btn btn-default" id="searchTeamDetail">搜索</button>
|
||||
|
Reference in New Issue
Block a user