新增 国内外入库、新增、修改时对代替标准号所对应老标准的文本状态

This commit is contained in:
SUNJIABIN
2023-04-25 17:52:16 +08:00
parent 239c535b12
commit 11193a3c93
4 changed files with 73 additions and 0 deletions
@@ -2039,5 +2039,36 @@
</if>
</select>
<select id="selectBy" resultType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo">
select
ssi2.id
from
SAR_STANDARDS_INFO ssi,
SAR_STANDARDS_INFO ssi2
where
<if test="standSort !=null and standNumber !=null and standYear !=null">
ssi.REPLACE_STAND_NUM = concat(ssi2.STAND_SORT,' ',ssi2.STAND_NUMBER,'-',ssi2.STAND_YEAR)
</if>
<if test="standSort !=null and standNumber !=null and standYear ==null">
ssi.REPLACE_STAND_NUM = concat(ssi2.STAND_SORT,' ',ssi2.STAND_NUMBER)
</if>
and ssi.STAND_NAME = #{id}
</select>
<select id="selectBy1" resultType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo">
select
ssi2.id
from
SAR_STANDARDS_INFO ssi,
SAR_STANDARDS_INFO ssi2
where
<if test="standSort !=null and standNumber !=null and standYear !=null">
ssi.REPLACE_STAND_NUM = concat(ssi2.STAND_SORT,ssi2.STAND_NUMBER,'-',ssi2.STAND_YEAR)
</if>
<if test="standSort !=null and standNumber !=null and standYear ==null">
ssi.REPLACE_STAND_NUM = concat(ssi2.STAND_SORT,ssi2.STAND_NUMBER)
</if>
and ssi.STAND_NAME = #{id}
</select>
</mapper>