AiSparringServiceAttitudeCheckMapper.xml
1.98 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.AiSparringServiceAttitudeCheckMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.mindworkplate.model.AiSparringServiceAttitudeCheck">
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="INTEGER"/>
<result column="main_id" property="mainId" jdbcType="INTEGER"/>
<result column="level" property="level" jdbcType="VARCHAR"/>
<result column="created_by" property="createdBy" jdbcType="VARCHAR"/>
<result column="created_date" property="createdDate" jdbcType="TIMESTAMP"/>
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR"/>
<result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP"/>
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR"/>
<result column="che_taskId" property="cheTaskid" jdbcType="VARCHAR"/>
<result column="che_result_flag" property="cheResultFlag" jdbcType="TINYINT"/>
<result column="star" property="star" jdbcType="LONGVARCHAR"/>
<result column="summary" property="summary" jdbcType="LONGVARCHAR"/>
<result column="che_err_message" property="cheErrMessage" jdbcType="LONGVARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, main_id, level, created_by, created_date, updated_by, updated_date, deleted_flag,
che_taskId, che_result_flag, star, summary, che_err_message
</sql>
<select id="findCheckDetailByTaskId" resultMap="BaseResultMap">
select t1.*,t2.task_id as taskId,t2.business_type as businessType
from ai_sparring_service_attitude_check t1
left join ai_sparring_inspection_defence_main t2 on t1.main_id=t2.id
where t2.task_id=#{taskId}
</select>
</mapper>