feat: 迁移国内标准法规部分6 详情 下载 标准查询

This commit is contained in:
super_liu
2021-06-05 01:07:57 +08:00
parent 7ae47063b4
commit b8dc259f15
45 changed files with 3323 additions and 25 deletions
@@ -0,0 +1,63 @@
<?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.sarLawsAttrInfo.dao.SarLawsAttrInfoDao">
<!-- Result Map-->
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarLawsAttrInfo.entity.SarLawsAttrInfo" >
<id column="id" property="id" />
<result column="laws_id" property="lawsId" />
<result column="creation_user" property="creationUser" />
<result column="valid_flag" property="validFlag" />
<result column="creation_time" property="creationTime" />
<result column="modify_time" property="modifyTime" />
</resultMap>
<!-- SAR_LAWS_ATTR_INFO table all fields -->
<sql id="Base_Column_List" >
id, laws_id, creation_user, valid_flag, creation_time, modify_time
</sql>
<!-- 查询条件 -->
<sql id="Base_Where_Clause">
where 1=1
<trim suffixOverrides="," >
<if test="id != null" >
and id ${idOperator} #{id}
</if>
<if test="lawsId != null" >
and laws_id ${lawsIdOperator} #{lawsId}
</if>
<if test="creationUser != null" >
and creation_user ${creationUserOperator} #{creationUser}
</if>
<if test="validFlag != null" >
and valid_flag ${validFlagOperator} #{validFlag}
</if>
<if test="creationTime != null" >
and creation_time ${creationTimeOperator} #{creationTime}
</if>
<if test="creationTime1 != null" >
and creation_time &gt;= #{creationTime1}
</if>
<if test="creationTime2 != null" >
and creation_time &lt;= #{creationTime2}
</if>
<if test="modifyTime != null" >
and modify_time ${modifyTimeOperator} #{modifyTime}
</if>
<if test="modifyTime1 != null" >
and modify_time &gt;= #{modifyTime1}
</if>
<if test="modifyTime2 != null" >
and modify_time &lt;= #{modifyTime2}
</if>
</trim>
</sql>
<!-- 查询字段及对应数据-->
<select id="selectLawsFieldAndData" resultType="Map">
SELECT ${fieldInfo}
FROM SAR_LAWS_ATTR_INFO
WHERE valid_flag=0 and laws_id = #{standId}
</select>
</mapper>