add:修改对外PDMC读取文件接口查询

This commit is contained in:
wxyclub
2023-06-19 16:19:54 +08:00
parent 6411deb8a6
commit c2b779c3c0
5 changed files with 20 additions and 11 deletions
@@ -25,7 +25,14 @@
IFNULL(CONCAT('-', CASE WHEN ssi.STAND_YEAR='' THEN NULL ELSE ssi.STAND_YEAR END), '')) as STAND_NUMBER,
ssi.STAND_NAME as STAND_NAME,
ssi.STAND_EN_NAME as STAND_EN_NAME,
ssi.STAND_STATE as TEXT_STATE,
(SELECT
ts_dictype.DIC_TYPE_NAME
FROM
ts_dictype
WHERE
DIC_ID = ( SELECT id FROM ts_dictionary WHERE DICTIONARY_CODE = "STANDSTATE" )
and VALID_FLAG = 0
and ssi.stand_state = ts_dictype.DIC_TYPE_CODE) as TEXT_STATE,
ssi.ISSUE_TIME as ISSUE_TIME,
ssi.REPLACE_STAND_NUM as REPLACE_STAND_NUM,
concat('https://srms.foton.com.cn/#/otherStandardDetails/',ssi.ID,'/',ssi.STAND_TYPE,'_STAND') as LINK
@@ -38,10 +45,12 @@
from sar_standards_info ssi
left join sar_stand_menu ssm on ssi.id=ssm.STAND_ID order by ssi.ID asc
</select>
<select id="getSarStandardsCount" resultType="java.lang.Integer">
<select id="getSarStandardsCount" resultType="long">
select
count(1)
from sar_standards_info
left join sar_stand_menu on sar_standards_info.id=sar_stand_menu.STAND_ID order by sar_standards_info.ID asc
from (select
<include refid="Base_Column_List_Show"/>
from sar_standards_info ssi
left join sar_stand_menu ssm on ssi.id=ssm.STAND_ID) temp
</select>
</mapper>