AiSparringSpeechObjectionConfigMapper.xml
2.39 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
<?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.AiSparringSpeechObjectionConfigMapper" >
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.mindworkplate.model.AiSparringSpeechObjectionConfig" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="INTEGER" />
<result column="sector" property="sector" jdbcType="VARCHAR" />
<result column="question_type" property="questionType" jdbcType="VARCHAR" />
<result column="common_question" property="commonQuestion" jdbcType="VARCHAR" />
<result column="handle_approach" property="handleApproach" 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="objection_script" property="objectionScript" jdbcType="LONGVARCHAR" />
<result column="score_rule" property="scoreRule" jdbcType="LONGVARCHAR" />
</resultMap>
<resultMap id="DTOResultMap" type="cn.com.glsx.dj.mindworkplate.dto.AiSparringSpeechObjectionConfigDTO" extends="BaseResultMap">
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
-->
id, sector, question_type, common_question, handle_approach, created_by, created_date,
updated_by, updated_date, deleted_flag
</sql>
<sql id="Blob_Column_List" >
<!--
WARNING - @mbg.generated
-->
objection_script, score_rule
</sql>
<select id="list" parameterType="cn.com.glsx.dj.mindworkplate.dto.AiSparringSpeechObjectionConfigDTO" resultMap="DTOResultMap">
select *
from ai_sparring_speech_objection_config assoc
<where>
assoc.deleted_flag = 'N'
<if test="id != null">
and assoc.id = #{id}
</if>
<if test="sector != null and sector != ''">
and assoc.sector like concat('%', #{sector}, '%')
</if>
<if test="questionType != null and questionType != ''">
and assoc.question_type like concat('%', #{questionType}, '%')
</if>
</where>
</select>
</mapper>