郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
52
53
54
55
56
57
58
59
60
61
62
63
<?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.gkhy.safePlatform.safeCheck.repository.AbnormalWorkOrderRepository" >
    <resultMap id="BaseResultMap" type="com.gkhy.safePlatform.safeCheck.entity.AbnormalWorkOrder" >
        <id column="id" property="id" />
        <result column="task_and_quota_id" property="taskAndQuotaId"/>
        <result column="gmt_create" property="gmtCreate" />
        <result column="gmt_moditify" property="gmtModitify" />
        <result column="work_order_time" property="workOrderTime"/>
        <result column="work_order_sort" property="workOrderSort" />
        <result column="point_id" property="pointId" />
        <result column="point_code" property="pointCode" />
        <result column="occurrence_time" property="occurrenceTime" />
        <result column="task_id" property="taskId" />
        <result column="task_name" property="taskName" />
        <result column="region_id" property="regionId" />
        <result column="region_dep" property="regionDep" />
        <result column="region_name" property="regionName" />
        <result column="region_type" property="regionType" />
        <result column="exec_classgroup_id" property="execClassgroupId" />
        <result column="exec_dep_id" property="execDepId" />
        <result column="data_report_type" property="dataReportType" />
        <result column="first_reference_value" property="firstReferenceValue" />
        <result column="second_reference_sign" property="secondReferenceSign" />
        <result column="second_reference_value" property="secondReferenceValue" />
        <result column="third_reference_sign" property="thirdReferenceSign" />
        <result column="third_reference_value" property="thirdReferenceValue" />
        <result column="first_reference_result" property="firstReferenceResult" />
        <result column="second_reference_result" property="secondReferenceResult" />
        <result column="hidden_danger_handler_id" property="hiddenDangerHandlerId" />
        <result column="hidden_danger_handler_phone" property="hiddenDangerHandlerPhone" />
        <result column="hidden_danger_handler_name" property="hiddenDangerHandlerName" />
        <result column="hidden_danger_transfer_handler_id" property="hiddenDangerTransferHandlerId" />
        <result column="hidden_danger_transfer_handler_phone" property="hiddenDangerTransferHandlerPhone" />
        <result column="hidden_danger_transfer_handler_name" property="hiddenDangerTransferHandlerName" />
        <result column="handler_status" property="handlerStatus" />
        <result column="handler_status_submiter" property="handlerStatusSubmiter" />
        <result column="gmt_handler_status_submit" property="gmtHandlerStatusSubmit" />
        <result column="handler_desc" property="handlerDesc" />
        <result column="handler_completed_time" property="handlerCompletedTime" />
        <result column="hidden_danger_accepter_id" property="hiddenDangerAccepterId" />
        <result column="hidden_danger_accepter_phone" property="hiddenDangerAccepterPhone" />
        <result column="hidden_danger_accepter_name" property="hiddenDangerAccepterName" />
        <result column="gmt_hiddenDanger_accepter" property="gmtHiddenDangerAccept" />
        <result column="accepter_status" property="accepterStatus" />
        <result column="create_user_name" property="createUserName" />
        <result column="last_edit_user_name" property="lastEditUserName" />
    </resultMap>
    <select id="getLastWorkOrderSort" resultType="com.gkhy.safePlatform.safeCheck.entity.GetLastWorkOrderSortDO">
        SELECT
               work_order_sort,
               work_order_time
        from
             abnormal_work_order
        WHERE
              id = (
                  SELECT
                         max(id)
                  from
                       abnormal_work_order
                  )
    </select>
</mapper>