Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
Z
zion
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
zion
Commits
207c0bb1
提交
207c0bb1
authored
1月 15, 2020
作者:
zgy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
9495e71d
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
17 行增加
和
3 行删除
+17
-3
TbCfStationItemController.java
...zion/chinafrica/controller/TbCfStationItemController.java
+2
-0
TbCfStationItemServiceImpl.java
...n/chinafrica/service/impl/TbCfStationItemServiceImpl.java
+1
-0
TbCfStationItemDao.xml
src/main/resources/mapper/TbCfStationItemDao.xml
+2
-2
PayTest.java
src/test/java/com/diaoyun/zion/PayTest.java
+12
-1
没有找到文件。
src/main/java/com/diaoyun/zion/chinafrica/controller/TbCfStationItemController.java
浏览文件 @
207c0bb1
...
...
@@ -211,4 +211,6 @@ public class TbCfStationItemController {
}
}
src/main/java/com/diaoyun/zion/chinafrica/service/impl/TbCfStationItemServiceImpl.java
浏览文件 @
207c0bb1
...
...
@@ -470,4 +470,5 @@ public class TbCfStationItemServiceImpl implements TbCfStationItemService {
}
src/main/resources/mapper/TbCfStationItemDao.xml
浏览文件 @
207c0bb1
...
...
@@ -187,7 +187,7 @@
from tb_cf_station_item
where enable_flag=1 and item_category = #{categoryId}
order by
<if
test=
"order != null"
>
item
_price ${order},
</if>
<if
test=
"order != null"
>
discount
_price ${order},
</if>
item_num desc
...
...
@@ -237,7 +237,7 @@
concat('%',#{name},'%')
or item_tags like concat('%',#{name},'%'))
<if
test=
"order != null "
>
order by
item
_price ${order}
order by
discount
_price ${order}
</if>
</select>
<select
id=
"queryItemByDescription"
resultType=
"com.diaoyun.zion.chinafrica.entity.TbCfStationItemEntity"
>
...
...
src/test/java/com/diaoyun/zion/PayTest.java
浏览文件 @
207c0bb1
...
...
@@ -29,6 +29,7 @@ import net.sf.json.JSONObject;
import
org.apache.commons.lang3.RandomStringUtils
;
import
org.apache.http.Consts
;
import
org.apache.http.HttpRequest
;
import
org.junit.After
;
import
org.junit.Test
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
springfox.documentation.spring.web.json.Json
;
...
...
@@ -240,9 +241,19 @@ public class PayTest {
@Test
public
void
testString
()
{
String
urls
=
"[\"https://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/africa-shop/null/157864293680710851.png\",\"https://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/africa-shop/null/157864293681310503.png\",\"https://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/africa-shop/null/157864293680810696.png\",\"https://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/africa-shop/null/157864293681610328.png\",\"https://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/africa-shop/null/157864293680510821.png\"]"
;
String
str
=
urls
.
substring
(
1
,
urls
.
lastIndexOf
(
"]"
));
String
str
=
urls
.
substring
(
1
,
urls
.
lastIndexOf
(
"]"
));
String
s
=
str
.
replace
(
"\""
,
""
);
System
.
out
.
println
(
s
);
}
@Test
public
void
testCode
()
{
String
code
=
"code"
;
int
i
=
code
.
hashCode
();
System
.
out
.
println
(
i
*
17
);
// System.out.println((int)((Math.random()*7+1)*10000000));
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论