Commit db396a76 by MMF

MMF 2026-03-26 新增现场抽取情况查看、导出模块

parent 11cc4a7e
......@@ -72,4 +72,28 @@ public class ZqczXmRyLsjlController extends BaseController {
ExcelUtil<ZqczXmRyLsjlVo> util = new ExcelUtil<>(ZqczXmRyLsjlVo.class);
util.exportExcel(response, dataList, "sheetName");
}
/**
* 现场抽取情况统计
*/
@GetMapping("/spotCheckStatus")
public AjaxResult spotCheckStatus(ZqczXmRyLsjlQuery zqczXmRyLsjlQuery){
try {
return success(zqczXmRyLsjlService.spotCheckStatus(zqczXmRyLsjlQuery));
} catch (BusinessException e) {
log.warn("最强操作-项目人员修改失败" + e.getMessage());
return warn(e.getMessage());
} catch (Exception e) {
log.error(e.getMessage());
return error(e.getMessage());
}
}
/**
* 现场抽取情况表导出
*/
@PostMapping("/spotCheckStatus/export")
public void spotCheckStatusExport(HttpServletResponse response, @RequestBody ZqczXmRyLsjlQuery zqczXmRyLsjlQuery) {
zqczXmRyLsjlService.spotCheckStatusExport(response, zqczXmRyLsjlQuery);
}
}
package com.qianhe.zqcz.xmrylsjl.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qianhe.common.annotation.Excel;
import com.qianhe.zqcz.ryxx.domain.ZqczRyxxVo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
/**
* 现场抽检情况统计
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class XccjqktjVo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 基层单位名称
*/
private String jcdwmc;
/**
* 人员类型
*/
private String ryfl;
/**
* 人员名称
*/
private String rymc;
/**
* 项目类别
*/
private String xmlb;
/**
* 项目名称
*/
private String xmmc;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date update_time;
public XccjqktjVo(ZqczRyxxVo zqczRyxxVo, ZqczXmRyLsjlVo zqczXmRyLsjlVo) {
this.jcdwmc = zqczRyxxVo.getDwmc();
this.ryfl = zqczRyxxVo.getRyfl();
this.rymc = zqczRyxxVo.getRymc();
this.xmmc = zqczXmRyLsjlVo.getXmmc();
this.xmlb = zqczXmRyLsjlVo.getXmlb();
this.update_time = zqczXmRyLsjlVo.getUpdate_time();
}
}
package com.qianhe.zqcz.xmrylsjl.service;
import com.qianhe.zqcz.xmrylsjl.domain.XccjqktjVo;
import com.qianhe.zqcz.xmrylsjl.domain.ZqczXmRyLsjl;
import com.qianhe.zqcz.xmrylsjl.domain.ZqczXmRyLsjlQuery;
import com.qianhe.zqcz.xmrylsjl.domain.ZqczXmRyLsjlVo;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
public interface ZqczXmRyLsjlService {
......@@ -21,4 +23,14 @@ public interface ZqczXmRyLsjlService {
* 修改
*/
int edit(ZqczXmRyLsjl zqczXmRyLsjl, String username);
/**
* 现场抽取情况统计
*/
List<XccjqktjVo> spotCheckStatus(ZqczXmRyLsjlQuery zqczXmRyLsjlQuery);
/**
* 现场抽取情况表导出
*/
void spotCheckStatusExport(HttpServletResponse response, ZqczXmRyLsjlQuery zqczXmRyLsjlQuery);
}
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