update 标准选择弹框
This commit is contained in:
+12
-3
@@ -49,7 +49,7 @@
|
||||
|
||||
<select id="getManyStandardSelectionBox"
|
||||
resultType="com.jero.modules.laws.common.vo.ManyStandardSelectionBox">
|
||||
SELECT id, standard_number, standard_name, release_date, standard_state, source, create_time
|
||||
SELECT standard.id, standard.standard_number, standard.standard_name, standard.release_date, standard.standard_state, standard.source, standard.create_time
|
||||
FROM
|
||||
(SELECT id, standard_number, standard_name, release_date, standard_state, '1' AS source, create_time
|
||||
FROM laws_domestic_standard
|
||||
@@ -66,9 +66,18 @@
|
||||
SELECT id, standard_number, standard_name, release_date, standard_state, '3' AS source, create_time
|
||||
FROM laws_enterprise_standard
|
||||
WHERE del_flag = 0) standard
|
||||
<if test="vo.releaseSplitFlag != null and vo.releaseSplitFlag != ''">
|
||||
RIGHT JOIN sar_file_split_info split ON split.standard_id = standard.id
|
||||
</if>
|
||||
<where>
|
||||
<if test="vo.releaseSplitFlag != null and vo.releaseSplitFlag != ''">
|
||||
AND standard.id IS NOT NULL
|
||||
AND split.del_flag = 0
|
||||
AND split.publish_before_id IS NOT NULL AND split.publish_before_id != ''
|
||||
AND split.file_type IS NOT NULL AND split.file_type != ''
|
||||
</if>
|
||||
<if test="vo.source != null and vo.source != ''">
|
||||
AND source = #{vo.source}
|
||||
AND #{vo.source} LIKE CONCAT('%', standard.source, '%')
|
||||
</if>
|
||||
<if test="vo.standardNumberOrName != null and vo.standardNumberOrName != ''">
|
||||
AND (standard_number LIKE CONCAT('%', #{vo.standardNumberOrName}, '%') OR
|
||||
@@ -81,7 +90,7 @@
|
||||
AND standard_number NOT LIKE CONCAT('%', #{vo.excludeStandardNumbers}, '%')
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY create_time DESC
|
||||
ORDER BY standard.create_time DESC
|
||||
</select>
|
||||
<select id="getSingleStandard" resultType="com.jero.modules.laws.common.vo.ManyStandardSelectionBox">
|
||||
SELECT id, standard_number, standard_name, release_date, standard_state
|
||||
|
||||
+3
@@ -25,4 +25,7 @@ public class ManyStandardSelectionBoxVO {
|
||||
|
||||
@ApiModelProperty(value = "排除的标准号(多个则逗号分隔)")
|
||||
private java.lang.String excludeStandardNumbers;
|
||||
|
||||
@ApiModelProperty(value = "发布状态的拆分稿-标识")
|
||||
private String releaseSplitFlag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user