Commit 179ea435 authored by zhuangxinwei's avatar zhuangxinwei

修改导出

parent 40acf57f
...@@ -62,7 +62,7 @@ public class YcsbController extends BaseController ...@@ -62,7 +62,7 @@ public class YcsbController extends BaseController
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, Ycsb ycsb) public void export(HttpServletResponse response, Ycsb ycsb)
{ {
List<Ycsb> list = ycsbService.selectYcsbList(ycsb); List<Ycsb> list = ycsbService.selectYcsbListExport(ycsb);
ExcelUtil<Ycsb> util = new ExcelUtil<Ycsb>(Ycsb.class); ExcelUtil<Ycsb> util = new ExcelUtil<Ycsb>(Ycsb.class);
for (Ycsb ycsbExport : list) { for (Ycsb ycsbExport : list) {
if (StringUtils.isNotEmpty(ycsbExport.getCommunity())) { if (StringUtils.isNotEmpty(ycsbExport.getCommunity())) {
......
...@@ -24,7 +24,7 @@ public class Fcry extends BaseEntity ...@@ -24,7 +24,7 @@ public class Fcry extends BaseEntity
private Long id; private Long id;
/** 方舱名称 */ /** 方舱名称 */
@Excel(name = "方舱名称",dictType = "fcPlace") @Excel(name = "方舱名称")
private String fcPlace; private String fcPlace;
/** 房间号 */ /** 房间号 */
......
...@@ -109,6 +109,14 @@ public class Ycsb extends BaseEntity ...@@ -109,6 +109,14 @@ public class Ycsb extends BaseEntity
@Transient() @Transient()
private List<String> idList; private List<String> idList;
public List<String> getIdList() {
return idList;
}
public void setIdList(List<String> idList) {
this.idList = idList;
}
@Override @Override
public Date getCreateTime() { public Date getCreateTime() {
return createTime; return createTime;
......
...@@ -27,6 +27,13 @@ public interface YcsbMapper ...@@ -27,6 +27,13 @@ public interface YcsbMapper
* @return 抗原异常上报集合 * @return 抗原异常上报集合
*/ */
public List<Ycsb> selectYcsbList(Ycsb ycsb); public List<Ycsb> selectYcsbList(Ycsb ycsb);
/**
* 查询导出抗原异常上报列表
*
* @param ycsb 抗原异常上报
* @return 抗原异常上报集合
*/
public List<Ycsb> selectYcsbListExport(Ycsb ycsb);
/** /**
* 新增抗原异常上报 * 新增抗原异常上报
......
...@@ -28,6 +28,13 @@ public interface IYcsbService ...@@ -28,6 +28,13 @@ public interface IYcsbService
* @return 抗原异常上报集合 * @return 抗原异常上报集合
*/ */
public List<Ycsb> selectYcsbList(Ycsb ycsb); public List<Ycsb> selectYcsbList(Ycsb ycsb);
/**
* 查询导出抗原异常上报列表
*
* @param ycsb 抗原异常上报
* @return 抗原异常上报集合
*/
public List<Ycsb> selectYcsbListExport(Ycsb ycsb);
/** /**
* 新增抗原异常上报 * 新增抗原异常上报
......
...@@ -53,6 +53,18 @@ public class YcsbServiceImpl implements IYcsbService ...@@ -53,6 +53,18 @@ public class YcsbServiceImpl implements IYcsbService
{ {
return ycsbMapper.selectYcsbList(ycsb); return ycsbMapper.selectYcsbList(ycsb);
} }
/**
* 查询导出抗原异常上报列表
*
* @param ycsb 抗原异常上报
* @return 抗原异常上报
*/
@Override
@DataScope(deptAlias = "d", userAlias = "u")
public List<Ycsb> selectYcsbListExport(Ycsb ycsb)
{
return ycsbMapper.selectYcsbListExport(ycsb);
}
/** /**
* 新增抗原异常上报 * 新增抗原异常上报
......
...@@ -509,7 +509,7 @@ export default { ...@@ -509,7 +509,7 @@ export default {
} }
this.download('system/zlqk/export', { this.download('system/zlqk/export', {
...this.queryParams ...this.queryParams
}, `zlqk_${new Date().getTime()}.xlsx`) }, `治疗情况数据.xlsx`)
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment