QualityInspectionResultsMapper.xml 1.47 KB
<?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="cn.com.glsx.dj.mindworkplate.mapper.QualityInspectionResultsMapper" >
  <resultMap id="BaseResultMap" type="cn.com.glsx.dj.mindworkplate.model.QualityInspectionResults" >
    <!--
      WARNING - @mbg.generated
    -->
    <id column="inspection_task_id" property="inspectionTaskId" jdbcType="VARCHAR" />
    <result column="inspection_model" property="inspectionModel" jdbcType="INTEGER" />
    <result column="inspection_type" property="inspectionType" jdbcType="INTEGER" />
    <result column="inspection_request_params" property="inspectionRequestParams" jdbcType="VARCHAR" />
    <result column="inspection_result" property="inspectionResult" jdbcType="VARCHAR" />
    <result column="created_at" property="createdAt" jdbcType="TIMESTAMP" />
    <result column="task_id" property="taskId" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--
      WARNING - @mbg.generated
    -->
    inspection_task_id, inspection_model, inspection_type, created_at,inspection_request_params,inspection_result
  </sql>
  <sql id="Blob_Column_List" >
    <!--
      WARNING - @mbg.generated
    -->
    inspection_request_params, inspection_result
  </sql>
  <select id="getByTaskId"
          resultMap="BaseResultMap">
  select * from quality_inspection_results where inspection_task_id = #{taskId}
  </select>
</mapper>