吉安感知网项目-后端
linwei
2026-01-19 077cedddebbfae2d740e259e9e16b0eb363f3a02
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
<?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.workorder.mapper.GdWorkOrderFlowMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="gdWorkOrderFlowResultMap" type="org.sxkj.gd.workorder.entity.GdWorkOrderFlowEntity">
        <result column="id" property="id"/>
        <result column="flow_name" property="flowName"/>
        <result column="flow_desc" property="flowDesc"/>
        <result column="work_order_id" property="workOrderId"/>
        <result column="operator" property="operator"/>
        <result column="type" property="type"/>
        <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="selectGdWorkOrderFlowPage" resultMap="gdWorkOrderFlowResultMap">
        select * from ja_gd_work_order_flow
        <where>
            <if test="param2.type != null and param2.type != ''">
                and type = #{param2.type}
            </if>
            <if test="param2.workOrderId != null and param2.workOrderId != ''">
              and workOrderId  = #{param2.workOrderId}
            </if>
        </where>
    </select>
 
 
    <select id="exportGdWorkOrderFlow" resultType="org.sxkj.gd.workorder.excel.GdWorkOrderFlowExcel">
        SELECT * FROM ja_gd_work_order_flow ${ew.customSqlSegment}
    </select>
 
</mapper>