add:政策资料中心模块

This commit is contained in:
wxyclub
2023-10-23 16:26:33 +08:00
parent 8c5b776778
commit bdcf7fabce
14 changed files with 784 additions and 2 deletions
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.adc.da.slrs.sarLawsInformation.dao.SarLawsInformationDao">
<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="secondType" column="SECOND_TYPE" jdbcType="VARCHAR"/>
<result property="thirdType" column="THIRD_TYPE" jdbcType="VARCHAR"/>
<result property="fourthType" column="FOURTH_TYPE" jdbcType="VARCHAR"/>
<result property="name" column="NAME" jdbcType="VARCHAR"/>
<result property="department" column="DEPARTMENT" jdbcType="VARCHAR"/>
<result property="author" column="AUTHOR" jdbcType="VARCHAR"/>
<result property="uploadTime" column="UPLOAD_TIME" jdbcType="TIMESTAMP"/>
<result property="description" column="DESCRIPTION" jdbcType="VARCHAR"/>
<result property="informationFile" column="INFORMATION_FILE" jdbcType="VARCHAR"/>
<result property="viewableBy" column="VIEWABLE_BY" jdbcType="VARCHAR"/>
<result property="downloadableBy" column="DOWNLOADABLE_BY" jdbcType="VARCHAR"/>
<result property="treeNodeId" column="TREE_NODE_ID" jdbcType="VARCHAR"/>
<result property="viewableBy" column="VALID_FLAG" jdbcType="TINYINT"/>
<result property="createTime" column="CREATE_TIME" jdbcType="TIMESTAMP"/>
<result property="modifyTime" column="MODIFY_TIME" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
ID,FIRST_TYPE,SECOND_TYPE,
THIRD_TYPE,FOURTH_TYPE,`NAME`,
DEPARTMENT,AUTHOR,UPLOAD_TIME,
`DESCRIPTION`,INFORMATION_FILE,VIEWABLE_BY,
DOWNLOADABLE_BY,VALID_FLAG,CREATE_TIME,
MODIFY_TIME
</sql>
<sql id="Base_Where_Clause">
<if test="firstType != null and firstType != ''">
and FIRST_TYPE = #{firstType}
</if>
<if test="secondType != null and secondType != ''">
and SECOND_TYPE = #{secondType}
</if>
<if test="name != null and name != ''">
and `NAME` like concat('%',#{name},'%')
</if>
<if test="uploadTime != null">
and UPLOAD_TIME = #{uploadTime}
</if>
<if test="treeNodeId != null and treeNodeId != ''">
and TREE_NODE_ID = #{treeNodeId}
</if>
</sql>
<select id="queryByPageCount" resultType="java.lang.Integer">
select count(1)
from sar_laws_information
where VALID_FLAG = 0
<include refid="Base_Where_Clause" />
</select>
<select id="queryByPage" 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 ${sortField} ${sortMode}
limit ${pager.startIndex-1},${pageSize}
</select>
</mapper>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.adc.da.slrs.sarLawsInformationCenterTree.dao.SarLawsInformationCenterTreeDao">
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarLawsInformationCenterTree.entity.SarLawsInformationCenterTree">
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="pId" column="p_id" jdbcType="VARCHAR"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="sort" column="sort" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
id,p_id,`name`,
sort
</sql>
</mapper>