Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
Z
zion
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
zion
Commits
5ebb6a27
提交
5ebb6a27
authored
11月 25, 2019
作者:
luojie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新模板识别,中英文商品标题都可以识别
上级
fe317f6a
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
3 行删除
+15
-3
TbCfItemCommentServiceImpl.java
...n/chinafrica/service/impl/TbCfItemCommentServiceImpl.java
+0
-1
TbCfItemDetailServiceImpl.java
...on/chinafrica/service/impl/TbCfItemDetailServiceImpl.java
+13
-0
TbCfExpTemKeywordDao.xml
src/main/resources/mapper/TbCfExpTemKeywordDao.xml
+2
-2
没有找到文件。
src/main/java/com/diaoyun/zion/chinafrica/service/impl/TbCfItemCommentServiceImpl.java
浏览文件 @
5ebb6a27
...
...
@@ -4,7 +4,6 @@ package com.diaoyun.zion.chinafrica.service.impl;
import
com.diaoyun.zion.chinafrica.dao.TbCfItemCommentDao
;
import
com.diaoyun.zion.chinafrica.entity.TbCfItemCommentEntity
;
import
com.diaoyun.zion.chinafrica.entity.TbCfItemCommentEntityExtends
;
import
com.diaoyun.zion.chinafrica.entity.TbCfReplyEntity
;
import
com.diaoyun.zion.chinafrica.service.TbCfItemCommentService
;
import
com.diaoyun.zion.master.base.Result
;
import
com.diaoyun.zion.master.enums.ResultCodeEnum
;
...
...
src/main/java/com/diaoyun/zion/chinafrica/service/impl/TbCfItemDetailServiceImpl.java
浏览文件 @
5ebb6a27
...
...
@@ -16,6 +16,7 @@ import com.diaoyun.zion.master.common.TokenManager;
import
com.diaoyun.zion.master.enums.ResultCodeEnum
;
import
com.diaoyun.zion.master.security.JwtTokenProvider
;
import
com.diaoyun.zion.master.util.IdUtil
;
import
com.diaoyun.zion.master.util.ValidateUtils
;
import
com.diaoyun.zion.master.util.WordposHelper
;
import
net.sf.json.JSONArray
;
import
net.sf.json.JSONObject
;
...
...
@@ -185,6 +186,18 @@ public class TbCfItemDetailServiceImpl implements TbCfItemDetailService {
//根据keyword获取运费模板
List
<
TbCfExpressTemplateEntity
>
tbCfExpressTemplateList
=
tbCfExpTemKeywordDao
.
getTemplateByKeyword
(
keyword
);
totalTemplateSet
.
addAll
(
tbCfExpressTemplateList
);
//TODO 后续优化
if
(
ValidateUtils
.
isContainChinese
(
keyword
))
{
if
(
"0"
.
equals
(
tbCfExpressTemplateList
.
size
()))
{
String
[]
split
=
keyword
.
split
(
""
);
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
if
(
i
+
1
<
split
.
length
){
List
<
TbCfExpressTemplateEntity
>
tbCfExpressTemplateLists
=
tbCfExpTemKeywordDao
.
getTemplateByKeyword
(
split
[
i
]+
split
[
i
+
1
]);
totalTemplateSet
.
addAll
(
tbCfExpressTemplateLists
);
}
}
}
}
}
}
//没有的话就设置 其他
...
...
src/main/resources/mapper/TbCfExpTemKeywordDao.xml
浏览文件 @
5ebb6a27
...
...
@@ -80,8 +80,8 @@
<!--根据keyword获取运费模板-->
<select
id=
"getTemplateByKeyword"
resultType=
"com.diaoyun.zion.chinafrica.entity.TbCfExpressTemplateEntity"
>
select t2.* from tb_cf_exp_tem_keyword t1,tb_cf_express_template t2 where t1.keyword=#{keyword}
and t1.template_id=t2.template_id
select DISTINCT t2.* from tb_cf_exp_tem_keyword t1 left join tb_cf_express_template t2 on t1.template_id=t2.template_id
where t1.keyword LIKE concat('%',#{keyword},'%') or t1.enkeyword LIKE concat('%',#{keyword},'%')
</select>
</mapper>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论