Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
oms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
oms-ci-test
Commits
0c1b8b2b
提交
0c1b8b2b
authored
5月 28, 2023
作者:
张小凤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rental(add)
上级
141eeb5e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
3 行删除
+12
-3
pom.xml
pom.xml
+5
-0
RentalOrdersServiceImpl.java
...ava/com/mmc/oms/service/Impl/RentalOrdersServiceImpl.java
+5
-1
application-local.yml
src/main/resources/application-local.yml
+2
-2
没有找到文件。
pom.xml
浏览文件 @
0c1b8b2b
...
@@ -18,6 +18,11 @@
...
@@ -18,6 +18,11 @@
</properties>
</properties>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
com.aliyun.oss
</groupId>
<artifactId>
aliyun-sdk-oss
</artifactId>
<version>
3.10.2
</version>
</dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-base
</artifactId>
<artifactId>
easypoi-base
</artifactId>
<version>
4.1.0
</version>
<version>
4.1.0
</version>
...
...
src/main/java/com/mmc/oms/service/Impl/RentalOrdersServiceImpl.java
浏览文件 @
0c1b8b2b
...
@@ -11,6 +11,7 @@ import com.mmc.oms.model.vo.PriceAcquisition;
...
@@ -11,6 +11,7 @@ import com.mmc.oms.model.vo.PriceAcquisition;
import
com.mmc.oms.model.vo.RentalOrderVO
;
import
com.mmc.oms.model.vo.RentalOrderVO
;
import
com.mmc.oms.service.RentalOrdersService
;
import
com.mmc.oms.service.RentalOrdersService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -32,6 +33,8 @@ public class RentalOrdersServiceImpl implements RentalOrdersService {
...
@@ -32,6 +33,8 @@ public class RentalOrdersServiceImpl implements RentalOrdersService {
@Autowired
private
RentalOrdersDao
rentalOrdersDao
;
@Autowired
private
RentalOrdersDao
rentalOrdersDao
;
@Autowired
private
StringRedisTemplate
stringRedisTemplate
;
@Override
@Override
public
OrderInfoDTO
feignAddLease
(
LeaseOrderVO
param
)
{
public
OrderInfoDTO
feignAddLease
(
LeaseOrderVO
param
)
{
OrderInfoDO
orderInfo
=
new
OrderInfoDO
(
param
);
OrderInfoDO
orderInfo
=
new
OrderInfoDO
(
param
);
...
@@ -52,8 +55,9 @@ public class RentalOrdersServiceImpl implements RentalOrdersService {
...
@@ -52,8 +55,9 @@ public class RentalOrdersServiceImpl implements RentalOrdersService {
receipt
.
setCreateTime
(
cdate
);
receipt
.
setCreateTime
(
cdate
);
rentalOrdersDao
.
insertOrderReceipt
(
receipt
);
rentalOrdersDao
.
insertOrderReceipt
(
receipt
);
orderInfo
.
setBalance
(
getRemainingBalance
(
param
.
getRepoAccountId
()));
orderInfo
.
setBalance
(
getRemainingBalance
(
param
.
getRepoAccountId
()));
// 将当前的用户id及订单编号存入redis
OrderInfoDTO
dto
=
orderInfo
.
buildOrderInfoDTO
();
OrderInfoDTO
dto
=
orderInfo
.
buildOrderInfoDTO
();
stringRedisTemplate
.
opsForValue
().
set
(
orderInfo
.
getOrderNo
(),
JsonUtil
.
parseObjToJson
(
dto
));
return
dto
;
return
dto
;
}
}
...
...
src/main/resources/application-local.yml
浏览文件 @
0c1b8b2b
...
@@ -6,8 +6,8 @@ spring:
...
@@ -6,8 +6,8 @@ spring:
username
:
tmj
username
:
tmj
password
:
MMC@2022&MYSQL
password
:
MMC@2022&MYSQL
redis
:
redis
:
database
:
3
database
:
0
host
:
r-wz9ke310fs684hacn1.redis.rds.aliyuncs.com
host
:
r-wz9ke310fs684hacn1
pd
.redis.rds.aliyuncs.com
port
:
6379
port
:
6379
password
:
MMC@2022&REDIS
password
:
MMC@2022&REDIS
jedis
:
jedis
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论