AiInspectionRequestMapper.xml
2.08 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
<?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.AiInspectionRequestMapper" >
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.mindworkplate.model.AiInspectionRequest" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="BIGINT" />
<result column="inspection_date" property="inspectionDate" jdbcType="VARCHAR" />
<result column="employee_phone" property="employeePhone" jdbcType="VARCHAR" />
<result column="request_status" property="requestStatus" jdbcType="TINYINT" />
<result column="task_id" property="taskId" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
<result column="request_params" property="requestParams" jdbcType="LONGVARCHAR" />
<result column="result_data" property="resultData" jdbcType="LONGVARCHAR" />
<result column="ai_mentor_suggestion" property="aiMentorSuggestion" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
-->
id, inspection_date, employee_phone, request_status, task_id, create_time, update_time,request_params, result_data, ai_mentor_suggestion
</sql>
<select id="getCheckProcess"
resultMap="BaseResultMap">
select * from ai_inspection_request where request_status = 1
</select>
<select id="findAiInspectionCheck"
resultMap="BaseResultMap">
select * from ai_inspection_request where request_status = 2 and employee_phone = #{phone} and inspection_date=#{time}
</select>
<select id="getAiTutorSuggest" resultType="java.lang.String">
select ai_mentor_suggestion from ai_inspection_request t1
where inspection_date = #{tutorTime} and t1.sence=#{businessType} and employee_phone =(SELECT phone_number from dj_car_life_staff_info where staff_uuid = #{uuid} and deleted_flag='N' limit 1)
limit 1
</select>
</mapper>