update - 缺陷接口

master
yinq 1 year ago
parent 6dc7d4ac7c
commit 92e5abd811

@ -88,8 +88,8 @@
from STATION_DEFECT_RELATION sdr
left join BASE_QUALITY_INSPECTION_ITEM bq1 on sdr.defect_code = bq1.QUALITY_DEFECT_CODE
left join BASE_PRODUCTLINE pl on sdr.station_code = pl.PRODUCT_LINE_CODE
left join SYS_DICT_DATA dl on dl.DICT_TYPE = 'material_categories' and bq1.MATERIAL_CATEGORIES = dl.DICT_VALUE
left join SYS_DICT_DATA xl on xl.DICT_TYPE = 'material_subclass' and bq1.MATERIAL_SUBCLASS = xl.DICT_VALUE
left join SYS_DICT_DATA dl on dl.DICT_TYPE = 'defect_categories' and bq1.MATERIAL_CATEGORIES = dl.DICT_VALUE
left join SYS_DICT_DATA xl on xl.DICT_TYPE = 'defect_subclass' and bq1.MATERIAL_SUBCLASS = xl.DICT_VALUE
<where>
<if test="stationCode != null ">and sdr.station_code = #{stationCode}</if>
</where>

Loading…
Cancel
Save