This commit is contained in:
caixiang
2023-03-04 13:57:07 +08:00
parent ec1e5097f7
commit 9ccc971a38
7 changed files with 178 additions and 18 deletions

View File

@@ -11,6 +11,12 @@
<result column="power_level" property="powerLevel" />
<result column="sap_material" property="sapMaterial" />
</resultMap>
<resultMap id="ResultMapCamIm" type="com.cnbm.packing.dto.CamlineSubIdForImportDTO">
<result column="power_level" property="powerLevel" />
<result column="sap_material" property="sapMaterial" />
<result column="sub_id" property="subId" />
<result column="order_name" property="orderName" />
</resultMap>
<resultMap id="ResultAMap" type="com.cnbm.packing.dto.CamlineExtendArgDTO">
<result column="LAST_UPDATE_TIME" property="lastUpdateTime" />
@@ -58,16 +64,15 @@
<select id="getPMPPBySubId" resultType="float">
SELECT
flc.PMPP
flr.PMPP_FL2 as PMPP
FROM
ue_flasher_data_calc flc
LEFT JOIN e_tracking_unit tu ON flc.mainid = tu.id
ue_flasher_data_raw flr
LEFT JOIN e_tracking_unit tu ON flr.mainid = tu.id
WHERE
flc.PMPP != 0
and
tu.name=#{subId} -- 查特定基板功率
flr.PMPP_FL2 != 0
and tu.name=#{subId} -- 查特定基板功率
ORDER BY
flc.LAST_UPDATE_TIME DESC
flr.LAST_UPDATE_TIME DESC
LIMIT 1
</select>
@@ -137,6 +142,94 @@
and tu.name = #{subId}
</select>
<select id="getSubIdByCamlineForImpoet" resultMap="ResultMapCamIm">
SELECT
tu.`NAME` as sub_id,-- DMC
flc.SAP_Material as sap_material,
flc.Nenn_Leistung as power_level,
eo.`NAME` as order_name
FROM
ue_flasher_data_calc flc
LEFT JOIN e_tracking_unit tu ON flc.mainid = tu.id
LEFT JOIN er_order eo ON tu.ORDER_ID = eo.ID
WHERE
tu.NAME IN (
'30110012302232616',
'30110012302181619',
'30110012302250549',
'30110012302233506',
'30110012302231424',
'30110012302243219',
'30110012302260016',
'30110012302233325',
'30110012302231486',
'30110012302242632',
'30110012302233332',
'30110012302243231',
'30110012302221955',
'30110012302233340',
'30110012302243234',
'30110012302181963',
'30110012302240054',
'30110012302233339',
'30110012302233336',
'30110012302250041',
'30110012302240846',
'30110012302242395',
'30110012302233328',
'30110012302242648',
'30110012302232905',
'30110012302232659',
'30110012302233329',
'30110012302231417',
'30110012302250331',
'30110012302251165',
'30110012302192079',
'30110012302260005',
'30110012302250817',
'30110012302233312',
'30110012302271020',
'30110012302231495',
'30110012302233216',
'30110012302271022',
'30110012302183386',
'30110012302240164',
'30110012302241261',
'30110012302241398',
'30110012302230861',
'30110012302233064',
'30110012302250040',
'30110012302251285',
'30110012302221930',
'30110012302182351',
'30110012302250036',
'30110012302251263',
'30110012302232697',
'30110012302242148',
'30110012302190531',
'30110012302242780',
'30110012302240623',
'30110012302241074',
'30110012302182357',
'30110012302233324',
'30110012302172333',
'30110012302193103',
'30110012302192897',
'30110012302233139',
'30110012302241645',
'30110012302250035',
'30110012302232516',
'30110012302270854'
)
and flc.PMPP != 0
GROUP BY tu.`NAME`
</select>
<select id="getOrderNameBySubId" resultType="string">
SELECT
eorder.name