<?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.jeecg.module.custom.ocr.dataDao.OcrPictureInfoMapper">
  <resultMap id="BaseResultMap" type="org.jeecg.module.custom.ocr.dataobject.OcrPictureInfo">
    <!--@mbg.generated-->
    <!--@Table ocr_picture_info-->
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="picture_id" jdbcType="BIGINT" property="pictureId" />
    <result column="img_size" jdbcType="VARCHAR" property="imgSize" />
    <result column="img_format" jdbcType="VARCHAR" property="imgFormat" />
    <result column="img_measure" jdbcType="VARCHAR" property="imgMeasure" />
    <result column="upload_time" jdbcType="BIGINT" property="uploadTime" />
    <result column="create_time" jdbcType="BIGINT" property="createTime" />
    <result column="img_space" jdbcType="VARCHAR" property="imgSpace" />
    <result column="tag_time" jdbcType="BIGINT" property="tagTime" />
    <result column="source" jdbcType="VARCHAR" property="source" />
    <result column="task_id" jdbcType="VARCHAR" property="taskId" />
    <result column="task_no" jdbcType="VARCHAR" property="taskNo" />
  </resultMap>

  <select id="selectByTaskIds" resultType="org.jeecg.module.custom.ocr.dataobject.OcrPictureInfo">
    SELECT * FROM ocr_picture_info WHERE history = 0 AND task_id IN
    <foreach collection="taskIds" item="taskId" open="(" separator="," close=")">
      #{taskId}
    </foreach>
  </select>

  <select id="selectByTaskNos" resultType="org.jeecg.module.custom.ocr.dataobject.OcrPictureInfo">
    SELECT * FROM ocr_picture_info WHERE history = 0 AND task_no IN
    <foreach collection="taskNos" item="taskNo" open="(" separator="," close=")">
      #{taskNo}
    </foreach>
  </select>
</mapper>
