|
|
|
@ -29,7 +29,9 @@
|
|
|
|
|
status,
|
|
|
|
|
check_status,
|
|
|
|
|
check_id,
|
|
|
|
|
check_ageing
|
|
|
|
|
check_ageing,
|
|
|
|
|
uuto,
|
|
|
|
|
check_time
|
|
|
|
|
from b_plan_enterprise
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@ -56,6 +58,8 @@
|
|
|
|
|
a.law_areas,
|
|
|
|
|
a.law_level,
|
|
|
|
|
a.law_hierarchy,
|
|
|
|
|
a.uuto,
|
|
|
|
|
a.check_time,
|
|
|
|
|
a.planned_month as plannedMonth,
|
|
|
|
|
a.status,
|
|
|
|
|
a.check_status,
|
|
|
|
@ -136,6 +140,8 @@
|
|
|
|
|
a.law_hierarchy,
|
|
|
|
|
a.planned_month,
|
|
|
|
|
a.status,
|
|
|
|
|
a.uuto,
|
|
|
|
|
a.check_time,
|
|
|
|
|
a.check_status,
|
|
|
|
|
a.check_id,
|
|
|
|
|
a.check_ageing,
|
|
|
|
@ -252,6 +258,8 @@
|
|
|
|
|
a.user_id,
|
|
|
|
|
a.dept_id,
|
|
|
|
|
a.district,
|
|
|
|
|
a.uuto,
|
|
|
|
|
a.check_time,
|
|
|
|
|
a.planned_year,
|
|
|
|
|
a.is_point,
|
|
|
|
|
a.enterprise_name as entprName
|
|
|
|
@ -318,7 +326,7 @@
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectUpdateAll" resultType="com.ruoyi.programManagement.entity.BPlanEnterprise">
|
|
|
|
|
SELECT a.id, a.enterprise_id, a.district, a.planned_year, a.is_point, a.enterprise_name, a.law_sort, a.law_areas, a.law_level, a.law_hierarchy, a.planned_month, a.status,
|
|
|
|
|
SELECT a.id, a.enterprise_id, a.district, a.planned_year, a.is_point, a.enterprise_name, a.law_sort, a.law_areas, a.law_level, a.law_hierarchy, a.planned_month, a.status,e.MAX_EXAMINE_END_TIME as check_time,
|
|
|
|
|
CASE
|
|
|
|
|
WHEN e.MAX_EXAMINE_END_TIME IS NULL THEN 0
|
|
|
|
|
WHEN YEAR(e.MAX_EXAMINE_END_TIME) = a.planned_year AND MONTH(e.MAX_EXAMINE_END_TIME) = a.planned_month THEN 1
|
|
|
|
@ -372,6 +380,7 @@
|
|
|
|
|
<if test="remark != null">remark=#{remark},</if>
|
|
|
|
|
<if test="userId != null">user_id=#{userId},</if>
|
|
|
|
|
<if test="deptId != null">dept_id=#{deptId},</if>
|
|
|
|
|
<if test="uuto != null">uuto =#{uuto},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
@ -401,6 +410,8 @@
|
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
|
|
<if test="uuto != null">uuto,</if>
|
|
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="enterpriseId != null">#{enterpriseId},</if>
|
|
|
|
@ -423,6 +434,7 @@
|
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
|
|
<if test="uuto != null">#{uuto},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|