This commit is contained in:
caixiang
2023-03-03 14:33:18 +08:00
parent a8d3147ac9
commit 6d88aacee0
18 changed files with 355 additions and 187 deletions

View File

@@ -7,6 +7,11 @@
<result column="platform_id" property="platformId" />
<result column="create_time" property="createTime" />
</resultMap>
<resultMap id="ResultMapCam" type="com.cnbm.packing.dto.CamlineSubIdDTO">
<result column="power_level" property="powerLevel" />
<result column="sap_material" property="sapMaterial" />
</resultMap>
<resultMap id="ResultAMap" type="com.cnbm.packing.dto.CamlineExtendArgDTO">
<result column="LAST_UPDATE_TIME" property="lastUpdateTime" />
<result column="PMPP" property="pmpp" />
@@ -118,6 +123,20 @@
LIMIT 1
</select>
<select id="getSubIdByCamline" resultMap="ResultMapCam">
SELECT
flc.SAP_Material as sap_material,
flc.Nenn_Leistung as power_level
FROM
ue_flasher_data_calc flc
LEFT JOIN e_tracking_unit tu ON flc.mainid = tu.id
WHERE
flc.PMPP != 0
and tu.name = #{subId}
</select>
<select id="getOrderNameBySubId" resultType="string">
SELECT
eorder.name