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
| <?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.mes.taskcache.mapper.TaskCacheMapper">
|
| <select id="queryGlassByTaskCache" resultType="com.mes.taskcache.entity.TaskCache">
| SELECT top 1
| glass_id
| ,start_cell
| , end_cell
| , task_type
| , task_status
| , create_time
| FROM task_cache
| <where>
| end_cell = #{line}
| and deleted = 0
| AND task_type in
| <foreach collection="taskTypes" item="item" open='(' close=')' separator=','>
| #{item}
| </foreach>
| </where>
| ORDER BY create_time desc
| </select>
|
| </mapper>
|
|