|
|
@@ -77,7 +77,7 @@
|
|
|
inner join sys_area a on p.area_id = a.id
|
|
|
inner join sys_dict_detail d on d.code = p.safe_type and d.dict_code = 'check_type'
|
|
|
inner join t_app_rule ap on p.rule_id =ap.id
|
|
|
- where p.deleted = 0
|
|
|
+ where p.deleted = 0 and ri.deleted=0
|
|
|
<if test="pointIds != null and pointIds.size > 0">
|
|
|
and p.id in
|
|
|
<foreach collection="pointIds" item="pointId" open="(" separator="," close=")">
|
|
|
@@ -104,7 +104,7 @@
|
|
|
<select id="findAreaListPlan" parameterType="Long" resultType="java.util.Map">
|
|
|
SELECT a.area_id as areaid, d.name as areaname
|
|
|
from core_resumption_rule_point a
|
|
|
- LEFT JOIN core_resumption_plan_to_point b ON a.id = b.item_id
|
|
|
+ LEFT JOIN core_resumption_plan_to_point b ON a.id = b.point_id
|
|
|
LEFT JOIN core_resumption_plan c ON b.plan_id = c.id
|
|
|
LEFT JOIN sys_area d ON a.area_id = d.id
|
|
|
WHERE c.id = #{planid}
|
|
|
@@ -141,8 +141,8 @@
|
|
|
|
|
|
<update id="updatePlanItem">
|
|
|
update core_resumption_plan_to_point
|
|
|
- set item_id=#{newId}
|
|
|
- where item_id = #{id}
|
|
|
+ set point_id=#{newId}
|
|
|
+ where point_id = #{id}
|
|
|
</update>
|
|
|
|
|
|
<!-- <select id="checkPointNumRepeat" resultType="java.lang.Integer">-->
|
|
|
@@ -225,8 +225,8 @@
|
|
|
</select>
|
|
|
<select id="checkIsJoinResumptionPlan" resultType="java.lang.Integer">
|
|
|
SELECT DISTINCT 1
|
|
|
- FROM sys_plan_to_item
|
|
|
- WHERE item_id in
|
|
|
+ FROM core_resumption_plan_to_point
|
|
|
+ WHERE point_id in
|
|
|
<foreach collection="pointIds" item="pointId" index="index" open="(" separator="," close=")">
|
|
|
#{pointId}
|
|
|
</foreach>
|