|
|
|
@ -57,6 +57,7 @@
|
|
|
|
|
<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="isPoint != null ">and is_point = #{isPoint}</if>
|
|
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">and enterprise_name like concat('%',#{enterpriseName}, '%')</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<delete id="deleteByPlanId">
|
|
|
|
@ -98,6 +99,7 @@
|
|
|
|
|
b.id AS longId,
|
|
|
|
|
b.EXAMINE_START_TIME,
|
|
|
|
|
b.EXAMINE_END_TIME,
|
|
|
|
|
a.enterprise_name as enterpriseName,
|
|
|
|
|
|
|
|
|
|
CASE
|
|
|
|
|
WHEN b.USC_CODE IS NOT NULL AND SUBSTRING(a.planned_year, 1, 7) = SUBSTRING(b.EXAMINE_START_TIME, 1, 7) THEN 1
|
|
|
|
@ -119,6 +121,9 @@
|
|
|
|
|
<if test="req.checkStatus !=null and req.checkStatus !=''">
|
|
|
|
|
and s.checkStatus =#{req.checkStatus}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="req.enterpriseName !=null and req.enterpriseName !=''">
|
|
|
|
|
and s.enterpriseName =#{req.enterpriseName}
|
|
|
|
|
</if>
|
|
|
|
|
and s.rn = 1
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|