yangys
2024-04-02 1a77b1a7c072b136925d6d73c4d8f017ca016e3a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.qianwen.smartman.modules.fms.mapper.FmsWorkStationRecordMapper">
 
    <!--生产统计根据工单id获取零件相关信息-->
    <select id="findProduceOrderPart" resultType="com.qianwen.smartman.modules.fms.dto.FmsProducePartDTO">
        SELECT
            wsr.part_code As partCode,
            op.process_name AS processName,
            op.process_code As processCode,
            wsr.work_station_name As workStationName,
            wsr.work_bench_number AS currentStation,
            wsr.tray_code As trayCode,
            wsr.start_time As startTime,
            wsr.end_time As endTime,
            wsr.order_process_id AS orderProcessId
        FROM
            blade_fms_work_station_record wsr
                LEFT JOIN blade_fms_order_process op ON wsr.order_process_id = op.id
        where wsr.order_id=#{orderId}
    </select>
</mapper>