add:政策资料查询添加字段

This commit is contained in:
wxyclub
2023-10-25 10:35:49 +08:00
parent af2e36dd77
commit f4fcf80382
7 changed files with 72 additions and 2 deletions
@@ -7,9 +7,13 @@
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarLawsInformation.entity.SarLawsInformation">
<id property="id" column="ID" jdbcType="VARCHAR"/>
<result property="firstType" column="FIRST_TYPE" jdbcType="VARCHAR"/>
<result property="firstTypeName" column="firstTypeName" jdbcType="VARCHAR"/>
<result property="secondType" column="SECOND_TYPE" jdbcType="VARCHAR"/>
<result property="secondTypeName" column="secondTypeName" jdbcType="VARCHAR"/>
<result property="thirdType" column="THIRD_TYPE" jdbcType="VARCHAR"/>
<result property="thirdTypeName" column="thirdTypeName" jdbcType="VARCHAR"/>
<result property="fourthType" column="FOURTH_TYPE" jdbcType="VARCHAR"/>
<result property="fourthTypeName" column="fourthTypeName" jdbcType="VARCHAR"/>
<result property="name" column="NAME" jdbcType="VARCHAR"/>
<result property="department" column="DEPARTMENT" jdbcType="VARCHAR"/>
<result property="author" column="AUTHOR" jdbcType="VARCHAR"/>
@@ -25,8 +29,16 @@
</resultMap>
<sql id="Base_Column_List">
ID,FIRST_TYPE,SECOND_TYPE,
THIRD_TYPE,FOURTH_TYPE,`NAME`,
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,
DOWNLOADABLE_BY,VALID_FLAG,CREATE_TIME,
@@ -28,4 +28,7 @@
t_d_t.DIC_TYPE_NAME is not null and
t_d.DICTIONARY_NAME is not null
</select>
<select id="selectDicTypeNameByDicCode" resultType="java.lang.String">
select DIC_TYPE_NAME from ts_dictype where DIC_TYPE_CODE = #{typeCode}
</select>
</mapper>