laozt 1 year ago
commit fc1700e4f8

@ -216,6 +216,7 @@ public class BPlanEnterprise {
/** /**
* *
*/ */
@TableField(exist = false)
@ApiModelProperty(value = "安全风险等级") @ApiModelProperty(value = "安全风险等级")
private String riskLevel; private String riskLevel;

@ -125,12 +125,12 @@ public class BPlanEnterpriseResponse extends BaseEntity {
private String enterpriseName; private String enterpriseName;
/** // /**
* 12 // * 是否重点企业1是2
*/ // */
//
@ApiModelProperty(value = "是否重点企业1是2否") // @ApiModelProperty(value = "是否重点企业1是2否")
private Integer isPoint; // private Integer isPoint;
/** /**
@ -149,6 +149,9 @@ public class BPlanEnterpriseResponse extends BaseEntity {
private String lawLevel; private String lawLevel;
@ApiModelProperty(value = "安全风险等级")
private String riskLevel;
/** /**
* *
*/ */
@ -199,26 +202,26 @@ public class BPlanEnterpriseResponse extends BaseEntity {
@ApiModelProperty(value = "1当月 2提前 3滞后") @ApiModelProperty(value = "1当月 2提前 3滞后")
private Integer checkAgeing; private Integer checkAgeing;
//
// /**
// * 1当月 2提前 3滞后
// */
// @ApiModelProperty(value = "1当月 2提前 3滞后")
// private Integer RISK_LEVEL;
//
//
// /**
// * 安全风险等级
// */
// @ApiModelProperty(value = "安全风险等级")
// private String riskLevel;
//
/** // /**
* 1 2 3 // * 标准化等级
*/ // */
@ApiModelProperty(value = "1当月 2提前 3滞后") // @ApiModelProperty(value = "标准化等级")
private Integer RISK_LEVEL; // private String standLevel;
/**
*
*/
@ApiModelProperty(value = "安全风险等级")
private String riskLevel;
/**
*
*/
@ApiModelProperty(value = "标准化等级")
private String standLevel;
/** /**

@ -38,8 +38,9 @@ server:
# 日志配置 # 日志配置
logging: logging:
level: level:
com.ruoyi: debug com.ruoyi: error
org.springframework: warn org.springframework: error
org.hibernate: error
# 用户配置 # 用户配置
user: user:
@ -113,7 +114,7 @@ mybatis-plus:
configuration: configuration:
map-underscore-to-camel-case: true map-underscore-to-camel-case: true
cache-enabled: false cache-enabled: false
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# PageHelper分页插件 # PageHelper分页插件
pagehelper: pagehelper:

@ -65,15 +65,11 @@
a.check_status, a.check_status,
a.check_id, a.check_id,
a.check_ageing, a.check_ageing,
c.RISK_LEVEL as riskLevel, c.risk_level,
c.STAND_LEVEL as standLevel, CONCAT(d.district,'-', d.county) AS districtcounty
c.EXAMINE_END_TIME as examineEndTime,
CONCAT(d.district,'-', d.county) AS districtcounty,
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS isPoint
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_enterprise_new c ON a.enterprise_id = c.enterprise_id
left join b_administrative_division d on a.district=d.county_code left join b_administrative_division d on a.district=d.county_code
LEFT JOIN b_enterprise_new c ON a.enterprise_id = c.enterprise_id
<where> <where>
<if test="enterpriseId != null and enterpriseId != ''">and a.enterprise_id = #{enterpriseId}</if> <if test="enterpriseId != null and enterpriseId != ''">and a.enterprise_id = #{enterpriseId}</if>
<if test="createId != null ">and a.create_id = #{createId}</if> <if test="createId != null ">and a.create_id = #{createId}</if>
@ -94,7 +90,6 @@
</if> </if>
<if test="plannedYear != null and plannedYear != ''">and a.planned_year = #{plannedYear}</if> <if test="plannedYear != null and plannedYear != ''">and a.planned_year = #{plannedYear}</if>
<if test="isPoint != null ">and a.is_point = #{isPoint}</if>
<if test="lawHierarchy != null ">and a.law_hierarchy = #{lawHierarchy}</if> <if test="lawHierarchy != null ">and a.law_hierarchy = #{lawHierarchy}</if>
<if test="status != null ">and a.status = #{status}</if> <if test="status != null ">and a.status = #{status}</if>
<if test="enterpriseName != null and enterpriseName != ''">and a.enterprise_name like <if test="enterpriseName != null and enterpriseName != ''">and a.enterprise_name like
@ -106,8 +101,8 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
order by lawLevel, law_sort,planned_month+0
</where> </where>
order by isPoint desc
</select> </select>
<delete id="deleteByPlanId"> <delete id="deleteByPlanId">
delete delete

Loading…
Cancel
Save