吉安感知网项目-后端
linwei
2026-01-19 1f9f5596657af4af7e4e7da735358a0f00d64bbc
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?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.orderdata.mapper.GdSupplyDemandMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="gdSupplyDemandResultMap" type="org.sxkj.gd.orderdata.entity.GdSupplyDemandEntity">
        <result column="id" property="id"/>
        <result column="demand_name" property="demandName"/>
        <result column="demand_type" property="demandType"/>
        <result column="contact_person" property="contactPerson"/>
        <result column="contact_phone" property="contactPhone"/>
        <result column="contact_email" property="contactEmail"/>
        <result column="demand_status" property="demandStatus"/>
        <result column="update_cycle" property="updateCycle"/>
        <result column="apply_basis" property="applyBasis"/>
        <result column="share_type" property="shareType"/>
        <result column="application_scene" property="applicationScene"/>
        <result column="responsible_dept_id" property="responsibleDeptId"/>
        <result column="apply_target_dept_id" property="applyTargetDeptId"/>
        <result column="data_source" property="dataSource"/>
        <result column="demand_info" property="demandInfo"/>
        <result column="area_code" property="areaCode"/>
        <result column="create_user" property="createUser"/>
        <result column="create_dept" property="createDept"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user" property="updateUser"/>
        <result column="update_time" property="updateTime"/>
        <result column="status" property="status"/>
        <result column="is_deleted" property="isDeleted"/>
    </resultMap>
 
 
    <select id="selectGdSupplyDemandPage" resultMap="gdSupplyDemandResultMap">
        select * from ja_gd_supply_demand
        <where>
            is_deleted = 0
            <if test="param.demandName != null and param.demandName != ''">
                AND demand_name LIKE CONCAT('%', #{param.demandName}, '%')
            </if>
            <if test="param.demandStatus != null and param.demandStatus != ''">
                AND demand_status = #{param.demandStatus}
            </if>
        </where>
    </select>
 
 
    <select id="exportGdSupplyDemand" resultType="org.sxkj.gd.orderdata.excel.GdSupplyDemandExcel">
        SELECT * FROM ja_gd_supply_demand ${ew.customSqlSegment}
    </select>
 
</mapper>