zhangtao
dongdingding 1 year ago
parent 2b363983cd
commit a034b1f749

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

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

@ -128,7 +128,7 @@ public class BPlanEnterpriseResponse extends BaseEntity {
/** /**
* 12 * 12
*/ */
@Excel(name = "是否省重点", readConverterExp = "1=是,2=否")
@ApiModelProperty(value = "是否重点企业1是2否") @ApiModelProperty(value = "是否重点企业1是2否")
private Integer isPoint; 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") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd ", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
@ -94,10 +93,15 @@ public class BPlanEnterpriseZhifaResponse {
* *
*/ */
@ApiModelProperty(value = "行政区划") @ApiModelProperty(value = "行政区划")
@Excel(name = "行政区划")
private String district; private String district;
/**
*
*/
@Excel(name = "行政区划")
private String districtcounty;
/** /**
* *
*/ */
@ -106,6 +110,14 @@ public class BPlanEnterpriseZhifaResponse {
private String plannedYear; private String plannedYear;
/**
*
*/
@Excel(name = "计划月份")
@ApiModelProperty(value = "计划月份")
private String plannedMonth;
/** /**
* 12 * 12
*/ */
@ -156,13 +168,6 @@ public class BPlanEnterpriseZhifaResponse {
private String lawHierarchy; private String lawHierarchy;
/**
*
*/
@ApiModelProperty(value = "计划月份")
private String plannedMonth;
/** /**
* 0稿 1 * 0稿 1
*/ */
@ -173,6 +178,7 @@ public class BPlanEnterpriseZhifaResponse {
/** /**
* 0 1 * 0 1
*/ */
@Excel(name="执法状态",readConverterExp = "0=未检查,1=已检查")
@ApiModelProperty(value = "0未检查 1已检查") @ApiModelProperty(value = "0未检查 1已检查")
private Long checkStatus; private Long checkStatus;
@ -235,4 +241,6 @@ public class BPlanEnterpriseZhifaResponse {
private String uuto; private String uuto;
} }

@ -148,10 +148,12 @@
c.RISK_LEVEL as riskLevel, c.RISK_LEVEL as riskLevel,
c.STAND_LEVEL as standLevel, c.STAND_LEVEL as standLevel,
c.EXAMINE_END_TIME as examineEndTime, 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 FROM b_plan_enterprise a
LEFT JOIN b_key_enterprise b ON a.enterprise_id = b.ent_code 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_enterprise_new c ON a.enterprise_id = c.enterprise_id
left join b_administrative_division d on a.district=d.county_code
<where> <where>
<if test="req.plannedYear !=null and req.plannedYear !=''"> <if test="req.plannedYear !=null and req.plannedYear !=''">
and a.planned_year =#{req.plannedYear} and a.planned_year =#{req.plannedYear}

Loading…
Cancel
Save