国内海外清单 标准的导入导出
This commit is contained in:
+102
@@ -616,6 +616,94 @@
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
<sql id="SarBussionInfo_Where_Clause1">
|
||||
left join SAR_BUSS_STAND_MENU ON SAR_BUSSIONESS_STAND.id = SAR_BUSS_STAND_MENU.buss_stand_id
|
||||
<!--<if test="menuId != null and menuId =='nomenu' and menuAllChildrenIdList != null and menuAllChildrenIdList.size()>0 and sarMsType != null and sarMsType == 'filterSarMsMenu'" >-->
|
||||
<!--and SAR_BUSS_STAND_MENU.TREE_TYPE = 'sarMs'-->
|
||||
<!--and SAR_BUSS_STAND_MENU.MENU_ID in-->
|
||||
<!--<foreach collection="menuAllChildrenIdList" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!--#{item}-->
|
||||
<!--</foreach>-->
|
||||
<!--</if>-->
|
||||
left join TS_RESOURCE on SAR_BUSS_STAND_MENU.menu_id = TS_RESOURCE.id
|
||||
left join SAR_BUSS_STAND_ATTR_INFO on (SAR_BUSS_STAND_ATTR_INFO.STAND_ID = SAR_BUSSIONESS_STAND.id and SAR_BUSS_STAND_ATTR_INFO.valid_flag=0)
|
||||
LEFT JOIN TS_DICTYPE dicstandTextStatus ON (
|
||||
dicstandTextStatus.dic_type_code = SAR_BUSSIONESS_STAND.text_status_buss
|
||||
AND dicstandTextStatus.dic_id IS NOT NULL
|
||||
AND dicstandTextStatus.valid_flag = 0
|
||||
)
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="standCode != null" >
|
||||
and (SAR_BUSSIONESS_STAND.STAND_CODE = #{standCode}
|
||||
or REPLACE( SAR_BUSSIONESS_STAND.STAND_CODE,' ','') = REPLACE( #{standCode},' ',''))
|
||||
</if>
|
||||
|
||||
|
||||
<!--<if test="menuId != null and menuId =='nomenu' and menuAllChildrenIdList != null and menuAllChildrenIdList.size()>0 and sarMsType != null and sarMsType == 'filterSarMsMenu'" >-->
|
||||
<!--and SAR_BUSS_STAND_MENU.MENU_ID IS NULL-->
|
||||
<!--</if>-->
|
||||
|
||||
<!--<!– 目录判断 –>-->
|
||||
<!--<if test="menuId != null and menuId !='nomenu' and menuAllChildrenIdList != null and menuAllChildrenIdList.size()>0 " >-->
|
||||
<!--and SAR_BUSS_STAND_MENU.MENU_ID in-->
|
||||
<!--<foreach collection="menuAllChildrenIdList" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!--#{item}-->
|
||||
<!--</foreach>-->
|
||||
<!--</if>-->
|
||||
<!--<!– 新修改需求,根据角色查询有权限的菜单数据–>-->
|
||||
<!--<if test="menuRoleList != null">-->
|
||||
<!--and SAR_BUSS_STAND_MENU.MENU_ID in-->
|
||||
<!--<foreach collection="menuRoleList" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!--#{item}-->
|
||||
<!--</foreach>-->
|
||||
<!--</if>-->
|
||||
<!--<if test="collectMenuId != null">-->
|
||||
<!--and SAR_BUSSIONESS_STAND.id in (-->
|
||||
<!--select COLLECT_RES_ID from TS_PERSON_COLLECT where TS_PERSON_COLLECT.VALID_FLAG=0-->
|
||||
<!--and collect_type='BUSINESS_STAND'-->
|
||||
<!--and TS_PERSON_COLLECT.user_id=#{userId}-->
|
||||
<!--)-->
|
||||
<!--</if>-->
|
||||
<!--<if test="validFlag != null" >-->
|
||||
<!--and SAR_BUSSIONESS_STAND.valid_flag = #{validFlag}-->
|
||||
<!--</if>-->
|
||||
<!--<!– 导出数据过程中,选择的id –>-->
|
||||
<!--<if test="idlist != null" >-->
|
||||
<!--and SAR_BUSSIONESS_STAND.id in-->
|
||||
<!--<foreach collection="idlist" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!--#{item}-->
|
||||
<!--</foreach>-->
|
||||
<!--</if>-->
|
||||
<!--<if test="id != null and id != '' " >-->
|
||||
<!--and SAR_BUSSIONESS_STAND.id = #{id}-->
|
||||
<!--</if>-->
|
||||
<!--<if test="standSort != null" >-->
|
||||
<!--and SAR_BUSSIONESS_STAND.stand_sort = #{standSort}-->
|
||||
<!--</if>-->
|
||||
<!--<if test="standYear != null" >-->
|
||||
<!--and SAR_BUSSIONESS_STAND.stand_year = #{standYear}-->
|
||||
<!--</if>-->
|
||||
<!--<if test="replaceStandNum != null" >-->
|
||||
<!--and replace_stand_num like concat(concat('%',#{replaceStandNum}),'%')-->
|
||||
<!--</if>-->
|
||||
<!--<if test="standStatus != null" >-->
|
||||
<!--and SAR_BUSSIONESS_STAND.STAND_STATUS = #{standStatus}-->
|
||||
<!--</if>-->
|
||||
<!--<if test="standEnName != null">-->
|
||||
<!--and SAR_BUSSIONESS_STAND.STAND_EN_NAME like concat('%', #{standEnName},'%')-->
|
||||
<!--</if>-->
|
||||
<!--<if test="advanceSearchStr != null">-->
|
||||
<!--and (${advanceSearchStr})-->
|
||||
<!--</if>-->
|
||||
<!--<if test="zqcrId != null">-->
|
||||
<!--and (SELECT ZYQCR-->
|
||||
<!--FROM SAR_BUSS_STAND_ATTR_INFO-->
|
||||
<!--WHERE valid_flag = 0-->
|
||||
<!--and stand_id = SAR_BUSSIONESS_STAND.id) = #{zqcrId}-->
|
||||
<!--</if>-->
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 根据角色分页查询条件 -->
|
||||
<sql id="SarBussionInfoRole_Where_Clause">
|
||||
@@ -736,6 +824,20 @@
|
||||
<include refid="standSort_in"/>
|
||||
limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
<!--清单导入标准 根据标准号认证数据-->
|
||||
<select id="getBussionessStandInfoByNum" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.sarStandardsInfo.entity.SarBussionessStandEOPage">
|
||||
select * from
|
||||
(select tmp_tb.* from
|
||||
(select
|
||||
dicstandTextStatus.DIC_TYPE_NAME AS standStatusShow,SAR_BUSS_STAND_ATTR_INFO.DTQBBHBUSS,
|
||||
<include refid="Base_Column_List_show" />
|
||||
from SAR_BUSSIONESS_STAND
|
||||
<include refid="SarBussionInfo_Where_Clause1"/>
|
||||
GROUP BY standStatusShow,<include refid="Group_Column_List_show"/>
|
||||
) tmp_tb
|
||||
<include refid="standSort_in"/>
|
||||
limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<!-- 企标复审使用-->
|
||||
<select id="getBussionessStandInfoQbfs" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.sarStandardsInfo.entity.SarBussionessStandEOPage">
|
||||
|
||||
+153
@@ -175,6 +175,117 @@
|
||||
</if>
|
||||
|
||||
|
||||
<if test="collectMenuId != null and collectMenuId != ''">
|
||||
and SAR_LAWS_STAND_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="advanceSearchStr != null and advanceSearchStr != ''">
|
||||
and (${advanceSearchStr})
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
<sql id="SarStandardsInfo_in_left1">
|
||||
left join SAR_LAWS_MENU ON SAR_LAWS_STAND_INFO.id = SAR_LAWS_MENU.laws_id
|
||||
LEFT JOIN TS_DICTYPE dicstandTextStatus ON (
|
||||
dicstandTextStatus.dic_type_code = SAR_LAWS_STAND_INFO.LAWS_TEXT_STATE
|
||||
AND dicstandTextStatus.dic_id IS NOT NULL
|
||||
AND dicstandTextStatus.valid_flag = 0
|
||||
)
|
||||
left join SAR_LAWS_ATTR_INFO on (SAR_LAWS_ATTR_INFO.LAWS_ID = SAR_LAWS_STAND_INFO.id and SAR_LAWS_ATTR_INFO.valid_flag=0)
|
||||
where 1=1 and SAR_LAWS_STAND_INFO.valid_flag=0
|
||||
<trim suffixOverrides=",">
|
||||
<!-- 基本搜索项 -->
|
||||
<if test="lawsType != null and lawsType != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_TYPE like concat(concat('%',#{lawsType}),'%')
|
||||
</if>
|
||||
<if test="lawsNumber != null and lawsNumber != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_NUMBER = #{lawsNumber}
|
||||
</if>
|
||||
<if test="numberName != null and numberName != ''">
|
||||
and (SAR_LAWS_STAND_INFO.LAWS_NAME like concat(concat('%',#{numberName}),'%')
|
||||
or SAR_LAWS_STAND_INFO.LAWS_NUMBER like concat(concat('%',#{numberName}),'%')
|
||||
or SAR_LAWS_STAND_INFO.LAWS_EN_NAME like concat(concat('%',#{numberName}),'%'))
|
||||
</if>
|
||||
<if test="lawsName != null and lawsName != ''">
|
||||
and LAWS_NAME like concat(concat('%',#{lawsName}),'%')
|
||||
</if>
|
||||
<if test="lawsEnName != null and lawsEnName != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_EN_NAME like concat(concat('%',#{lawsEnName}),'%')
|
||||
</if>
|
||||
<if test="lawsNo != null and lawsNo != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_NO like concat(concat('%',#{lawsNo}),'%')
|
||||
</if>
|
||||
<if test="issueTime != null and issueTime != ''">
|
||||
and DATE_FORMAT(SAR_LAWS_STAND_INFO.ISSUE_TIME,'%Y-%m-%d') = #{issueTime}
|
||||
</if>
|
||||
<if test="issueCompany != null and issueCompany != ''">
|
||||
and SAR_LAWS_STAND_INFO.ISSUE_COMPANY like concat(concat('%',#{issueCompany}),'%')
|
||||
</if>
|
||||
<if test="commentCycleStart != null and commentCycleStart != ''">
|
||||
and DATE_FORMAT(SAR_LAWS_STAND_INFO.COMMENT_CYCLE_START ,'%Y-%m-%d') = DATE_FORMAT(#{commentCycleStart},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="commentCycleEnd != null and commentCycleEnd != ''">
|
||||
and DATE_FORMAT(SAR_LAWS_STAND_INFO.COMMENT_CYCLE_END ,'%Y-%m-%d') = DATE_FORMAT(#{commentCycleEnd},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="lawsTextState != null and lawsTextState != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_TEXT_STATE = #{lawsTextState}
|
||||
</if>
|
||||
<if test="lawsSyqy != null and lawsSyqy != ''">
|
||||
and FIND_IN_SET(#{lawsSyqy},SAR_LAWS_STAND_INFO.LAWS_SYQY)
|
||||
</if>
|
||||
<if test="lawsSycx != null and lawsSycx != ''">
|
||||
and FIND_IN_SET(#{lawsSycx},SAR_LAWS_STAND_INFO.LAWS_SYCX)
|
||||
</if>
|
||||
<if test="isRelateAccess != null and isRelateAccess != ''">
|
||||
and SAR_LAWS_STAND_INFO.IS_RELATE_ACCESS = #{isRelateAccess}
|
||||
</if>
|
||||
<if test="lawsYear != null and lawsYear != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_YEAR like concat(concat('%',#{lawsYear}),'%')
|
||||
</if>
|
||||
<if test="lawsNotisyncNum != null and lawsNotisyncNum != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_NOTISYNC_NUM like concat(concat('%',#{lawsNotisyncNum}),'%')
|
||||
</if>
|
||||
<if test="lawsBulletin != null and lawsBulletin != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_BULLETIN like concat(concat('%',#{lawsBulletin}),'%')
|
||||
</if>
|
||||
<if test="lawsLabel != null and lawsLabel != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_LABEL like concat(concat('%',#{lawsLabel}),'%')
|
||||
</if>
|
||||
<if test="lawsRemark != null and lawsRemark != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_REMARK like concat(concat('%',#{lawsRemark}),'%')
|
||||
</if>
|
||||
<!-- 国家、地区 -->
|
||||
<if test="country != null and country != ''">
|
||||
and SAR_LAWS_STAND_INFO.country = #{country}
|
||||
</if>
|
||||
<!-- 目录判断 -->
|
||||
<if test="menuId != null and menuId !='nomenu' and menuAllChildrenIdList != null">
|
||||
and SAR_LAWS_MENU.MENU_ID in
|
||||
<foreach collection="menuAllChildrenIdList" 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>
|
||||
</if>
|
||||
<!-- 导出数据过程中,选择的id -->
|
||||
<if test="idlist != null">
|
||||
and SAR_LAWS_STAND_INFO.id in
|
||||
<foreach collection="idlist" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
|
||||
<if test="collectMenuId != null and collectMenuId != ''">
|
||||
and SAR_LAWS_STAND_INFO.id in (
|
||||
select COLLECT_RES_ID from TS_PERSON_COLLECT where TS_PERSON_COLLECT.VALID_FLAG=0
|
||||
@@ -273,6 +384,48 @@
|
||||
limit ${pager.startIndex-1},${pageSize}
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_LAWS_STAND_INFO列表 -->
|
||||
<select id="getSarStandardsInfoByNum" resultMap="BaseResultMap"
|
||||
parameterType="com.adc.da.slrs.sarLawsStandInfo.entity.SarLawsStandInfoPage">
|
||||
SELECT
|
||||
DISTINCT SAR_LAWS_STAND_INFO.ID,
|
||||
SAR_LAWS_STAND_INFO.LAWS_TYPE,
|
||||
SAR_LAWS_STAND_INFO.LAWS_NUMBER,
|
||||
SAR_LAWS_STAND_INFO.LAWS_NAME,
|
||||
SAR_LAWS_STAND_INFO.LAWS_EN_NAME,
|
||||
SAR_LAWS_STAND_INFO.LAWS_NO,
|
||||
SAR_LAWS_STAND_INFO.ISSUE_TIME,
|
||||
SAR_LAWS_STAND_INFO.ISSUE_COMPANY,
|
||||
SAR_LAWS_STAND_INFO.COMMENT_CYCLE_START,
|
||||
SAR_LAWS_STAND_INFO.COMMENT_CYCLE_END,
|
||||
SAR_LAWS_STAND_INFO.LAWS_TEXT_STATE,
|
||||
SAR_LAWS_STAND_INFO.LAWS_SYQY,
|
||||
SAR_LAWS_STAND_INFO.LAWS_SYCX,
|
||||
SAR_LAWS_STAND_INFO.IS_RELATE_ACCESS,
|
||||
SAR_LAWS_STAND_INFO.LAWS_YEAR,
|
||||
SAR_LAWS_STAND_INFO.LAWS_NOTISYNC_NUM,
|
||||
SAR_LAWS_STAND_INFO.LAWS_BULLETIN,
|
||||
SAR_LAWS_STAND_INFO.LAWS_LABEL,
|
||||
SAR_LAWS_STAND_INFO.LAWS_REMARK,
|
||||
SAR_LAWS_STAND_INFO.COUNTRY,
|
||||
SAR_LAWS_STAND_INFO.MODIFY_TIME,
|
||||
dicstandTextStatus.DIC_TYPE_NAME AS standStatusShow,
|
||||
(
|
||||
CASE
|
||||
WHEN SAR_LAWS_ATTR_INFO.XCXSSRQLAWS ='' THEN '9999-01-01'
|
||||
ELSE SAR_LAWS_ATTR_INFO.XCXSSRQLAWS
|
||||
END
|
||||
) AS XCXSSRQLAWS
|
||||
from SAR_LAWS_STAND_INFO
|
||||
<include refid="SarStandardsInfo_in_left1"/>
|
||||
order by
|
||||
<if test='orderByA != null and orderByA != "" and order1 != null and order1 != ""'>
|
||||
${orderByA} ${order1},
|
||||
</if>
|
||||
SAR_LAWS_STAND_INFO.id
|
||||
limit ${pager.startIndex-1},${pageSize}
|
||||
</select>
|
||||
|
||||
<select id="getSarStandardsInfoCount" resultType="java.lang.Integer"
|
||||
parameterType="com.adc.da.slrs.sarLawsStandInfo.entity.SarLawsStandInfoPage">
|
||||
select count(1) from (select count(*) from SAR_LAWS_STAND_INFO
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@
|
||||
and sar_stand_unqualified.STAND_ID = #{sar.standId}
|
||||
</if>
|
||||
<if test="sar.productName != null and sar.productName != '' ">
|
||||
and sar_stand_unqualified.PRODUCT_NAME like concat(concat('%',#{sar.productName}),'%')
|
||||
and sar_stand_unqualified.STAND_NAME like concat(concat('%',#{sar.productName}),'%')
|
||||
</if>
|
||||
<if test="sar.responsibleUnit != null and sar.responsibleUnit != '' ">
|
||||
and ts_institution.name like concat('%',#{sar.responsibleUnit},'%')
|
||||
|
||||
+45
@@ -1124,6 +1124,36 @@
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<sql id="SarStandardsInfo_in_left_3">
|
||||
left join SAR_STAND_MENU ON SAR_STANDARDS_INFO.id = SAR_STAND_MENU.stand_id
|
||||
left join TS_DICTYPE dicstandSort on (dicstandSort.dic_type_code = SAR_STANDARDS_INFO.stand_sort and
|
||||
dicstandSort.dic_id is not null and dicstandSort.valid_flag = 0 and dicstandSort.PARENT_ID is null)
|
||||
LEFT JOIN TS_DICTYPE dicstandTextStatus ON (
|
||||
dicstandTextStatus.dic_type_code = SAR_STANDARDS_INFO.text_status
|
||||
<!-- 标准类别DIC_ID 固定ID 区分 国家地区 -->
|
||||
AND dicstandTextStatus.dic_id = 'JKSADFH564S'
|
||||
AND dicstandTextStatus.dic_id IS NOT NULL
|
||||
AND dicstandTextStatus.valid_flag = 0
|
||||
)
|
||||
left join SAR_STAND_ATTR_INFO on (SAR_STAND_ATTR_INFO.stand_id = SAR_STANDARDS_INFO.id and SAR_STAND_ATTR_INFO.valid_flag=0)
|
||||
where 1=1 and SAR_STANDARDS_INFO.valid_flag=0
|
||||
<trim suffixOverrides=",">
|
||||
<!-- 标准分类 国内标准,国外标准 必要搜索项 -->
|
||||
<if test='page.standType != null and page.standType != "ALL"'>
|
||||
and stand_type = #{page.standType}
|
||||
</if>
|
||||
<!-- 标准编号111 -->
|
||||
<if test="page.standNumber != null and page.standNumber != ''">
|
||||
and (
|
||||
(trim(replace(concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
|
||||
SAR_STANDARDS_INFO.STAND_YEAR),' ','')) = trim(replace(#{page.standNumber},' ','')) and SAR_STANDARDS_INFO.STAND_YEAR != '')
|
||||
or (trim(replace(concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER),' ','')) = trim(replace(#{page.standNumber},' ',''))
|
||||
)
|
||||
)
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<sql id="SarStandardsInfo_in_left">
|
||||
left join SAR_STAND_MENU ON SAR_STANDARDS_INFO.id = SAR_STAND_MENU.stand_id
|
||||
left join TS_DICTYPE dicstandSort on (dicstandSort.dic_type_code = SAR_STANDARDS_INFO.stand_sort and
|
||||
@@ -1413,6 +1443,21 @@
|
||||
limit ${page.pager.startIndex-1},${page.pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getSarStandardsInfoByNum" resultMap="BaseResultMap"
|
||||
parameterType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage">
|
||||
SELECT
|
||||
<include refid="Base_Column_List_DIS"/>
|
||||
from SAR_STANDARDS_INFO
|
||||
<include refid="SarStandardsInfo_in_left_3"/>
|
||||
|
||||
<if test='(page.orderByA != null and page.orderByA != "" and page.order1 != null and page.order1 != "")
|
||||
or (page.standType != null and page.standType != "") '>
|
||||
<include refid="standSort_in"/>
|
||||
</if>
|
||||
limit ${page.pager.startIndex-1},${page.pageSize}
|
||||
</select>
|
||||
|
||||
<select id="selectHighLawsPage" resultMap="BaseResultMap"
|
||||
parameterType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage">
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user