国内外校验优化

This commit is contained in:
SUNJIABIN
2023-04-11 13:28:50 +08:00
parent 46851c9b6d
commit 90cd1333e7
5 changed files with 153 additions and 16 deletions
@@ -1965,5 +1965,79 @@
limit ${page.pager.startIndex-1},${page.pageSize}
</select>
<select id="selectStandardsByStandnumber2"
resultType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo">
select
<include refid="Base_Column_List"/>
from
SAR_STANDARDS_INFO
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 and dicstandSort.dic_id='JKSADFH564S')
where SAR_STANDARDS_INFO.valid_flag = 0
<!-- 标准类型 -->
<if test="standType != null">
and stand_type = #{standType}
</if>
<if test="standSort !=null and standNumber !=null and standYear !=null">
and (
SAR_STANDARDS_INFO.STAND_SORT = #{standSort} and SAR_STANDARDS_INFO.STAND_NUMBER = #{standNumber} and SAR_STANDARDS_INFO.STAND_YEAR = #{standYear}
)
</if>
<if test="standSort !=null and standNumber !=null and standYear ==null">
and (
SAR_STANDARDS_INFO.STAND_SORT = #{standSort} and SAR_STANDARDS_INFO.STAND_NUMBER = #{standNumber}
)
</if>
<if test="standName != null">
and SAR_STANDARDS_INFO.STAND_NAME = #{standName}
</if>
<if test="sychronId != null">
and id != #{sychronId}
</if>
order by SAR_STANDARDS_INFO.stand_year desc
</select>
<select id="listQuery2" resultType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo">
select
*
from
SAR_STANDARDS_INFO
where
<if test="standSort !=null and standNumber !=null and standYear !=null">
(
SAR_STANDARDS_INFO.STAND_SORT = #{standSort} and SAR_STANDARDS_INFO.STAND_NUMBER = #{standNumber} and SAR_STANDARDS_INFO.STAND_YEAR = #{standYear}
)
</if>
<if test="standSort !=null and standNumber !=null and standYear ==null">
(
SAR_STANDARDS_INFO.STAND_SORT = #{standSort} and SAR_STANDARDS_INFO.STAND_NUMBER = #{standNumber}
)
</if>
<if test="standName != null">
and SAR_STANDARDS_INFO.STAND_NAME = #{standName}
</if>
</select>
<select id="listQuery" resultType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo">
select
*
from
SAR_STANDARDS_INFO
where
<if test="standSort !=null and standNumber !=null and standYear !=null">
(
SAR_STANDARDS_INFO.STAND_SORT = #{standSort} and SAR_STANDARDS_INFO.STAND_NUMBER = #{standNumber} and SAR_STANDARDS_INFO.STAND_YEAR = #{standYear}
)
</if>
<if test="standSort !=null and standNumber !=null and standYear ==null">
(
SAR_STANDARDS_INFO.STAND_SORT = #{standSort} and SAR_STANDARDS_INFO.STAND_NUMBER = #{standNumber}
)
</if>
<if test="standName != null">
and SAR_STANDARDS_INFO.STAND_NAME = #{standName}
</if>
</select>
</mapper>