123456789101112131415161718192021222324 |
- <?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.keystar.plane.inspection.mapper.PlaneTaskMapper">
- <select id="queryAllTask" resultType="int">
- SELECT
- COUNT(DISTINCT mission_id)
- FROM
- kr_plane_task
- </select>
- <select id="queryFinishedTask" resultType="com.keystar.plane.inspection.vo.PlaneTaskVo" parameterType="com.keystar.plane.inspection.bo.DateBo">
- SELECT
- mission_id, COUNT(*) AS num_records
- FROM
- kr_plane_task
- WHERE
- data BETWEEN #{startTime} AND #{endTime}
- GROUP BY
- mission_id;
- </select>
- </mapper>
|