zhangtao
dongdingding 1 year ago
parent ccfeb6db63
commit f82d2c1440

@ -31,4 +31,11 @@ public class checkResultRequest {
private Integer checkStatus; private Integer checkStatus;
/**
*
*/
@ApiModelProperty(value = "企业名称")
private String enterpriseName;
} }

@ -57,6 +57,7 @@
<if test="planName != null and planName != ''">and plan_name like concat('%', #{planName}, '%')</if> <if test="planName != null and planName != ''">and plan_name like concat('%', #{planName}, '%')</if>
<if test="planContent != null and planContent != ''">and plan_content = #{planContent}</if> <if test="planContent != null and planContent != ''">and plan_content = #{planContent}</if>
<if test="isPoint != null ">and is_point = #{isPoint}</if> <if test="isPoint != null ">and is_point = #{isPoint}</if>
<if test="enterpriseName != null and enterpriseName != ''">and enterprise_name like concat('%',#{enterpriseName}, '%')</if>
</where> </where>
</select> </select>
<delete id="deleteByPlanId"> <delete id="deleteByPlanId">
@ -67,29 +68,29 @@
</delete> </delete>
<select id="getZhifa" resultType="com.ruoyi.programManagement.entity.response.BPlanEnterpriseZhifaResponse"> <select id="getZhifa" resultType="com.ruoyi.programManagement.entity.response.BPlanEnterpriseZhifaResponse">
-- SELECT -- SELECT
-- s.* -- s.*
-- FROM -- FROM
-- ( -- (
-- SELECT -- SELECT
-- a.*, -- a.*,
-- a.planned_year AS plannedYear, -- a.planned_year AS plannedYear,
-- b.id AS longId, -- b.id AS longId,
-- b.EXAMINE_START_TIME, -- b.EXAMINE_START_TIME,
-- b.EXAMINE_END_TIME, -- b.EXAMINE_END_TIME,
-- b.ENTPR_NAME as entprName, -- b.ENTPR_NAME as entprName,
-- CASE -- CASE
-- WHEN b.USC_CODE IS NOT NULL -- WHEN b.USC_CODE IS NOT NULL
-- AND SUBSTRING( a.planned_year, 1, 7 ) = SUBSTRING( b.EXAMINE_START_TIME, 1, 7 ) -- AND SUBSTRING( a.planned_year, 1, 7 ) = SUBSTRING( b.EXAMINE_START_TIME, 1, 7 )
-- THEN 1 -- THEN 1
-- ELSE 2 -- ELSE 2
-- END AS checkStatus -- END AS checkStatus
-- FROM -- FROM
-- b_plan_enterprise a -- b_plan_enterprise a
-- LEFT JOIN sz_enfor_examine b ON a.enterprise_id = b.USC_CODE -- LEFT JOIN sz_enfor_examine b ON a.enterprise_id = b.USC_CODE
-- WHERE -- WHERE
-- b.USC_CODE IS NOT NULL -- b.USC_CODE IS NOT NULL
-- ) s -- ) s
SELECT s.* SELECT s.*
FROM ( FROM (
SELECT SELECT
@ -98,6 +99,7 @@
b.id AS longId, b.id AS longId,
b.EXAMINE_START_TIME, b.EXAMINE_START_TIME,
b.EXAMINE_END_TIME, b.EXAMINE_END_TIME,
a.enterprise_name as enterpriseName,
CASE CASE
WHEN b.USC_CODE IS NOT NULL AND SUBSTRING(a.planned_year, 1, 7) = SUBSTRING(b.EXAMINE_START_TIME, 1, 7) THEN 1 WHEN b.USC_CODE IS NOT NULL AND SUBSTRING(a.planned_year, 1, 7) = SUBSTRING(b.EXAMINE_START_TIME, 1, 7) THEN 1
@ -119,7 +121,10 @@
<if test="req.checkStatus !=null and req.checkStatus !=''"> <if test="req.checkStatus !=null and req.checkStatus !=''">
and s.checkStatus =#{req.checkStatus} and s.checkStatus =#{req.checkStatus}
</if> </if>
and s.rn = 1 <if test="req.enterpriseName !=null and req.enterpriseName !=''">
and s.enterpriseName =#{req.enterpriseName}
</if>
and s.rn = 1
</where> </where>
</select> </select>
<select id="page" resultType="com.ruoyi.programManagement.entity.BPlanEnterprise"> <select id="page" resultType="com.ruoyi.programManagement.entity.BPlanEnterprise">

Loading…
Cancel
Save