Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
c75546dc
提交
c75546dc
authored
2月 27, 2021
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化分类导航栏
上级
1e1fe643
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
73 行增加
和
37 行删除
+73
-37
TbCfClassificationEntity.java
...in/java/com/platform/entity/TbCfClassificationEntity.java
+27
-11
FeeTask.java
platform-admin/src/main/java/com/platform/task/FeeTask.java
+15
-10
TbCfClassificationDao.xml
...main/resources/com/platform/dao/TbCfClassificationDao.xml
+29
-16
TbCfOrderListDao.xml
.../src/main/resources/com/platform/dao/TbCfOrderListDao.xml
+2
-0
没有找到文件。
platform-admin/src/main/java/com/platform/entity/TbCfClassificationEntity.java
浏览文件 @
c75546dc
...
...
@@ -36,7 +36,7 @@ public class TbCfClassificationEntity implements Serializable {
/**
* 是否展示
*/
private
String
isShow
;
private
Integer
isShow
;
/**
* 创建时间
*/
...
...
@@ -46,6 +46,10 @@ public class TbCfClassificationEntity implements Serializable {
*/
private
Date
updateTime
;
private
Integer
type
;
private
String
categoryId
;
/**
* 设置:首页分类导航ID
*/
...
...
@@ -111,19 +115,15 @@ public class TbCfClassificationEntity implements Serializable {
public
Integer
getSort
()
{
return
sort
;
}
/**
* 设置:是否展示
*/
public
void
setIsShow
(
String
isShow
)
{
this
.
isShow
=
isShow
;
}
/**
* 获取:是否展示
*/
public
String
getIsShow
()
{
public
Integer
getIsShow
()
{
return
isShow
;
}
public
void
setIsShow
(
Integer
isShow
)
{
this
.
isShow
=
isShow
;
}
/**
* 设置:创建时间
*/
...
...
@@ -150,4 +150,20 @@ public class TbCfClassificationEntity implements Serializable {
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
Integer
getType
()
{
return
type
;
}
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
public
String
getCategoryId
()
{
return
categoryId
;
}
public
void
setCategoryId
(
String
categoryId
)
{
this
.
categoryId
=
categoryId
;
}
}
platform-admin/src/main/java/com/platform/task/FeeTask.java
浏览文件 @
c75546dc
...
...
@@ -24,19 +24,24 @@ public class FeeTask {
@Scheduled
(
cron
=
"0 0 0/1 * * ? "
)
public
void
FeeTask
()
{
String
url
=
"http://op.juhe.cn/onebox/exchange/currency"
;
Map
<
String
,
String
>
parameters
=
new
HashMap
<>();
parameters
.
put
(
"from"
,
"CNY"
);
parameters
.
put
(
"to"
,
"USD"
);
parameters
.
put
(
"key"
,
"01a825bc0e074568e7bcec48fdb5f482"
);
String
s
=
HttpUtils
.
sendGet
(
url
,
parameters
);
String
url
=
"http://op.juhe.cn/onebox/exchange/currency"
;
Map
<
String
,
String
>
parameters
=
new
HashMap
<>();
parameters
.
put
(
"from"
,
"CNY"
);
parameters
.
put
(
"to"
,
"USD"
);
parameters
.
put
(
"key"
,
"01a825bc0e074568e7bcec48fdb5f482"
);
String
s
=
HttpUtils
.
sendGet
(
url
,
parameters
);
JSONArray
result
=
JSONObject
.
fromObject
(
s
).
getJSONArray
(
"result"
);
Map
<
String
,
String
>
map
=
(
Map
<
String
,
String
>)
result
.
get
(
1
);
String
result1
=
map
.
get
(
"result"
).
substring
(
0
,
4
);
BigDecimal
fee
=
new
BigDecimal
(
result1
);
TbCfFeeEntity
tbFee
=
new
TbCfFeeEntity
();
Map
<
String
,
String
>
map
=
(
Map
<
String
,
String
>)
result
.
get
(
1
);
String
result1
=
map
.
get
(
"result"
).
substring
(
0
,
4
);
BigDecimal
fee
=
new
BigDecimal
(
result1
);
TbCfFeeEntity
tbFee
=
new
TbCfFeeEntity
();
tbFee
.
setFeeId
(
"54sda4fa5dsa4f"
);
tbFee
.
setFeeRate
(
fee
);
tbCfFeeService
.
update
(
tbFee
);
}
public
static
void
main
(
String
[]
args
)
{
String
str
=
"122,253,3555"
;
System
.
out
.
println
(
str
.
substring
(
str
.
lastIndexOf
(
","
)
+
1
));
}
}
platform-admin/src/main/resources/com/platform/dao/TbCfClassificationDao.xml
浏览文件 @
c75546dc
...
...
@@ -12,12 +12,16 @@
<result
property=
"isShow"
column=
"is_show"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"type"
column=
"type"
/>
<result
property=
"categoryId"
column=
"category_id"
/>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfClassificationEntity"
>
select
`id`,
`goodtype_id`,
`type`,
`category_id`,
`class_title`,
`picture`,
`sort`,
...
...
@@ -32,6 +36,8 @@
select
`id`,
`goodtype_id`,
`type`,
`category_id`,
`class_title`,
`picture`,
`sort`,
...
...
@@ -68,6 +74,8 @@
insert into tb_cf_classification(
`id`,
`goodtype_id`,
`type`,
`category_id`,
`class_title`,
`picture`,
`sort`,
...
...
@@ -77,6 +85,8 @@
values(
#{id},
#{goodtypeId},
#{type},
#{categoryId},
#{classTitle},
#{picture},
#{sort},
...
...
@@ -89,6 +99,8 @@
update tb_cf_classification
<set>
<if
test=
"goodtypeId != null"
>
`goodtype_id` = #{goodtypeId},
</if>
<if
test=
"type != null"
>
`type` = #{type},
</if>
<if
test=
"categoryId != null"
>
`category_id` = #{categoryId},
</if>
<if
test=
"classTitle != null"
>
`class_title` = #{classTitle},
</if>
<if
test=
"picture != null"
>
`picture` = #{picture},
</if>
<if
test=
"sort != null"
>
`sort` = #{sort},
</if>
...
...
@@ -99,6 +111,7 @@
where id = #{id}
</update>
<delete
id=
"delete"
>
delete from tb_cf_classification where id = #{value}
</delete>
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfOrderListDao.xml
浏览文件 @
c75546dc
...
...
@@ -175,6 +175,7 @@
LEFT JOIN tb_cf_coupon c ON c.coupon_id = o.coupon_id
WHERE
r.order_id = #{orderId}
order by i.item_id
</select>
<select
id=
"queryOrderDeliveryWebList"
resultType=
"com.platform.vo.DeliveryOrderVo"
>
...
...
@@ -203,6 +204,7 @@
o.order_id,
o.order_no,
o.user_name,
o.activity_id,
f.pay_id,
f.pay_way_code,
c.coupon_title,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论