add:政策资料详情

This commit is contained in:
wxyclub
2023-10-26 13:57:50 +08:00
parent 5b04a8ac44
commit 58b20a75b3
3 changed files with 157 additions and 26 deletions
@@ -31,13 +31,9 @@
<sql id="Base_Column_List">
ID,
FIRST_TYPE,
(select DIC_TYPE_NAME from ts_dictype where DIC_ID = (SELECT ID FROM `ts_dictionary` where DICTIONARY_CODE = "firstMaterialType") and DIC_TYPE_CODE = FIRST_TYPE) firstTypeName,
SECOND_TYPE,
(select DIC_TYPE_NAME from ts_dictype where DIC_ID = (SELECT ID FROM `ts_dictionary` where DICTIONARY_CODE = "secondMaterialType") and DIC_TYPE_CODE = SECOND_TYPE) secondTypeName,
THIRD_TYPE,
(select DIC_TYPE_NAME from ts_dictype where DIC_ID = (SELECT ID FROM `ts_dictionary` where DICTIONARY_CODE = "thirdMaterialType") and DIC_TYPE_CODE = THIRD_TYPE) thirdTypeName,
FOURTH_TYPE,
(select DIC_TYPE_NAME from ts_dictype where DIC_ID = (SELECT ID FROM `ts_dictionary` where DICTIONARY_CODE = "fourthMaterialType") and DIC_TYPE_CODE = FOURTH_TYPE) fourthTypeName,
`NAME`,
DEPARTMENT,AUTHOR,UPLOAD_TIME,
`DESCRIPTION`,INFORMATION_FILE,VIEWABLE_BY,
@@ -46,10 +42,10 @@
</sql>
<sql id="Base_Where_Clause">
<if test="firstType != null and firstType != ''">
and FIRST_TYPE = #{firstType}
and FIRST_TYPE like concat('%',#{firstType},'%')
</if>
<if test="secondType != null and secondType != ''">
and SECOND_TYPE = #{secondType}
and SECOND_TYPE like concat('%',#{secondType},'%')
</if>
<if test="name != null and name != ''">
and `NAME` like concat('%',#{name},'%')