修改新增计划企业

zhangtao
dongdingding 1 year ago
parent 2c39c6cfab
commit ec58a75ac4

@ -184,9 +184,6 @@ public class BPlanEnterprise extends BaseEntity {
/** /**
* 0 1 * 0 1
*/ */

@ -1,5 +1,6 @@
package com.ruoyi.programManagement.entity.request; package com.ruoyi.programManagement.entity.request;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In; import io.swagger.models.auth.In;
import lombok.Data; import lombok.Data;
@ -29,7 +30,19 @@ public class checkResultRequest {
@ApiModelProperty(value = "行政区划") @ApiModelProperty(value = "行政区划")
private String district; private String district;
/**
*
*/
@Excel(name = "企业名称")
@ApiModelProperty(value = "企业名称")
private String enterpriseName;
/**
* 0 1
*/
@ApiModelProperty(value = "0未检查 1已检查")
private Integer checkStatus;
} }

@ -76,6 +76,12 @@
<if test="enterpriseName != null and enterpriseName != ''">and s.enterprise_name like concat('%', <if test="enterpriseName != null and enterpriseName != ''">and s.enterprise_name like concat('%',
#{enterpriseName}, '%') #{enterpriseName}, '%')
</if> </if>
<if test="district != '' and district.length==3">
and s.district like concat('%',#{district}, '%')
</if>
<if test="district != '' and district.length==6">
and s.district like concat('%',#{district}, '%')
</if>
<if test="district != null and district != ''"> <if test="district != null and district != ''">
and s.district in and s.district in
<foreach item="item" index="index" collection="district.split(',')" open="(" separator="," close=")"> <foreach item="item" index="index" collection="district.split(',')" open="(" separator="," close=")">

@ -76,6 +76,12 @@
<if test="updateId != null ">and a.update_id = #{updateId}</if> <if test="updateId != null ">and a.update_id = #{updateId}</if>
<if test="userId != null ">and a.user_id = #{userId}</if> <if test="userId != null ">and a.user_id = #{userId}</if>
<if test="deptId != null ">and a.dept_id = #{deptId}</if> <if test="deptId != null ">and a.dept_id = #{deptId}</if>
<if test="district != '' and district.length==3">
and a.district like concat('%',#{district}, '%')
</if>
<if test="district != '' and district.length==6">
and a.district like concat('%',#{district}, '%')
</if>
<if test="district != null and district != ''"> <if test="district != null and district != ''">
and a.district in and a.district in
<foreach item="item" index="index" collection="district.split(',')" open="(" separator="," close=")"> <foreach item="item" index="index" collection="district.split(',')" open="(" separator="," close=")">
@ -108,7 +114,7 @@
<select id="getZhifa" resultType="com.ruoyi.programManagement.entity.response.BPlanEnterpriseZhifaResponse"> <select id="getZhifa" resultType="com.ruoyi.programManagement.entity.response.BPlanEnterpriseZhifaResponse">
SELECT DISTINCT SELECT
a.id, a.id,
a.enterprise_id, a.enterprise_id,
a.create_id, a.create_id,
@ -145,6 +151,12 @@
<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 a.enterprise_name =#{req.enterpriseName}
</if>
<if test="req.checkStatus !=null and req.checkStatus !=''">
and a.check_status =#{req.checkStatus}
</if>
<if test="req.district !=null and req.district !=''"> <if test="req.district !=null and req.district !=''">
and a.district like concat('%', #{req.district}, '%') and a.district like concat('%', #{req.district}, '%')
</if> </if>

Loading…
Cancel
Save