吉安感知网项目-后端
rain
2026-02-02 4fa212add5bb7689331e9e070c802bfcb5dcafa2
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
<?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.sxkj.gd.implement.mapper.GdMaterialMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="gdMaterialResultMap" type="org.sxkj.gd.implement.vo.GdMaterialVO">
        <result column="id" property="id"/>
        <result column="material_name" property="materialName"/>
        <result column="necessity" property="necessity"/>
        <result column="is_all_scenario" property="isAllScenario"/>
        <result column="material_desc" property="materialDesc"/>
        <result column="area_code" property="areaCode"/>
    </resultMap>
 
 
    <select id="selectGdMaterialPage" resultMap="gdMaterialResultMap">
        select * from ja_gd_material where is_deleted = 0
        <if test="gdMaterial.materialName != null">
            and material_name like concat('%',#{gdMaterial.materialName},'%')
        </if>
    </select>
 
 
    <select id="exportGdMaterial" resultType="org.sxkj.gd.implement.excel.GdMaterialExcel">
        SELECT * FROM ja_gd_material ${ew.customSqlSegment}
    </select>
 
</mapper>