zhangtao
dongdingding 2 years ago
parent 7c7695ae45
commit 6ad37798e0

@ -40,12 +40,6 @@ public class BKeyEnterprise implements Serializable {
@ApiModelProperty(value = "企业代码")
private String entCode;
/**
*
*/
@ApiModelProperty(value = "大类")
@Excel(name = "大类")
private String type;
/**
*
@ -116,12 +110,6 @@ public class BKeyEnterprise implements Serializable {
@Excel(name = "企业名称")
private String enterpriseName;
/**
*
*/
@ApiModelProperty(value = "区划代码")
@Excel(name = "区划代码")
private String district;
}

@ -35,8 +35,8 @@ public class BKeyEnterprisePageRequest implements Serializable {
/**
*
*/
@ApiModelProperty("区划代码")
private String district;
@ApiModelProperty("企业名称")
private String enterpriseName;
/**
* size

@ -10,21 +10,17 @@
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="entCode != null">ent_code,</if>
<if test="year != null">year,</if>
<if test="type != null">type,</if>
<if test="enterpriseName != null">enterprise_name,</if>
<if test="district != null">district,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="entCode != null">#{entCode},</if>
<if test="year != null">#{year},</if>
<if test="type != null">#{type},</if>
<if test="enterpriseName != null">#{enterpriseName},</if>
<if test="district != null">#{district},</if>
</trim>
</insert>
<select id="page" resultType="com.ruoyi.programManagement.entity.BKeyEnterprise">
select id,ent_code as entCode, type ,year,enterprise_name as enterpriseName from b_key_enterprise
select id,ent_code as entCode ,year,enterprise_name as enterpriseName from b_key_enterprise
<where>
<if test=" req.year !=null">
and year = #{req.year}
@ -32,8 +28,8 @@
<if test=" req.entCode !=null">
and ent_code = #{req.entCode}
</if>
<if test=" req.district !=null">
and district = #{req.district}
<if test=" req.enterpriseName !=null">
and enterprise_name = #{req.enterpriseName}
</if>
</where>
order by id desc

Loading…
Cancel
Save