AiSparringInspectionConversationCheckMapper.xml
2.79 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?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.AiSparringInspectionConversationCheckMapper" >
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.mindworkplate.model.AiSparringInspectionConversationCheck" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="INTEGER" />
<result column="main_id" property="mainId" jdbcType="INTEGER" />
<result column="estimated_result" property="estimatedResult" jdbcType="VARCHAR" />
<result column="score" property="score" jdbcType="DECIMAL" />
<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" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="cn.com.glsx.dj.mindworkplate.model.AiSparringInspectionConversationCheck" extends="BaseResultMap" >
<!--
WARNING - @mbg.generated
-->
<result column="digest" property="digest" jdbcType="LONGVARCHAR" />
<result column="quality_inspection" property="qualityInspection" jdbcType="LONGVARCHAR" />
<result column="che_err_message" property="cheErrMessage" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
-->
id, main_id, estimated_result, score, created_by, created_date, updated_by, updated_date,
deleted_flag, che_taskId, che_result_flag
</sql>
<sql id="Blob_Column_List" >
<!--
WARNING - @mbg.generated
-->
digest, quality_inspection, che_err_message
</sql>
<select id="findNeedCheck"
resultMap="BaseResultMap">
select t1.*,t2.task_id as taskId,t2.business_type as businessType from ai_sparring_inspection_conversation_check t1
left join ai_sparring_inspection_defence_main t2 on t1.main_id=t2.id
where t1.che_result_flag=0
</select>
<select id="findCheckingList"
resultMap="BaseResultMap">
select * from ai_sparring_inspection_conversation_check where che_result_flag=1
</select>
<select id="findCheckDetailByTaskId"
resultMap="BaseResultMap">
select t1.*,t2.task_id as taskId,t2.business_type as businessType from ai_sparring_inspection_conversation_check t1
left join ai_sparring_inspection_defence_main t2 on t1.main_id=t2.id
where t2.task_id=#{taskId}
</select>
</mapper>