|
@@ -418,7 +418,8 @@
|
|
|
q.point_scan,
|
|
q.point_scan,
|
|
|
q.required,
|
|
q.required,
|
|
|
q.business_type as pointDataSource,
|
|
q.business_type as pointDataSource,
|
|
|
- q.sort
|
|
|
|
|
|
|
+ q.pointSort as pointSort,
|
|
|
|
|
+ q.itemSort as itemSort
|
|
|
from (select c.id as item_id,
|
|
from (select c.id as item_id,
|
|
|
c.`name` as item_name,
|
|
c.`name` as item_name,
|
|
|
b.id as point_id,
|
|
b.id as point_id,
|
|
@@ -433,7 +434,8 @@
|
|
|
a.plan_id,
|
|
a.plan_id,
|
|
|
a.point_scan,
|
|
a.point_scan,
|
|
|
a.required,
|
|
a.required,
|
|
|
- b.sort
|
|
|
|
|
|
|
+ ifnull(c.sort,999) as itemSort,
|
|
|
|
|
+ ifnull(b.sort,999) as pointSort
|
|
|
from core_resumption_plan_to_point a
|
|
from core_resumption_plan_to_point a
|
|
|
LEFT JOIN core_resumption_rule_point b on a.point_id = b.id
|
|
LEFT JOIN core_resumption_rule_point b on a.point_id = b.id
|
|
|
LEFT JOIN core_resumption_rule_item c on b.item_id = c.id
|
|
LEFT JOIN core_resumption_rule_item c on b.item_id = c.id
|