fix(征求意见流程): 80050
This commit is contained in:
+8
-3
@@ -49,6 +49,7 @@
|
|||||||
|
|
||||||
<select id="getManyStandardSelectionBox"
|
<select id="getManyStandardSelectionBox"
|
||||||
resultType="com.jero.modules.laws.common.vo.ManyStandardSelectionBox">
|
resultType="com.jero.modules.laws.common.vo.ManyStandardSelectionBox">
|
||||||
|
select * from (
|
||||||
SELECT standard.id, standard.standard_number, standard.standard_name, standard.release_date, standard.standard_state, standard.source, standard.create_time
|
SELECT standard.id, standard.standard_number, standard.standard_name, standard.release_date, standard.standard_state, standard.source, standard.create_time
|
||||||
FROM
|
FROM
|
||||||
(SELECT id, standard_number, standard_name, release_date, standard_state, '1' AS source, create_time
|
(SELECT id, standard_number, standard_name, release_date, standard_state, '1' AS source, create_time
|
||||||
@@ -73,8 +74,8 @@
|
|||||||
<if test="vo.releaseSplitFlag != null and vo.releaseSplitFlag != ''">
|
<if test="vo.releaseSplitFlag != null and vo.releaseSplitFlag != ''">
|
||||||
AND standard.id IS NOT NULL
|
AND standard.id IS NOT NULL
|
||||||
AND split.del_flag = 0
|
AND split.del_flag = 0
|
||||||
AND split.publish_before_id IS NOT NULL AND split.publish_before_id != ''
|
AND split.publish_before_id IS NULL
|
||||||
AND split.file_type IS NOT NULL AND split.file_type != ''
|
AND split.split_status = '2'
|
||||||
</if>
|
</if>
|
||||||
<if test="vo.source != null and vo.source != ''">
|
<if test="vo.source != null and vo.source != ''">
|
||||||
AND standard.source LIKE CONCAT('%', #{vo.source}, '%')
|
AND standard.source LIKE CONCAT('%', #{vo.source}, '%')
|
||||||
@@ -96,7 +97,11 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY standard.create_time DESC
|
<if test="vo.releaseSplitFlag != null and vo.releaseSplitFlag != ''">
|
||||||
|
GROUP BY id
|
||||||
|
</if>
|
||||||
|
) t
|
||||||
|
ORDER BY create_time DESC
|
||||||
</select>
|
</select>
|
||||||
<select id="getSingleStandard" resultType="com.jero.modules.laws.common.vo.ManyStandardSelectionBox">
|
<select id="getSingleStandard" resultType="com.jero.modules.laws.common.vo.ManyStandardSelectionBox">
|
||||||
SELECT id, standard_number, standard_name, release_date, standard_state
|
SELECT id, standard_number, standard_name, release_date, standard_state
|
||||||
|
|||||||
Reference in New Issue
Block a user