feat: 迁移国内标准法规部分6 详情 下载 标准查询
This commit is contained in:
@@ -594,6 +594,8 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="selectSvppsByStandId" parameterType="java.lang.String" resultType="java.lang.String">
|
||||
select svpps from SAR_STAND_ITEMS
|
||||
where valid_flag=0 and svpps != ''
|
||||
|
||||
+63
@@ -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 >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{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>
|
||||
@@ -2,4 +2,286 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.sarLawsInfo.dao.SarLawsInfoDao">
|
||||
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarLawsInfo.entity.SarLawsInfo">
|
||||
<id column="id" property="id"/>
|
||||
<result column="modify_time" property="modifyTime"/>
|
||||
<result column="creation_time" property="creationTime"/>
|
||||
<result column="valid_flag" property="validFlag"/>
|
||||
<result column="creation_user" property="creationUser"/>
|
||||
<result column="replace_laws_num" property="replaceLawsNum"/>
|
||||
<result column="replaced_laws_num" property="replacedLawsNum"/>
|
||||
<result column="put_time" property="putTime"/>
|
||||
<result column="issue_time" property="issueTime"/>
|
||||
<result column="laws_state" property="lawsState"/>
|
||||
<result column="laws_name" property="lawsName"/>
|
||||
<result column="laws_number" property="lawsNumber"/>
|
||||
<result column="laws_property" property="lawsProperty"/>
|
||||
<result column="country" property="country"/>
|
||||
<result column="laws_type" property="lawsType"/>
|
||||
<result column="propertyName" property="propertyName"/>
|
||||
<result column="stateName" property="stateName"/>
|
||||
<result column="countryName" property="countryName"/>
|
||||
<result column="laws_en_name" property="lawsEnName"/>
|
||||
<result column="synopsis" property="synopsis"/>
|
||||
<result column="cite_stand" property="citeStand"/>
|
||||
<result column="cited_stand" property="citedStand"/>
|
||||
<result column="is_relate_access" property="isRelateAccess" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="BaseResultMapExcel" type="com.adc.da.slrs.sarLawsInfo.entity.SarLawsInfo">
|
||||
<result column="replace_laws_num" property="replaceLawsNum"/>
|
||||
<result column="replaced_laws_num" property="replacedLawsNum"/>
|
||||
<result column="put_time" property="putTime"/>
|
||||
<result column="issue_time" property="issueTime"/>
|
||||
<result column="laws_name" property="lawsName"/>
|
||||
<result column="laws_number" property="lawsNumber"/>
|
||||
<result column="propertyName" property="propertyName"/>
|
||||
<result column="stateName" property="stateName"/>
|
||||
<result column="countryName" property="countryName"/>
|
||||
<result column="synopsis" property="synopsis"/>
|
||||
<result column="laws_en_name" property="lawsEnName"/>
|
||||
<result column="is_relate_access" property="isRelateAccess" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_LAWS_INFO table all fields -->
|
||||
<sql id="Base_Column_List">
|
||||
concat(synopsis, '') as synopsis,laws_en_name,modify_time, creation_time, valid_flag, creation_user,replace_laws_num,replaced_laws_num,
|
||||
put_time, issue_time, laws_state, laws_name, laws_number, laws_property, country, laws_type, id,cite_stand,cited_stand,is_relate_access
|
||||
</sql>
|
||||
|
||||
<sql id="Group_Column_List_Query">
|
||||
SAR_LAWS_INFO.laws_en_name,concat(synopsis, '') as synopsis,SAR_LAWS_INFO.modify_time,
|
||||
SAR_LAWS_INFO.creation_time, SAR_LAWS_INFO.valid_flag, SAR_LAWS_INFO.creation_user,
|
||||
SAR_LAWS_INFO.replaced_laws_num, SAR_LAWS_INFO.put_time, SAR_LAWS_INFO.issue_time, SAR_LAWS_INFO.laws_state,
|
||||
SAR_LAWS_INFO.laws_name, SAR_LAWS_INFO.laws_number, SAR_LAWS_INFO.laws_property,SAR_LAWS_INFO.replace_laws_num,
|
||||
SAR_LAWS_INFO.country, SAR_LAWS_INFO.laws_type, SAR_LAWS_INFO.id,SAR_LAWS_INFO.cite_stand,SAR_LAWS_INFO.cited_stand,SAR_LAWS_INFO.is_relate_access
|
||||
</sql>
|
||||
|
||||
<sql id="Group_Column_List">
|
||||
SAR_LAWS_INFO.laws_en_name,concat(synopsis, ''),SAR_LAWS_INFO.modify_time,
|
||||
SAR_LAWS_INFO.creation_time, SAR_LAWS_INFO.valid_flag, SAR_LAWS_INFO.creation_user,SAR_LAWS_INFO.replace_laws_num,
|
||||
SAR_LAWS_INFO.replaced_laws_num, SAR_LAWS_INFO.put_time, SAR_LAWS_INFO.issue_time, SAR_LAWS_INFO.laws_state,
|
||||
SAR_LAWS_INFO.laws_name, SAR_LAWS_INFO.laws_number, SAR_LAWS_INFO.laws_property,
|
||||
SAR_LAWS_INFO.country, SAR_LAWS_INFO.laws_type, SAR_LAWS_INFO.id,SAR_LAWS_INFO.cite_stand,SAR_LAWS_INFO.cited_stand,SAR_LAWS_INFO.is_relate_access
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides=",">
|
||||
<if test="synopsis != null">
|
||||
and synopsis like concat(concat('%',#{synopsis}),'%')
|
||||
</if>
|
||||
<if test="lawsEnName != null">
|
||||
and laws_en_name like concat(concat('%',#{lawsEnName}),'%')
|
||||
</if>
|
||||
<if test="modifyTime != null">
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null">
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null">
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="creationTime != null">
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null">
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null">
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="validFlag != null">
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationUser != null">
|
||||
and creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<!--需求变动 特此修改(byl)-->
|
||||
<if test="replaceLawsNum != null">
|
||||
and replace_laws_num ${replaceLawsNumOperator} concat(concat('%',#{replaceLawsNum}),'%')
|
||||
</if>
|
||||
<if test="replacedLawsNum != null">
|
||||
and replaced_laws_num ${replaceLawsNumOperator} concat(concat('%',#{replacedLawsNum}),'%')
|
||||
</if>
|
||||
<if test="putTime != null">
|
||||
and put_time ${putTimeOperator} #{putTime}
|
||||
</if>
|
||||
<if test="putTime1 != null">
|
||||
and put_time >= #{putTime1}
|
||||
</if>
|
||||
<if test="putTime2 != null">
|
||||
and put_time <= #{putTime2}
|
||||
</if>
|
||||
<if test="lawsState != null">
|
||||
and laws_state ${lawsStateOperator} #{lawsState}
|
||||
</if>
|
||||
<if test="lawsName != null">
|
||||
and laws_name ${lawsNameOperator} concat(concat('%',#{lawsName}),'%')
|
||||
</if>
|
||||
<if test="lawsNumber != null">
|
||||
<if test="lawsNumberOperator == '='.toString()">
|
||||
and laws_number ${lawsNumberOperator} #{lawsNumber}
|
||||
</if>
|
||||
<if test="lawsNumberOperator == 'like'.toString()">
|
||||
and laws_number ${lawsNumberOperator} concat(concat('%',#{lawsNumber}),'%')
|
||||
</if>
|
||||
</if>
|
||||
<if test="lawsProperty != null">
|
||||
and laws_property ${lawsPropertyOperator} #{lawsProperty}
|
||||
</if>
|
||||
<if test="country != null">
|
||||
and country ${countryOperator} #{country}
|
||||
</if>
|
||||
<if test="lawsType != null">
|
||||
and laws_type ${lawsTypeOperator} #{lawsType}
|
||||
</if>
|
||||
<if test="id != null">
|
||||
and SAR_LAWS_INFO.id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="numberName != null">
|
||||
and (laws_number ${lawsNumberOperator} concat(concat('%',#{numberName}),'%')
|
||||
or laws_name ${lawsNameOperator} concat(concat('%',#{numberName}),'%'))
|
||||
</if>
|
||||
<if test="isRelateAccess != null" >
|
||||
and is_relate_access = #{isRelateAccess}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<sql id="Second_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides=",">
|
||||
<if test="isRelateAccess != null" >
|
||||
and is_relate_access = #{isRelateAccess}
|
||||
</if>
|
||||
<if test="modifyTime != null">
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null">
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null">
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="creationTime != null">
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null">
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null">
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="validFlag != null">
|
||||
and valid_flag = #{validFlag}
|
||||
</if>
|
||||
<if test="creationUser != null">
|
||||
and creation_user = #{creationUser}
|
||||
</if>
|
||||
<if test="replaceLawsNum != null">
|
||||
and replace_laws_num = #{replaceLawsNum}
|
||||
</if>
|
||||
<if test="putTime != null">
|
||||
and put_time ${putTimeOperator} #{putTime}
|
||||
</if>
|
||||
<if test="lawsState != null">
|
||||
and laws_state = #{lawsState}
|
||||
</if>
|
||||
<if test="lawsName != null">
|
||||
and laws_name = #{lawsName}
|
||||
</if>
|
||||
<if test="lawsNumber != null">
|
||||
and laws_number = #{lawsNumber}
|
||||
</if>
|
||||
<if test="lawsProperty != null">
|
||||
and laws_property = #{lawsProperty}
|
||||
</if>
|
||||
<if test="country != null">
|
||||
and country = #{country}
|
||||
</if>
|
||||
<if test="lawsType != null">
|
||||
and laws_type = #{lawsType}
|
||||
</if>
|
||||
<if test="id != null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<sql id="Laws_Where_Clause">
|
||||
left join SAR_LAWS_MENU on SAR_LAWS_INFO.id = SAR_LAWS_MENU.LAWS_ID
|
||||
left join SAR_MENU on SAR_LAWS_MENU.MENU_ID = SAR_MENU.id
|
||||
left join SAR_LAWS_ATTR_INFO on (SAR_LAWS_ATTR_INFO.LAWS_ID = SAR_LAWS_INFO.id and SAR_LAWS_ATTR_INFO.valid_flag=0)
|
||||
left join TS_DICTYPE dic1 on (SAR_LAWS_INFO.laws_property = dic1.dic_type_code AND dic1.VALID_FLAG = 0)
|
||||
left join TS_DICTYPE dic2 on (SAR_LAWS_INFO.laws_state = dic2.dic_type_code AND dic2.VALID_FLAG = 0)
|
||||
<include refid="Base_Where_Clause"/>
|
||||
and SAR_LAWS_INFO.valid_flag = 0
|
||||
<if test="menuId != null and menuId != ''">
|
||||
and SAR_MENU.id in
|
||||
<foreach collection="menuIdList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<!-- 新修改需求,根据角色查询有权限的菜单数据-->
|
||||
<if test="menuRoleList != null">
|
||||
and (SAR_LAWS_MENU.MENU_ID in
|
||||
<foreach collection="menuRoleList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
or (SAR_LAWS_INFO.ID not in (select SAR_LAWS_MENU.LAWS_ID from SAR_LAWS_MENU where SAR_LAWS_INFO.ID = SAR_LAWS_MENU.LAWS_ID and SAR_LAWS_MENU.VALID_FLAG = 0))
|
||||
)
|
||||
</if>
|
||||
<if test="menuRoleList == null and idlist == null">
|
||||
and SAR_LAWS_INFO.ID not in (select SAR_LAWS_MENU.LAWS_ID from SAR_LAWS_MENU where SAR_LAWS_INFO.ID = SAR_LAWS_MENU.LAWS_ID and SAR_LAWS_MENU.VALID_FLAG = 0)
|
||||
</if>
|
||||
<if test="collectMenuId != null">
|
||||
and SAR_LAWS_INFO.id in (
|
||||
select COLLECT_RES_ID from TS_PERSON_COLLECT where TS_PERSON_COLLECT.VALID_FLAG=0
|
||||
and collect_type='FOREIGN_LAWS'
|
||||
and TS_PERSON_COLLECT.user_id=#{userId}
|
||||
)
|
||||
</if>
|
||||
<if test='labelMenuId != null and labelMenuId == "gxhbq"'>
|
||||
and SAR_LAWS_ATTR_INFO.GXHBQ is not null
|
||||
</if>
|
||||
<if test='labelMenuId != null and labelMenuId != "gxhbq"'>
|
||||
and SAR_LAWS_ATTR_INFO.GXHBQ like concat(concat('%',#{labelMenuId}),'%')
|
||||
</if>
|
||||
<if test="advanceSearchStr != null">
|
||||
and (${advanceSearchStr})
|
||||
</if>
|
||||
<if test="idlist != null">
|
||||
and SAR_LAWS_INFO.id in
|
||||
<foreach collection="idlist" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<!-- 查询SAR_LAWS_INFO列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select<include refid="Base_Column_List"/>
|
||||
,propertyName,stateName
|
||||
from
|
||||
(select tmp_tb.* from
|
||||
(select <include refid="Group_Column_List_Query"/>,dic1.dic_type_name as propertyName,dic2.dic_type_name as stateName
|
||||
from SAR_LAWS_INFO
|
||||
<include refid="Laws_Where_Clause"/>
|
||||
GROUP BY <include refid="Group_Column_List"/>,dic1.dic_type_name,dic2.dic_type_name,SAR_LAWS_ATTR_INFO.XCXSSRQ
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''">
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<!-- SAR_LAWS_INFO 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from (select SAR_LAWS_INFO.ID from SAR_LAWS_INFO
|
||||
<include refid="Laws_Where_Clause"/>
|
||||
GROUP BY SAR_LAWS_INFO.ID) a
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -0,0 +1,267 @@
|
||||
<?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.sarLawsItems.dao.SarLawsItemsDao">
|
||||
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarLawsItems.entity.SarLawsItems">
|
||||
<id column="id" property="id"/>
|
||||
<result column="modify_time" property="modifyTime"/>
|
||||
<result column="creation_time" property="creationTime"/>
|
||||
<result column="creation_user" property="creationUser"/>
|
||||
<result column="valid_flag" property="validFlag"/>
|
||||
<result column="remarks" property="remarks"/>
|
||||
<result column="responsible_unit" property="responsibleUnit"/>
|
||||
<result column="energy_kind" property="energyKind"/>
|
||||
<result column="apply_arctic" property="applyArctic"/>
|
||||
<result column="tack_time" property="tackTime"/>
|
||||
<result column="parts" property="parts"/>
|
||||
<result column="items_name" property="itemsName"/>
|
||||
<result column="items_num" property="itemsNum"/>
|
||||
<result column="laws_id" property="lawsId"/>
|
||||
<result column="applyArcticShow" property="applyArcticShow"/>
|
||||
<result column="energyKindShow" property="energyKindShow"/>
|
||||
<result column="responsibleUnitShow" property="responsibleUnitShow"/>
|
||||
<result column="MAINPOINTS_IMPEMENTATION" property="mainPointImplementation"/>
|
||||
<result column="TERMS_CONDITIONS" property="termsConditions"/>
|
||||
<result column="fo" property="fo" />
|
||||
<result column="duty_engineer" property="dutyEngineer" />
|
||||
<result column="svpps" property="svpps" />
|
||||
<result column="claim_type" property="claimType" />
|
||||
<result column="bus_stand_cover" property="busStandCover" />
|
||||
<result column="file_type" property="fileType" />
|
||||
<result column="claimTypeShow" property="claimTypeShow" />
|
||||
<result column="dutyEngineerShow" property="dutyEngineerShow" />
|
||||
<result column="responsibleUnitShow" property="responsibleUnitShow" />
|
||||
<result column="foShow" property="foShow"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_LAWS_ITEMS table all fields -->
|
||||
<sql id="Base_Column_List">
|
||||
SAR_LAWS_ITEMS.modify_time, SAR_LAWS_ITEMS.creation_time, SAR_LAWS_ITEMS.creation_user, SAR_LAWS_ITEMS.valid_flag, SAR_LAWS_ITEMS.remarks, responsible_unit, energy_kind, apply_arctic, tack_time, parts, items_name, items_num, SAR_LAWS_ITEMS.laws_id,SAR_LAWS_ITEMS.id,SAR_LAWS_ITEMS.MAINPOINTS_IMPEMENTATION,SAR_LAWS_ITEMS.TERMS_CONDITIONS,
|
||||
tsFo.UNAME as foShow,SAR_LAWS_ITEMS.duty_engineer,SAR_LAWS_ITEMS.svpps,SAR_LAWS_ITEMS.fo,
|
||||
SAR_LAWS_ITEMS.claim_type,SAR_LAWS_ITEMS.bus_stand_cover,SAR_LAWS_ITEMS.file_type,dicClaimType.DIC_TYPE_NAME as claimTypeShow,tsdutyEngineer.UNAME as dutyEngineerShow
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Query_Column_List">
|
||||
SAR_LAWS_ITEMS.modify_time, SAR_LAWS_ITEMS.creation_time, SAR_LAWS_ITEMS.creation_user, SAR_LAWS_ITEMS.valid_flag,
|
||||
SAR_LAWS_ITEMS.remarks, responsible_unit, energy_kind, apply_arctic, tack_time, parts, items_name, items_num,
|
||||
SAR_LAWS_ITEMS.laws_id,SAR_LAWS_ITEMS.id,SAR_LAWS_ITEMS.MAINPOINTS_IMPEMENTATION,SAR_LAWS_ITEMS.TERMS_CONDITIONS,
|
||||
SAR_LAWS_ITEMS.duty_engineer,SAR_LAWS_ITEMS.svpps,SAR_LAWS_ITEMS.claim_type,SAR_LAWS_ITEMS.bus_stand_cover,
|
||||
SAR_LAWS_ITEMS.file_type
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
left join TS_DICTYPE dicClaimType on (dicClaimType.dic_type_code = SAR_LAWS_ITEMS.claim_type and dicClaimType.dic_id is
|
||||
not null and dicClaimType.valid_flag = 0)
|
||||
left join TS_USER tsdutyEngineer on (tsdutyEngineer.USID = SAR_LAWS_ITEMS.duty_engineer and tsdutyEngineer.valid_flag=0
|
||||
and tsdutyEngineer.DISABLE_FLAG=0)
|
||||
left join TS_USER tsFo on (tsFo.USID = SAR_LAWS_ITEMS.fo and tsFo.valid_flag=0
|
||||
and tsFo.DISABLE_FLAG=0)
|
||||
where 1=1
|
||||
<trim suffixOverrides=",">
|
||||
<if test="fileType != null" >
|
||||
and SAR_LAWS_ITEMS.file_type = #{fileType}
|
||||
</if>
|
||||
<if test="modifyTime != null">
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null">
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null">
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="creationTime != null">
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null">
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null">
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="creationUser != null">
|
||||
and creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="validFlag != null">
|
||||
and SAR_LAWS_ITEMS.valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="remarks != null">
|
||||
and SAR_LAWS_ITEMS.remarks ${remarksOperator} #{remarks}
|
||||
</if>
|
||||
<if test="responsibleUnit != null">
|
||||
and SAR_LAWS_ITEMS.responsible_unit = #{responsibleUnit}
|
||||
</if>
|
||||
<if test="energyKind != null">
|
||||
and energy_kind ${energyKindOperator} #{energyKind}
|
||||
</if>
|
||||
<if test="applyArctic != null">
|
||||
and apply_arctic ${applyArcticOperator} #{applyArctic}
|
||||
</if>
|
||||
<if test="tackTime != null">
|
||||
and tack_time ${tackTimeOperator} #{tackTime}
|
||||
</if>
|
||||
<if test="tackTime1 != null">
|
||||
and tack_time >= #{tackTime1}
|
||||
</if>
|
||||
<if test="tackTime2 != null">
|
||||
and tack_time <= #{tackTime2}
|
||||
</if>
|
||||
<if test="parts != null">
|
||||
and SAR_LAWS_ITEMS.parts like concat(concat('%', #{parts}),'%')
|
||||
</if>
|
||||
<if test="nameOrRequest != null" >
|
||||
and (SAR_LAWS_ITEMS.items_name like concat(concat('%', #{nameOrRequest}),'%') or SAR_LAWS_ITEMS.TERMS_CONDITIONS like concat(concat('%', #{nameOrRequest}),'%'))
|
||||
</if>
|
||||
<if test="itemsName != null">
|
||||
and items_name ${itemsNameOperator} #{itemsName}
|
||||
</if>
|
||||
<if test="itemsNum != null">
|
||||
and items_num ${itemsNumOperator} #{itemsNum}
|
||||
</if>
|
||||
<if test="lawsId != null">
|
||||
and laws_id ${lawsIdOperator} #{lawsId}
|
||||
</if>
|
||||
<if test="id != null">
|
||||
and SAR_LAWS_ITEMS.id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="idlist != null">
|
||||
and SAR_LAWS_ITEMS.id in
|
||||
<foreach collection="idlist" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="lawsId != null">
|
||||
and SAR_LAWS_ITEMS.LAWS_ID = #{lawsId}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
<sql id="Second_Where_Clause">
|
||||
left join TS_DICTYPE dicClaimType on (dicClaimType.dic_type_code = SAR_LAWS_ITEMS.claim_type and dicClaimType.dic_id is
|
||||
not null and dicClaimType.valid_flag = 0)
|
||||
left join TS_USER tsdutyEngineer on (tsdutyEngineer.USID = SAR_LAWS_ITEMS.duty_engineer and tsdutyEngineer.valid_flag=0
|
||||
and tsdutyEngineer.DISABLE_FLAG=0)
|
||||
where 1=1
|
||||
<trim suffixOverrides=",">
|
||||
<if test="fileType != null" >
|
||||
and SAR_LAWS_ITEMS.file_type = #{fileType}
|
||||
</if>
|
||||
<if test="modifyTime != null">
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null">
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null">
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="creationTime != null">
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null">
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null">
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="creationUser != null">
|
||||
and creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="validFlag != null">
|
||||
and SAR_LAWS_ITEMS.valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="remarks != null">
|
||||
and remarks ${remarksOperator} #{remarks}
|
||||
</if>
|
||||
<if test="responsibleUnit != null">
|
||||
and responsible_unit = #{responsibleUnit}
|
||||
</if>
|
||||
<if test="energyKind != null">
|
||||
and energy_kind ${energyKindOperator} #{energyKind}
|
||||
</if>
|
||||
<if test="applyArctic != null">
|
||||
and apply_arctic ${applyArcticOperator} #{applyArctic}
|
||||
</if>
|
||||
<if test="tackTime != null">
|
||||
and tack_time ${tackTimeOperator} #{tackTime}
|
||||
</if>
|
||||
<if test="tackTime1 != null">
|
||||
and tack_time >= #{tackTime1}
|
||||
</if>
|
||||
<if test="tackTime2 != null">
|
||||
and tack_time <= #{tackTime2}
|
||||
</if>
|
||||
<if test="parts != null">
|
||||
and parts ${partsOperator} #{parts}
|
||||
</if>
|
||||
<if test="itemsName != null">
|
||||
and items_name ${itemsNameOperator} #{itemsName}
|
||||
</if>
|
||||
<if test="itemsNum != null">
|
||||
and items_num ${itemsNumOperator} #{itemsNum}
|
||||
</if>
|
||||
<if test="lawsId != null">
|
||||
and laws_id ${lawsIdOperator} #{lawsId}
|
||||
</if>
|
||||
<if test="id != null">
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test='proType != null and proType == "process"' >
|
||||
and (SAR_LAWS_ITEMS.claim_type='L7N7EEDAPR' or SAR_LAWS_ITEMS.claim_type='RENVECPFGT')
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select SAR_LAWS_ITEMS.*,
|
||||
(
|
||||
SELECT
|
||||
group_concat(TS_DICTYPE.DIC_TYPE_NAME ORDER BY SAR_LAWS_ITEM_VAL.PROPERTY_TYPE separator ',')
|
||||
FROM
|
||||
SAR_LAWS_ITEM_VAL left join TS_DICTYPE on (TS_DICTYPE.DIC_TYPE_CODE = SAR_LAWS_ITEM_VAL.PROPERTY_VAL and
|
||||
TS_DICTYPE.DIC_ID is not null)
|
||||
WHERE
|
||||
SAR_LAWS_ITEM_VAL.LAWS_ITEM_ID = SAR_LAWS_ITEMS.ID
|
||||
AND SAR_LAWS_ITEM_VAL.PROPERTY_TYPE = 'APPLY_ARCTIC'
|
||||
AND TS_DICTYPE.VALID_FLAG=0
|
||||
) AS applyArcticShow,
|
||||
(
|
||||
SELECT
|
||||
group_concat(TS_DICTYPE.DIC_TYPE_NAME ORDER BY SAR_LAWS_ITEM_VAL.PROPERTY_TYPE separator ',')
|
||||
FROM
|
||||
SAR_LAWS_ITEM_VAL left join TS_DICTYPE on (TS_DICTYPE.DIC_TYPE_CODE = SAR_LAWS_ITEM_VAL.PROPERTY_VAL and
|
||||
TS_DICTYPE.DIC_ID is not null)
|
||||
WHERE
|
||||
SAR_LAWS_ITEM_VAL.LAWS_ITEM_ID = SAR_LAWS_ITEMS.ID
|
||||
AND SAR_LAWS_ITEM_VAL.PROPERTY_TYPE = 'ENERGY_KIND'
|
||||
AND TS_DICTYPE.VALID_FLAG=0
|
||||
) AS energyKindShow,
|
||||
TS_ORG.ORG_NAME as responsibleUnitShow
|
||||
from SAR_LAWS_ITEMS left join TS_ORG on SAR_LAWS_ITEMS.RESPONSIBLE_UNIT = TS_ORG.ID
|
||||
<include refid="Second_Where_Clause"/>
|
||||
<if test="updateFlag != null and updateFlag != ''">
|
||||
and SAR_LAWS_ITEMS.id != #{updateFlag}
|
||||
</if>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''">
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectSvppsByStandId" parameterType="java.lang.String" resultType="java.lang.String">
|
||||
select svpps from SAR_LAWS_ITEMS
|
||||
where valid_flag=0 and svpps != ''
|
||||
<if test="standId != null">
|
||||
and laws_id=#{standId}
|
||||
</if>
|
||||
<if test="idList != null">
|
||||
and id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="fileType != null">
|
||||
and file_type = #{fileType}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
<?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.sarProductStand.dao.SarProductStandDao">
|
||||
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarProductStand.entity.SarProductStand" >
|
||||
<id column="id" property="id" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="stand_id" property="standId" />
|
||||
<result column="stand_type" property="standType" />
|
||||
<result column="product_id" property="productId" />
|
||||
<result column="productCode" property="productCode" />
|
||||
<result column="productName" property="productName" />
|
||||
<result column="sar_state" property="sarState" />
|
||||
<result column="sar_item_state" property="sarItemState" />
|
||||
<result column="access_type" property="accessType" />
|
||||
<result column="standCode" property="standCode" />
|
||||
<result column="standName" property="standName" />
|
||||
<result column="car_model" property="carModel" />
|
||||
<result column="relate_access_id" property="relateAccessId" />
|
||||
<result column="is_develop" property="isDevelop" />
|
||||
<result column="act_state" property="actState" />
|
||||
<result column="color" property="color" />
|
||||
<result column="non_confomity" property="nonConfomity" />
|
||||
<result column="current" property="current" />
|
||||
<result column="change_scheme" property="changeScheme" />
|
||||
<result column="estimated_change_cycle" property="estimatedChangeCycle" />
|
||||
<result column="estimated_cost" property="estimatedCost" />
|
||||
<result column="risk_point" property="riskPoint" />
|
||||
<result column="verification_scheme" property="verificationScheme" />
|
||||
<result column="justified" property="justified" />
|
||||
<result column="comp_person" property="compPerson" />
|
||||
<result column="comp_time" property="compTime" />
|
||||
<result column="sarNumber" property="sarNumber" />
|
||||
<result column="sarItemNumber" property="sarItemNumber" />
|
||||
<result column="prc_num" property="prcNum" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_PRODUCT_STAND table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
access_type,modify_time, creation_time, valid_flag, creation_user, stand_id, stand_type, product_id, id,
|
||||
sar_state,car_model,relate_access_id,is_develop,act_state,color,
|
||||
non_confomity, current, change_scheme, estimated_change_cycle, estimated_cost, risk_point, verification_scheme,
|
||||
justified, comp_person, comp_time,prc_num
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="productCode != null" >
|
||||
and SAR_PRODUCT_INFO.PRODECT_CODE like concat(concat('%',#{productCode}),'%')
|
||||
</if>
|
||||
<if test="productName != null" >
|
||||
and SAR_PRODUCT_INFO.PRODUCT_NAME like concat(concat('%',#{productName}),'%')
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and SAR_PRODUCT_STAND.modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and SAR_PRODUCT_STAND.modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and SAR_PRODUCT_STAND.modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and SAR_PRODUCT_STAND.creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and SAR_PRODUCT_STAND.creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and SAR_PRODUCT_STAND.creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and SAR_PRODUCT_STAND.valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
and SAR_PRODUCT_STAND.creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="standId != null" >
|
||||
and SAR_PRODUCT_STAND.stand_id ${standIdOperator} #{standId}
|
||||
</if>
|
||||
<if test="standType != null" >
|
||||
and SAR_PRODUCT_STAND.stand_type ${standTypeOperator} #{standType}
|
||||
</if>
|
||||
<if test="productId != null" >
|
||||
and SAR_PRODUCT_STAND.product_id ${productIdOperator} #{productId}
|
||||
</if>
|
||||
<if test="id != null" >
|
||||
and SAR_PRODUCT_STAND.id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="sarState != null" >
|
||||
and SAR_PRODUCT_STAND.sar_state = #{sarState}
|
||||
</if>
|
||||
<if test="carModel != null" >
|
||||
and SAR_PRODUCT_STAND.car_model = #{carModel}
|
||||
</if>
|
||||
<if test="accessType != null" >
|
||||
and SAR_PRODUCT_STAND.access_type = #{accessType}
|
||||
</if>
|
||||
<if test="standidlist != null" >
|
||||
and SAR_PRODUCT_STAND.PRODUCT_ID in
|
||||
<foreach collection="standidlist" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="productIdList != null" >
|
||||
and SAR_PRODUCT_STAND.Id in
|
||||
<foreach collection="productIdList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="queryStandList != null" >
|
||||
and SAR_PRODUCT_STAND.stand_Id in
|
||||
<foreach collection="queryStandList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<select id="queryStandSarState" resultType="java.util.Map"
|
||||
parameterType="java.lang.String">
|
||||
SELECT count(1) AS SAR_ID FROM SAR_PRODUCT_SAR_STATE WHERE SAR_ID=#{value } ;
|
||||
</select>
|
||||
|
||||
<select id="queryStandSarStateNew" resultType="java.util.Map"
|
||||
parameterType="java.lang.String">
|
||||
SELECT * FROM SAR_PRODUCT_STAND WHERE product_id=#{productId } and stand_id=#{standId} ;
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,144 @@
|
||||
<?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.sarSarAccess.dao.SarSarAccessDao">
|
||||
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarSarAccess.entity.SarSarAccess">
|
||||
<id column="id" property="id"/>
|
||||
<result column="modify_time" property="modifyTime"/>
|
||||
<result column="creation_time" property="creationTime"/>
|
||||
<result column="creation_user" property="creationUser"/>
|
||||
<result column="valid_flag" property="validFlag"/>
|
||||
<result column="access_content" property="accessContent"/>
|
||||
<result column="country" property="country"/>
|
||||
<result column="apply_arctic" property="applyArctic"/>
|
||||
<result column="energy_kind" property="energyKind"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="relate_file" property="relateFile"/>
|
||||
<result column="state" property="state"/>
|
||||
<result column="version" property="version"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_SAR_ACCESS table all fields -->
|
||||
<sql id="Base_Column_List">
|
||||
modify_time, creation_time, creation_user,
|
||||
valid_flag, access_content, country, id,apply_arctic,energy_kind,type,remark,relate_file,version,state
|
||||
</sql>
|
||||
|
||||
<sql id="BasePage_Column_List">
|
||||
SAR_SAR_ACCESS.modify_time, SAR_SAR_ACCESS.creation_time, SAR_SAR_ACCESS.creation_user,
|
||||
SAR_SAR_ACCESS.valid_flag, SAR_SAR_ACCESS.access_content, SAR_SAR_ACCESS.country, SAR_SAR_ACCESS.id,TS_USER.uname,
|
||||
dicountry.DIC_TYPE_NAME as countryShow,SAR_SAR_ACCESS.apply_arctic,SAR_SAR_ACCESS.energy_kind,
|
||||
SAR_SAR_ACCESS.type,SAR_SAR_ACCESS.remark,SAR_SAR_ACCESS.relate_file,SAR_SAR_ACCESS.version,SAR_SAR_ACCESS.state
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides=",">
|
||||
<if test="applyArctic != null">
|
||||
and apply_arctic = #{applyArctic}
|
||||
</if>
|
||||
<if test="energyKind != null">
|
||||
and energy_kind = #{energyKind}
|
||||
</if>
|
||||
<if test="type != null">
|
||||
and type = #{type}
|
||||
</if>
|
||||
<if test="modifyTime != null">
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null">
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null">
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="creationTime != null">
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null">
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null">
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="creationUser != null">
|
||||
and creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="validFlag != null">
|
||||
and SAR_SAR_ACCESS.valid_flag = #{validFlag}
|
||||
</if>
|
||||
<if test="accessContent != null">
|
||||
and access_content ${accessContentOperator} concat(concat('%',#{accessContent}),'%')
|
||||
</if>
|
||||
<if test="country != null">
|
||||
and country ${countryOperator} concat(concat('%',#{country}),'%')
|
||||
</if>
|
||||
<if test="id != null">
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="advanceSearchStr != null">
|
||||
and (${advanceSearchStr})
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="PageBase_Where_Clause">
|
||||
left join TS_USER on SAR_SAR_ACCESS.creation_user = TS_USER.usid
|
||||
left join TS_DICTYPE dicountry on (dicountry.dic_type_code = SAR_SAR_ACCESS.country and dicountry.dic_id is not
|
||||
null and dicountry.valid_flag = 0)
|
||||
<if test="accessSarType != null">
|
||||
LEFT JOIN SAR_SAR_ACCESS_INFO ON SAR_SAR_ACCESS.ID = SAR_SAR_ACCESS_INFO.ACCESS_ID
|
||||
</if>
|
||||
where 1=1
|
||||
<trim suffixOverrides=",">
|
||||
<if test="state != null">
|
||||
and SAR_SAR_ACCESS.state = #{state}
|
||||
</if>
|
||||
<if test="applyArctic != null">
|
||||
and SAR_SAR_ACCESS.apply_arctic = #{applyArctic}
|
||||
</if>
|
||||
<if test="energyKind != null">
|
||||
and SAR_SAR_ACCESS.energy_kind = #{energyKind}
|
||||
</if>
|
||||
<if test="type != null">
|
||||
and SAR_SAR_ACCESS.type = #{type}
|
||||
</if>
|
||||
<if test="validFlag != null">
|
||||
and SAR_SAR_ACCESS.valid_flag = #{validFlag}
|
||||
</if>
|
||||
<if test="accessContent != null">
|
||||
and access_content like concat(concat('%',#{accessContent}),'%')
|
||||
</if>
|
||||
<if test="country != null">
|
||||
and country like concat('%',#{country},'%')
|
||||
</if>
|
||||
<if test="id != null">
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="keywords != null">
|
||||
and access_content like concat('%',#{keywords},'%')
|
||||
</if>
|
||||
<if test="accessSarType != null">
|
||||
and SAR_SAR_ACCESS_INFO.ACCESS_SAR_TYPE = #{accessSarType}
|
||||
</if>
|
||||
<if test="advanceSearchStr != null">
|
||||
and (${advanceSearchStr})
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<select id="selectAccessByRes" resultMap="BaseResultMap"
|
||||
parameterType="com.adc.da.slrs.sarSarAccess.page.SarSarAccessEOPage">
|
||||
select SAR_SAR_ACCESS.* from
|
||||
SAR_SAR_ACCESS_INFO
|
||||
left join SAR_SAR_ACCESS on SAR_SAR_ACCESS_INFO.access_id = SAR_SAR_ACCESS.id
|
||||
where SAR_SAR_ACCESS.valid_flag=0 and SAR_SAR_ACCESS_INFO.valid_flag=0
|
||||
and SAR_SAR_ACCESS_INFO.RES_ID=#{resId,jdbcType=VARCHAR} and SAR_TYPE=#{sarType,jdbcType=VARCHAR}
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
<?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.sarSarAccessInfo.dao.SarSarAccessInfoDao">
|
||||
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarSarAccessInfo.entity.SarSarAccessInfo">
|
||||
<id column="id" property="id"/>
|
||||
<result column="modify_time" property="modifyTime"/>
|
||||
<result column="creation_time" property="creationTime"/>
|
||||
<result column="valid_flag" property="validFlag"/>
|
||||
<result column="display_seq" property="displaySeq"/>
|
||||
<result column="res_id" property="resId"/>
|
||||
<result column="sar_type" property="sarType"/>
|
||||
<result column="access_id" property="accessId"/>
|
||||
<result column="standState" property="standState"/>
|
||||
<result column="access_sar_type" property="accessSarType"/>
|
||||
<result column="PERFORM_INFO" property="performInfo" />
|
||||
<result column="ASK_NATURE" property="askNature" />
|
||||
<result column="ACCESS_TYPE" property="accessType" />
|
||||
<result column="AUTH_DELIVE" property="authDelive" />
|
||||
<result column="AUTH_OBJ_ID" property="authObjId" />
|
||||
<result column="AUTH_DEPART_ID" property="authDepartId" />
|
||||
<result column="NEW_PUT_TIME" property="newPutTime" />
|
||||
<result column="PROD_PUT_TIME" property="prodPutTime" />
|
||||
<result column="EOP_PUT_TIME" property="eopPutTime" />
|
||||
<result column="NEW_PUT_TEXT_TIME" property="newPutTextTime" />
|
||||
<result column="PROD_PUT_TEXT_TIME" property="prodPutTextTime" />
|
||||
<result column="EOP_PUT_TEXT_TIME" property="eopPutTextTime" />
|
||||
<result column="country" property="country" />
|
||||
<result column="GXHBQ" property="gxhbq" />
|
||||
<result column="SYNOPSIS" property="synopsis" />
|
||||
<result column="APPLY_ARCTIC" property="applyArctic" />
|
||||
<result column="YQLX" property="yqlx" />
|
||||
<result column="xgbm" property="XGBM" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_SAR_ACCESS_INFO table all fields -->
|
||||
<sql id="Base_Column_List">
|
||||
modify_time, creation_time, valid_flag, display_seq, res_id, sar_type, access_id, id,access_sar_type,PERFORM_INFO,
|
||||
ASK_NATURE,ACCESS_TYPE,AUTH_DELIVE,AUTH_OBJ_ID,AUTH_DEPART_ID,NEW_PUT_TIME,PROD_PUT_TIME,EOP_PUT_TIME,NEW_PUT_TEXT_TIME,PROD_PUT_TEXT_TIME,EOP_PUT_TEXT_TIME
|
||||
</sql>
|
||||
|
||||
<sql id="Product_Column_List">
|
||||
SAR_SAR_ACCESS_INFO.res_id, SAR_SAR_ACCESS_INFO.sar_type, SAR_SAR_ACCESS_INFO.access_sar_type,SAR_SAR_ACCESS_INFO.PERFORM_INFO,
|
||||
SAR_SAR_ACCESS_INFO.ASK_NATURE,SAR_SAR_ACCESS_INFO.ACCESS_TYPE,SAR_SAR_ACCESS_INFO.AUTH_DELIVE,
|
||||
SAR_SAR_ACCESS_INFO.AUTH_OBJ_ID,SAR_SAR_ACCESS_INFO.AUTH_DEPART_ID,SAR_SAR_ACCESS_INFO.NEW_PUT_TIME,
|
||||
SAR_SAR_ACCESS_INFO.PROD_PUT_TIME,SAR_SAR_ACCESS_INFO.EOP_PUT_TIME,SAR_SAR_ACCESS_INFO.NEW_PUT_TEXT_TIME,
|
||||
SAR_SAR_ACCESS_INFO.PROD_PUT_TEXT_TIME,SAR_SAR_ACCESS_INFO.EOP_PUT_TEXT_TIME
|
||||
</sql>
|
||||
|
||||
<sql id="Group_Column_List">
|
||||
res_id, sar_type, access_sar_type,PERFORM_INFO,
|
||||
ASK_NATURE,ACCESS_TYPE,AUTH_DELIVE,
|
||||
AUTH_OBJ_ID,AUTH_DEPART_ID,NEW_PUT_TIME,
|
||||
PROD_PUT_TIME,EOP_PUT_TIME,NEW_PUT_TEXT_TIME,
|
||||
PROD_PUT_TEXT_TIME,EOP_PUT_TEXT_TIME
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides=",">
|
||||
<if test="accessType !=null">
|
||||
and ACCESS_TYPE =#{accessType}
|
||||
</if>
|
||||
<if test="askNature !=null">
|
||||
and ASK_NATURE = #{askNature}
|
||||
</if>
|
||||
<if test="accessSarType != null">
|
||||
and access_sar_type = #{accessSarType}
|
||||
</if>
|
||||
<if test="modifyTime != null">
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null">
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null">
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="creationTime != null">
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null">
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null">
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="validFlag != null">
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="displaySeq != null">
|
||||
and display_seq ${displaySeqOperator} #{displaySeq}
|
||||
</if>
|
||||
<if test="resId != null">
|
||||
and res_id ${resIdOperator} #{resId}
|
||||
</if>
|
||||
<if test="sarType != null">
|
||||
and sar_type ${sarTypeOperator} #{sarType}
|
||||
</if>
|
||||
<if test="accessId != null">
|
||||
and access_id ${accessIdOperator} #{accessId}
|
||||
</if>
|
||||
<if test="id != null">
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<select id="selectProTimeInfoByStandIdAndAccId" resultType="java.util.Map"
|
||||
parameterType="java.lang.String">
|
||||
SELECT
|
||||
SAR_SAR_ACCESS_INFO.*
|
||||
FROM SAR_SAR_ACCESS_INFO
|
||||
left join SAR_SAR_ACCESS on SAR_SAR_ACCESS_INFO.ACCESS_ID=SAR_SAR_ACCESS.ID
|
||||
WHERE
|
||||
SAR_SAR_ACCESS_INFO.res_id = #{standId} and SAR_SAR_ACCESS_INFO.valid_flag = 0
|
||||
and SAR_SAR_ACCESS.valid_flag = 0 and SAR_SAR_ACCESS_INFO.access_id = #{accId}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user