新火炬后端单体项目初始化代码
Houjie
2 天以前 44b18be16f09b1d934ee7bc98a34d8bcf85d050e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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="org.jeecg.modules.cms.mapper.CuttingReceiveDetailMapper">
 
    <select id="detailList" resultType="map">
        SELECT
            t1.id,
            t1.order_id orderId,
            t1.cutting_id cuttingId,
            t1.workpiece_material workpieceMaterial,
            t1.used_life usedLife,
            t2.cutting_barcode cuttingCBarcode,
            t2.inventory_status inventoryStatus,
            t2.current_life currentLife,
            t3.cutting_code cuttingCode,
            t3.cutting_name cuttingName
        FROM
            cms_cutting_receive_detail t1
            LEFT JOIN cms_cutting_inventory t2 ON t1.inventory_id = t2.id
            LEFT JOIN cms_cutting_tool t3 ON t1.cutting_id = t3.id
        WHERE t1.order_id = #{orderId}
    </select>
</mapper>