新火炬后端单体项目初始化代码
zhangherong
10 天以前 e6d788eef335aa02ac306e984c44affa68ab971c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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_code cuttingCode,
            t2.cutting_name cuttingName
        FROM
            cms_cutting_receive_detail t1
                LEFT JOIN cms_cutting_tool t2 ON t1.cutting_id = t2.id
        WHERE t1.order_id = #{orderId}
    </select>
</mapper>