张涛 9 months ago
commit 77660ed156

@ -33,8 +33,9 @@ import java.util.List;
* @since 2023-09-07 09:43:06
*/
@RestController
@RequestMapping("pharmaceuticals/bPlanEnterprise")
@Api(tags = "计划企业")
@RequestMapping("pharmaceuticals/bPlanEnterprise")
@Transactional(rollbackFor = Exception.class)
public class BPlanEnterpriseController extends BaseController {
/**
@ -157,7 +158,7 @@ public class BPlanEnterpriseController extends BaseController {
public void export(HttpServletResponse response, checkResultRequest req) {
List<BPlanEnterpriseZhifaResponse> list = bPlanEnterpriseMapper.getZhifa(req);
ExcelUtil<BPlanEnterpriseZhifaResponse> util = new ExcelUtil<BPlanEnterpriseZhifaResponse>(BPlanEnterpriseZhifaResponse.class);
util.exportExcel(list, "导出执法结果");
util.exportExcel(response,list, "导出执法结果");
}
/**
@ -168,7 +169,7 @@ public class BPlanEnterpriseController extends BaseController {
public void exportplan(HttpServletResponse response, BPlanEnterprise bPlanEnterprise) {
List<BPlanEnterpriseResponse> list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise);
ExcelUtil<BPlanEnterpriseResponse> util = new ExcelUtil<BPlanEnterpriseResponse>(BPlanEnterpriseResponse.class);
util.exportExcel(response, list, "计划管理数据");
util.exportExcel(response,list, "计划管理数据");
}
/**

@ -134,7 +134,7 @@ public class BPlanEnterprise {
/**
* 12
*/
@Excel(name = "是否省重点", readConverterExp = "1=是,2=否")
@ApiModelProperty(value = "是否重点企业1是2否")
private Integer isPoint;

@ -128,7 +128,7 @@ public class BPlanEnterpriseResponse extends BaseEntity {
/**
* 12
*/
@Excel(name = "是否省重点", readConverterExp = "1=是,2=否")
@ApiModelProperty(value = "是否重点企业1是2否")
private Integer isPoint;

@ -46,8 +46,7 @@ public class BPlanEnterpriseZhifaResponse {
/**
*
*/
@Excel(name = "年份", dateFormat = "yyyy-MM-dd")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd ", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(value = "创建时间")
@ -94,10 +93,15 @@ public class BPlanEnterpriseZhifaResponse {
*
*/
@ApiModelProperty(value = "行政区划")
@Excel(name = "行政区划")
private String district;
/**
*
*/
@Excel(name = "行政区划")
private String districtcounty;
/**
*
*/
@ -106,6 +110,14 @@ public class BPlanEnterpriseZhifaResponse {
private String plannedYear;
/**
*
*/
@Excel(name = "计划月份")
@ApiModelProperty(value = "计划月份")
private String plannedMonth;
/**
* 12
*/
@ -156,13 +168,6 @@ public class BPlanEnterpriseZhifaResponse {
private String lawHierarchy;
/**
*
*/
@ApiModelProperty(value = "计划月份")
private String plannedMonth;
/**
* 0稿 1
*/
@ -173,6 +178,7 @@ public class BPlanEnterpriseZhifaResponse {
/**
* 0 1
*/
@Excel(name="执法状态",readConverterExp = "0=未检查,1=已检查")
@ApiModelProperty(value = "0未检查 1已检查")
private Long checkStatus;
@ -235,4 +241,6 @@ public class BPlanEnterpriseZhifaResponse {
private String uuto;
}

@ -148,10 +148,12 @@
c.RISK_LEVEL as riskLevel,
c.STAND_LEVEL as standLevel,
c.EXAMINE_END_TIME as examineEndTime,
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS isPoint
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS isPoint,
CONCAT(d.district,'-', d.county) AS districtcounty
FROM b_plan_enterprise a
LEFT JOIN b_key_enterprise b ON a.enterprise_id = b.ent_code
LEFT JOIN b_enterprise_new c ON a.enterprise_id = c.enterprise_id
left join b_administrative_division d on a.district=d.county_code
<where>
<if test="req.plannedYear !=null and req.plannedYear !=''">
and a.planned_year =#{req.plannedYear}

Loading…
Cancel
Save