zhangtao
dongdingding 2 years ago
parent f82d2c1440
commit e7e288cb7d

@ -25,7 +25,11 @@ public class PlanMxRequest {
@ApiModelProperty(value = "计划年份") @ApiModelProperty(value = "计划年份")
private String plannedYear; private String plannedYear;
/**
*
*/
@ApiModelProperty(value = "企业名称")
private String enterpriseName;
/** /**
* size * size
*/ */
@ -38,5 +42,7 @@ public class PlanMxRequest {
*/ */
@ApiModelProperty("num") @ApiModelProperty("num")
private int pageNum; private int pageNum;
} }

@ -136,5 +136,5 @@ public class PlanMxResponse {
* *
*/ */
@ApiModelProperty(value = "企业名称") @ApiModelProperty(value = "企业名称")
private String entprName; private String enterpriseName;
} }

@ -122,7 +122,7 @@
and s.checkStatus =#{req.checkStatus} and s.checkStatus =#{req.checkStatus}
</if> </if>
<if test="req.enterpriseName !=null and req.enterpriseName !=''"> <if test="req.enterpriseName !=null and req.enterpriseName !=''">
and s.enterpriseName =#{req.enterpriseName} and s.enterpriseName like concat('%', #{req.enterpriseName}, '%')
</if> </if>
and s.rn = 1 and s.rn = 1
</where> </where>
@ -177,11 +177,11 @@
<select id="getPlanMx" resultType="com.ruoyi.programManagement.entity.response.PlanMxResponse"> <select id="getPlanMx" resultType="com.ruoyi.programManagement.entity.response.PlanMxResponse">
SELECT SELECT
a.*, a.*,
b.institution_name AS institutionName, b.DISTRICT_NAME AS institutionName,
c.ENTERPRISE_NAME as entprName c.ENTERPRISE_NAME as enterpriseName
FROM FROM
b_plan_enterprise a b_plan_enterprise a
LEFT JOIN b_administrative b ON a.district = b.subdistrict LEFT JOIN szs_administrative_division b ON a.district = b.DISTRICT_CODE
LEFT JOIN szs_enterprise_information c ON a.enterprise_id = c.UUIT_NO LEFT JOIN szs_enterprise_information c ON a.enterprise_id = c.UUIT_NO
<where> <where>
<if test="req.district !=null and req.district!='' "> <if test="req.district !=null and req.district!='' ">
@ -190,6 +190,10 @@
<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}
</if> </if>
<if test="req.enterpriseName !=null and req.enterpriseName!='' ">
and c.ENTERPRISE_NAME like concat('%', #{req.enterpriseName}, '%')
</if>
</where> </where>
group by a.id order by a.id desc group by a.id order by a.id desc
</select> </select>

Loading…
Cancel
Save