diff --git a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml index df18e88..9ef9e35 100644 --- a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml @@ -107,7 +107,7 @@ - order by law_sort,planned_month+0 + order by isPoint desc delete @@ -177,6 +177,7 @@ + order by law_sort,planned_month+0 - - UPDATE b_enterprise_new a - INNER JOIN ( - SELECT - USC_CODE, - MAX_EXAMINE_END_TIME - FROM - ( SELECT ROW_NUMBER ( ) over ( PARTITION BY USC_CODE ORDER BY EXAMINE_END_TIME DESC ) rowId, USC_CODE, EXAMINE_END_TIME AS MAX_EXAMINE_END_TIME FROM sz_enfor_examine ) S - WHERE - rowId = 1 - ) c ON a.enterprise_id = c.USC_CODE - SET a.EXAMINE_END_TIME = c.MAX_EXAMINE_END_TIME - - - UPDATE b_plan_enterprise SET status = 1