add: 政策导入导出

This commit is contained in:
wxyclub
2023-10-30 09:12:32 +08:00
parent c342f88f2c
commit 40ded57e5b
30 changed files with 1564 additions and 243 deletions
@@ -26,9 +26,6 @@
<result column="REPORTER" property="reporter" />
<result column="REPORTING_UNIT" property="reportingUnit" />
<result column="AGENDA_CONTENT" property="agendaContent" />
<result column="VALID_FLAG" property="validFlag" />
<result column="CREATE_TIME" property="createTime" />
<result column="MODIFY_TIME" property="modifyTime" />
</collection>
</resultMap>
<sql id="Base_Column_List">
@@ -39,7 +36,7 @@
iom.ID,iom.MEETING_NAME,iom.TOPIC_NAME,iom.MEETING_ORGANIZER,iom.MEETING_TIME,iom.MEETING_ADDRESS,
iom.PARTICIPANTS,iom.MEETING_MINUTES,iom.MEETING_CONTENT,iom.FIRST_MEETING_TYPE,iom.SECOND_MEETING_TYPE,
mt.ID as mtId,mt.MEETING_ID,mt.AGENDA_NAME,mt.AGENDA_MATERIALS,mt.REPORTER,mt.REPORTING_UNIT,
mt.AGENDA_CONTENT,mt.VALID_FLAG,mt.CREATE_TIME,mt.MODIFY_TIME,
mt.AGENDA_CONTENT,
iom.VALID_FLAG,iom.CREATE_TIME,iom.MODIFY_TIME
</sql>
<sql id="Base_Where_Clause">
@@ -71,4 +71,12 @@
order by ${sortField} ${sortMode}
limit ${pager.startIndex-1},${pageSize}
</select>
<select id="getAllLawsInformation"
resultType="com.adc.da.slrs.sarLawsInformation.entity.SarLawsInformation">
select <include refid="Base_Column_List" />
from sar_laws_information
where VALID_FLAG = 0
<include refid="Base_Where_Clause" />
order by ID asc
</select>
</mapper>
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.adc.da.slrs.sarLawsTopic.dao.SarLawsTopicMapper">
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarLawsTopic.entity.SarLawsTopic">
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarLawsTopic.entity.SarLawsTopicVO">
<id property="id" column="ID" jdbcType="VARCHAR"/>
<result property="topicName" column="TOPIC_NAME" jdbcType="VARCHAR"/>
<result property="organizer" column="ORGANIZER" jdbcType="VARCHAR"/>
@@ -205,4 +205,26 @@
order by slt.${sortField} ${sortMode}
limit ${pager.startIndex-1},${pageSize}
</select>
<select id="getLawsTopicByIds" resultMap="BaseResultMap">
select <include refid="Base_Join_Column_List" />
from sar_laws_topic slt left join sar_laws_topic_meeting sltm on slt.ID = sltm.LAWS_TOPIC_ID
left join sar_laws_contact_information slci1 on slt.ID = slci1.LAWS_TOPIC_ID and slci1.GROUP_TYPE = 'topicGroup'
left join sar_laws_contact_information slci2 on slt.ID = slci2.LAWS_TOPIC_ID and slci2.GROUP_TYPE = 'inside'
where slt.VALID_FLAG = 0 and slt.ID in
<foreach collection="idList" open="(" close=")" separator="," item="id">
#{id}
</foreach>
order by slt.ID asc
</select>
<select id="getAllLawsTopic" resultMap="BaseResultMap">
select <include refid="Base_Join_Column_List" />
from sar_laws_topic slt left join sar_laws_topic_meeting sltm on slt.ID = sltm.LAWS_TOPIC_ID
left join sar_laws_contact_information slci1 on slt.ID = slci1.LAWS_TOPIC_ID and slci1.GROUP_TYPE = 'topicGroup'
left join sar_laws_contact_information slci2 on slt.ID = slci2.LAWS_TOPIC_ID and slci2.GROUP_TYPE = 'inside'
where slt.VALID_FLAG = 0
<include refid="Base_Where_Clause"/>
<include refid="TopicMeeting_where" />
<include refid="ContactInformation_where" />
order by slt.ID asc
</select>
</mapper>
@@ -14,6 +14,11 @@
</collection>
</resultMap>
<resultMap id="codeAndName" type="com.adc.da.slrs.tsDictionaryType.entity.TsDicType">
<result property="dicTypeCode" column="dicTypeCode"/>
<result property="dicTypeName" column="dicTypeName"/>
</resultMap>
<select id="getSearchMenu" resultMap="searchMenu">
select t_d.ID as id,
t_d.DICTIONARY_CODE as dictionary_code,
@@ -31,4 +36,8 @@
<select id="selectDicTypeNameByDicCode" resultType="java.lang.String">
select DIC_TYPE_NAME from ts_dictype where DIC_TYPE_CODE = #{typeCode}
</select>
<select id="selectAllDicTypeNameByDicCode" resultMap="codeAndName">
select DIC_TYPE_CODE as dicTypeCode, DIC_TYPE_NAME as dicTypeName from ts_dictype
where DIC_ID = (select id from ts_dictionary where DICTIONARY_CODE = #{dicCode})
</select>
</mapper>