|
|
@ -18,6 +18,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result column="status" property="status" /> |
|
|
|
<result column="polygon_region" property="polygonRegion" /> |
|
|
|
<result column="verbal_trick" property="verbalTrick" /> |
|
|
|
<result column="operatId" property="operatId" /> |
|
|
|
<result column="operatName" property="operatName" /> |
|
|
|
<result column="flightTime" property="flightTime" /> |
|
|
|
<result column="flightExplain" property="flightExplain" /> |
|
|
|
</resultMap> |
|
|
|
<select id="distance" resultType="java.lang.Integer"> |
|
|
|
SELECT device_id, |
|
|
@ -32,8 +36,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
</select> |
|
|
|
<select id="queryPageList" resultMap="businessTaskMap"> |
|
|
|
select id, task_type,polygon_region ,verbal_trick,expect_time, demand, complete_time, status ,create_by ,nick_name, create_dept, dept_name |
|
|
|
from business_task t |
|
|
|
SELECT |
|
|
|
t.id, |
|
|
|
t.task_type, |
|
|
|
t.polygon_region, |
|
|
|
t.verbal_trick, |
|
|
|
t.expect_time, |
|
|
|
t.demand, |
|
|
|
t.complete_time, |
|
|
|
t.STATUS, |
|
|
|
t.create_by, |
|
|
|
t.nick_name, |
|
|
|
t.create_dept, |
|
|
|
t.dept_name, |
|
|
|
p.user_id AS operatId, |
|
|
|
p.nick_name AS operatName, |
|
|
|
p.flight_time AS flightTime, |
|
|
|
p.EXPLAIN AS flightExplain |
|
|
|
FROM |
|
|
|
business_task t |
|
|
|
LEFT JOIN business_operation p ON t.id = p.task_id |
|
|
|
<where> |
|
|
|
<if test="bo.taskType != null and bo.taskType != ''"> |
|
|
|
and t.task_type = #{bo.taskType} |
|
|
@ -59,6 +81,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</when> |
|
|
|
</choose> |
|
|
|
</where> |
|
|
|
order by status |
|
|
|
order by t.status |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|