标准新增以及编辑时 代替标准号在我的收藏中时,此标准也将插入我的收藏
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
where stand_id = #{standId} and valid_flag=0
|
||||
</select>
|
||||
<select id="getMenuByStandId" resultType="com.adc.da.slrs.sarStandMenu.entity.SarStandMenu">
|
||||
SELECT
|
||||
SELECT
|
||||
SAR_STAND_MENU.valid_flag as validFlag,
|
||||
menu_id as menuId,
|
||||
stand_id as standId,
|
||||
@@ -92,9 +92,55 @@
|
||||
FROM
|
||||
SAR_STAND_MENU
|
||||
LEFT JOIN ts_resource ON SAR_STAND_MENU.MENU_ID = ts_resource.ID
|
||||
WHERE
|
||||
stand_id = #{standId}
|
||||
AND SAR_STAND_MENU.VALID_FLAG = 0
|
||||
<where>
|
||||
SAR_STAND_MENU.VALID_FLAG = 0
|
||||
<if test="standId !=null and stand != ''">
|
||||
AND stand_id = #{standId}
|
||||
</if>
|
||||
|
||||
<if test="standCode !=null and standCode != ''">
|
||||
AND STAND_ID =
|
||||
(
|
||||
SELECT
|
||||
id
|
||||
FROM
|
||||
sar_standards_info AS sarInfo
|
||||
WHERE
|
||||
VALID_FLAG = '0'
|
||||
AND
|
||||
(
|
||||
(
|
||||
REPLACE (
|
||||
concat(
|
||||
sarInfo.STAND_SORT,
|
||||
' ',
|
||||
sarInfo.STAND_NUMBER,
|
||||
'-',
|
||||
sarInfo.STAND_YEAR
|
||||
),
|
||||
' ',
|
||||
''
|
||||
) = REPLACE (
|
||||
#{standCode},' ', '')
|
||||
AND sarInfo.STAND_YEAR != ''
|
||||
)
|
||||
OR (
|
||||
REPLACE (
|
||||
concat(
|
||||
sarInfo.STAND_SORT,
|
||||
sarInfo.STAND_NUMBER
|
||||
),
|
||||
' ',
|
||||
''
|
||||
) = REPLACE (#{standCode},' ', '')
|
||||
)
|
||||
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user