|
|
@@ -31,7 +31,7 @@
|
|
|
<!-- inner join t_app_rule_item ri on ri.id=p.item_id-->
|
|
|
<!-- 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_plan_to_item ti on ti.item_id=p.id-->
|
|
|
+<!-- inner join core_resumption_plan_to_item ti on ti.item_id=p.id-->
|
|
|
<!-- inner join t_app_plan ap on ti.plan_id =ap.id-->
|
|
|
<!-- where p.deleted = 0-->
|
|
|
<!-- <if test="pointIds != null and pointIds.size > 0">-->
|
|
|
@@ -50,7 +50,7 @@
|
|
|
<select id="findPointByPlan" parameterType="Long" resultType="com.xunmei.core.resumption.vo.AppRulePointTaskVo">
|
|
|
SELECT a.*, b.point_scan
|
|
|
from core_resumption_rule_point a
|
|
|
- LEFT JOIN t_app_plan_to_item b ON a.id = b.item_id
|
|
|
+ LEFT JOIN core_resumption_plan_to_item b ON a.id = b.item_id
|
|
|
LEFT JOIN t_app_plan c ON b.plan_id = c.id
|
|
|
WHERE c.id = #{planid}
|
|
|
</select>
|
|
|
@@ -96,7 +96,7 @@
|
|
|
<!-- <select id="findPointByPlan" parameterType="Long" resultType="com.xunmei.core.resumption.vo.resumption.AppRulePointTaskVo">-->
|
|
|
<!-- SELECT a.*, b.point_scan-->
|
|
|
<!-- from core_resumption_rule_point a-->
|
|
|
-<!-- LEFT JOIN t_app_plan_to_item b ON a.id = b.item_id-->
|
|
|
+<!-- LEFT JOIN core_resumption_plan_to_item b ON a.id = b.item_id-->
|
|
|
<!-- LEFT JOIN t_app_plan c ON b.plan_id = c.id-->
|
|
|
<!-- WHERE c.id = #{planid}-->
|
|
|
<!-- </select>-->
|
|
|
@@ -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 t_app_plan_to_item b ON a.id = b.item_id
|
|
|
+ LEFT JOIN core_resumption_plan_to_item b ON a.id = b.item_id
|
|
|
LEFT JOIN t_app_plan c ON b.plan_id = c.id
|
|
|
LEFT JOIN t_area d ON a.area_id = d.id
|
|
|
WHERE c.id = #{planid}
|
|
|
@@ -140,7 +140,7 @@
|
|
|
</update>
|
|
|
|
|
|
<update id="updatePlanItem">
|
|
|
- update t_app_plan_to_item
|
|
|
+ update core_resumption_plan_to_item
|
|
|
set item_id=#{newId}
|
|
|
where item_id = #{id}
|
|
|
</update>
|
|
|
@@ -199,7 +199,7 @@
|
|
|
SELECT a.id as pointid,a.point_name as pointname ,a.point_num as pointnum,a.item_id as itemid,a.area_id as areaid,f.name as areaname,a.time_type as timeType,
|
|
|
b.plan_id as planId,e.item_name as itemname,b.point_scan as pointScan,b.required,a.business_type as businessType
|
|
|
from core_resumption_rule_point a
|
|
|
- LEFT JOIN t_app_plan_to_item b ON a.id = b.item_id
|
|
|
+ LEFT JOIN core_resumption_plan_to_item b ON a.id = b.item_id
|
|
|
LEFT JOIN t_app_plan c ON b.plan_id = c.id
|
|
|
LEFT JOIN t_app_rule_item e ON a.item_id = e.id
|
|
|
left join t_area f on a.area_id = f.id
|