yangys
2025-11-18 8e944cfabb253fc2556588e308e282586043f7b0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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.smis.mapper.MaterialMapper">
 
    <select id="getPageMaterial" resultType="com.qianwen.smartman.modules.smis.vo.MaterialVO">
        select bm.id,
               bm.code,
               bar_code barCode,
               bm.name,
               type_id typeId,
               bmt.name typeName,
               bmt.code typeCode,
               unit,
               stuff,
               standard_model standardModel,
               bm.remark,
               lower_limit lowerLimit,
               upper_limit upperLimit,
               is_must_check isMustCheck,
               property,
               bm.status
        from blade_material bm
                 left join blade_material_type bmt on bm.type_id = bmt.id and bmt.is_deleted = 0
        where bm.is_deleted = 0
        <if test="ew!=null">
            and ${ew.sqlSegment}
        </if>
    </select>
</mapper>