接口联调
This commit is contained in:
parent
d271eac591
commit
efe541588c
|
|
@ -1,15 +1,17 @@
|
|||
package com.bonus.base.controller;
|
||||
|
||||
import com.bonus.base.domain.TbPeople;
|
||||
import com.bonus.base.domain.TbTeam;
|
||||
import com.bonus.base.service.TbTeamService;
|
||||
import com.bonus.base.vo.TbDeviceVo;
|
||||
import com.bonus.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.common.core.web.controller.BaseController;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.common.core.web.page.TableDataInfo;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
|
@ -127,6 +129,19 @@ public class TbTeamController extends BaseController {
|
|||
return AjaxResult.success(tbTeamService.selectDeviceList(tbDeviceVo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 班组管理导出
|
||||
* @param response
|
||||
* @param tbTeam
|
||||
*/
|
||||
@ApiOperation("班组管理导出")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, TbTeam tbTeam) {
|
||||
List<TbTeam> list = tbTeamService.queryByPage(tbTeam);
|
||||
ExcelUtil<TbTeam> util = new ExcelUtil<>(TbTeam.class);
|
||||
util.exportExcel(response, list, "班组管理导出");
|
||||
}
|
||||
|
||||
/**
|
||||
* 从北京电科院数据库获取班组列表
|
||||
* @return 查询结果
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ public class TbTeam implements Serializable {
|
|||
/**
|
||||
* 创建日期
|
||||
*/
|
||||
@Excel(name = "创建日期")
|
||||
@Excel(name = "创建日期", dateFormat = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date createTime;
|
||||
|
||||
|
|
@ -94,7 +94,7 @@ public class TbTeam implements Serializable {
|
|||
/**
|
||||
* 解散时间
|
||||
*/
|
||||
@Excel(name = "解散日期")
|
||||
@Excel(name = "解散日期", dateFormat = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date jsTime;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue