修改法规清单列表查询
This commit is contained in:
+6
-6
@@ -36,10 +36,10 @@
|
|||||||
select ms.*
|
select ms.*
|
||||||
from laws_market_standard ms
|
from laws_market_standard ms
|
||||||
JOIN (
|
JOIN (
|
||||||
SELECT manifest_no as manifest_no_max, min(id) AS min_id
|
SELECT min(id) AS min_id
|
||||||
FROM laws_market_standard where del_flag = 0
|
FROM laws_market_standard where del_flag = 0
|
||||||
GROUP BY manifest_no
|
GROUP BY version_flag
|
||||||
) ms1 on ms1.min_id = ms.id and ms1.manifest_no_max = ms.manifest_no
|
) ms1 on ms1.min_id = ms.id
|
||||||
left join sys_user as u on u.id = ms.author
|
left join sys_user as u on u.id = ms.author
|
||||||
${ew.customSqlSegment}
|
${ew.customSqlSegment}
|
||||||
</select>
|
</select>
|
||||||
@@ -48,10 +48,10 @@
|
|||||||
select ms.*
|
select ms.*
|
||||||
from laws_market_standard ms
|
from laws_market_standard ms
|
||||||
JOIN (
|
JOIN (
|
||||||
SELECT manifest_no as manifest_no_max, min(id) AS min_id
|
SELECT min(id) AS min_id
|
||||||
FROM laws_market_standard where del_flag = 0
|
FROM laws_market_standard where del_flag = 0
|
||||||
GROUP BY manifest_no
|
GROUP BY version_flag
|
||||||
) ms1 on ms1.min_id = ms.id and ms1.manifest_no_max = ms.manifest_no
|
) ms1 on ms1.min_id = ms.id
|
||||||
left join sys_user as u on u.id = ms.author
|
left join sys_user as u on u.id = ms.author
|
||||||
left join (
|
left join (
|
||||||
select pms.manifest_id from process_market_standard_release pms
|
select pms.manifest_id from process_market_standard_release pms
|
||||||
|
|||||||
Reference in New Issue
Block a user