铭牌解析提交
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
<?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="com.volvo.ai.analytic.center.mapper.TmNameplateCorpusMapper">
|
||||
|
||||
<select id="countTmNameplateCorpusByData" resultType="java.lang.Integer">
|
||||
select count(1) from (
|
||||
SELECT
|
||||
id,
|
||||
customer_flow_id,
|
||||
nameplate_content,
|
||||
nameplate_start_time,
|
||||
nameplate_end_time,
|
||||
nameplate_time,
|
||||
is_deleted,
|
||||
create_time
|
||||
FROM
|
||||
`tm_nameplate_corpus`
|
||||
WHERE is_deleted = 0
|
||||
AND create_time between #{statTime} and #{endTime}
|
||||
) tab
|
||||
</select>
|
||||
|
||||
<select id="queryTmNameplateCorpusByData" resultType="com.volvo.ai.analytic.center.entity.TmNameplateCorpus" >
|
||||
|
||||
SELECT
|
||||
id,
|
||||
customer_flow_id,
|
||||
nameplate_content,
|
||||
nameplate_start_time,
|
||||
nameplate_end_time,
|
||||
nameplate_time,
|
||||
is_deleted,
|
||||
create_time
|
||||
FROM
|
||||
`tm_nameplate_corpus`
|
||||
WHERE is_deleted = 0
|
||||
AND create_time between #{statTime} and #{endTime}
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
<select id="countQueryTmNameplateCorpusRetry" resultType="java.lang.Integer">
|
||||
select count(1) from (
|
||||
SELECT
|
||||
id,
|
||||
customer_flow_id,
|
||||
nameplate_content,
|
||||
nameplate_start_time,
|
||||
nameplate_end_time,
|
||||
nameplate_time,
|
||||
is_deleted,
|
||||
create_time
|
||||
FROM
|
||||
`tm_nameplate_corpus` tnc
|
||||
WHERE tnc.is_deleted = 0
|
||||
AND tnc.create_time between #{statTime} and #{endTime}
|
||||
<if test="retry==true">
|
||||
and not exists(
|
||||
select 1 from tt_nameplate_record t
|
||||
WHERE t.is_deleted = 0 and t.nameplate_corpus_id = tnc.id
|
||||
AND t.customer_flow_id=tnc.customer_flow_id
|
||||
)
|
||||
</if>
|
||||
<if test="customerFlowIds!=null and customerFlowIds!=''">
|
||||
AND tnc.customer_flow_id IN
|
||||
<foreach collection="customerFlowIds" item="customerFlowId" open="(" separator="," close=")">
|
||||
#{customerFlowId}
|
||||
</foreach>
|
||||
</if>
|
||||
) tab
|
||||
</select>
|
||||
|
||||
<select id="queryTmNameplateCorpusRetry" resultType="com.volvo.ai.analytic.center.entity.TmNameplateCorpus" >
|
||||
|
||||
SELECT
|
||||
id,
|
||||
customer_flow_id,
|
||||
nameplate_content,
|
||||
nameplate_start_time,
|
||||
nameplate_end_time,
|
||||
nameplate_time,
|
||||
is_deleted,
|
||||
create_time
|
||||
FROM
|
||||
`tm_nameplate_corpus` tnc
|
||||
WHERE tnc.is_deleted = 0
|
||||
AND tnc.create_time between #{statTime} and #{endTime}
|
||||
<if test="retry==true">
|
||||
and not exists(
|
||||
select 1 from tt_nameplate_record t
|
||||
WHERE t.is_deleted = 0 and t.nameplate_corpus_id = tnc.id
|
||||
AND t.customer_flow_id=tnc.customer_flow_id
|
||||
)
|
||||
</if>
|
||||
<if test="customerFlowIds!=null and customerFlowIds!=''">
|
||||
AND tnc.customer_flow_id IN
|
||||
<foreach collection="customerFlowIds" item="customerFlowId" open="(" separator="," close=")">
|
||||
#{customerFlowId}
|
||||
</foreach>
|
||||
</if>
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user