Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lei
fzm-joying
Commits
c06c3ea5
Commit
c06c3ea5
authored
Feb 16, 2022
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
1d97e6ad
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
7 deletions
+15
-7
BannerController.java
.../main/java/com/fzm/admin/controller/BannerController.java
+2
-2
CopyrightApply.java
...n/src/main/java/com/fzm/common/entity/CopyrightApply.java
+2
-1
OrderServiceImpl.java
...in/java/com/fzm/common/service/impl/OrderServiceImpl.java
+2
-1
WxPayServiceImpl.java
...in/java/com/fzm/common/service/impl/WxPayServiceImpl.java
+7
-1
CopyrightApplyMapper.xml
...common/src/main/resources/mapper/CopyrightApplyMapper.xml
+1
-1
NftTransferRecordMapper.xml
...mon/src/main/resources/mapper/NftTransferRecordMapper.xml
+1
-1
logback.2022-02-16.0.log
logs/logback.2022-02-16.0.log
+0
-0
No files found.
joying-admin/src/main/java/com/fzm/admin/controller/BannerController.java
View file @
c06c3ea5
...
@@ -37,8 +37,8 @@ public class BannerController {
...
@@ -37,8 +37,8 @@ public class BannerController {
@PostMapping
(
"/create"
)
@PostMapping
(
"/create"
)
@ApiOperation
(
"新建banner"
)
@ApiOperation
(
"新建banner"
)
public
ResponseModel
<
Boolean
>
create
(
MultipartFile
posterFile
,
String
name
,
String
jumpUrl
,
Integer
sort
)
throws
IOException
{
public
ResponseModel
<
Boolean
>
create
(
@RequestPart
MultipartFile
posterFile
,
@RequestParam
String
name
,
@RequestParam
String
jumpUrl
,
@RequestParam
Integer
sort
)
throws
IOException
{
if
(
posterFile
==
null
||
StringUtils
.
is
AnyBlank
(
name
,
jumpUrl
)
||
sort
==
null
)
{
if
(
posterFile
==
null
||
StringUtils
.
is
Blank
(
name
)
||
sort
==
null
)
{
throw
GlobalException
.
newException
(
ResultCode
.
VALIDATE_FAILED
);
throw
GlobalException
.
newException
(
ResultCode
.
VALIDATE_FAILED
);
}
}
String
url
=
obsUtil
.
putObject
(
posterFile
);
String
url
=
obsUtil
.
putObject
(
posterFile
);
...
...
joying-common/src/main/java/com/fzm/common/entity/CopyrightApply.java
View file @
c06c3ea5
...
@@ -95,7 +95,8 @@ public class CopyrightApply {
...
@@ -95,7 +95,8 @@ public class CopyrightApply {
@ApiModelProperty
(
value
=
"版权申请后台核验通过时间"
)
@ApiModelProperty
(
value
=
"版权申请后台核验通过时间"
)
private
Date
passTime
;
private
Date
passTime
;
@ApiModelProperty
(
value
=
"登记状态 0-待审核 1-登记成功 2-审核失败"
)
// 参考枚举类-com.fzm.common.enums.CopyrightApplyState
@ApiModelProperty
(
value
=
"登记状态 -2:待支付 -1:已撤回 0:待核验 2:提交审核 3:已驳回 4:审核成功 5:驳回 6:待审核 7:待终审"
)
private
Integer
registerState
;
private
Integer
registerState
;
@ApiModelProperty
(
value
=
"存证哈希"
)
@ApiModelProperty
(
value
=
"存证哈希"
)
...
...
joying-common/src/main/java/com/fzm/common/service/impl/OrderServiceImpl.java
View file @
c06c3ea5
...
@@ -63,7 +63,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
...
@@ -63,7 +63,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
queryWrapper
.
eq
(
"pay_scene"
,
payScene
)
queryWrapper
.
eq
(
"pay_scene"
,
payScene
)
.
eq
(
"product_id"
,
productId
)
.
eq
(
"product_id"
,
productId
)
.
eq
(
"order_status"
,
orderStatus
);
.
eq
(
"order_status"
,
orderStatus
);
return
this
.
getOne
(
queryWrapper
);
return
this
.
getOne
(
queryWrapper
,
false
);
}
}
@Override
@Override
...
@@ -178,4 +178,5 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
...
@@ -178,4 +178,5 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
queryWrapper
.
le
(
"create_date"
,
instant
);
queryWrapper
.
le
(
"create_date"
,
instant
);
return
this
.
list
(
queryWrapper
);
return
this
.
list
(
queryWrapper
);
}
}
}
}
joying-common/src/main/java/com/fzm/common/service/impl/WxPayServiceImpl.java
View file @
c06c3ea5
...
@@ -244,7 +244,7 @@ public class WxPayServiceImpl implements WxPayService {
...
@@ -244,7 +244,7 @@ public class WxPayServiceImpl implements WxPayService {
@Override
@Override
public
Boolean
refund
(
Long
orderId
,
Integer
channel
)
throws
IOException
,
InterruptedException
{
public
Boolean
refund
(
Long
orderId
,
Integer
channel
)
throws
IOException
,
InterruptedException
{
B
oolean
result
;
b
oolean
result
;
RLock
lock
=
redisson
.
getLock
(
"refund-"
+
orderId
);
RLock
lock
=
redisson
.
getLock
(
"refund-"
+
orderId
);
if
(!
lock
.
tryLock
(
10
,
TimeUnit
.
SECONDS
))
{
if
(!
lock
.
tryLock
(
10
,
TimeUnit
.
SECONDS
))
{
throw
GlobalException
.
newException
(
ResultCode
.
REFUND_FAILED
,
"当前订单正在退款中,请勿重复点击"
);
throw
GlobalException
.
newException
(
ResultCode
.
REFUND_FAILED
,
"当前订单正在退款中,请勿重复点击"
);
...
@@ -254,6 +254,12 @@ public class WxPayServiceImpl implements WxPayService {
...
@@ -254,6 +254,12 @@ public class WxPayServiceImpl implements WxPayService {
if
(
order
==
null
||
!
order
.
getOrderStatus
().
equals
(
OrderStatus
.
PAYED
.
getStatus
()))
{
if
(
order
==
null
||
!
order
.
getOrderStatus
().
equals
(
OrderStatus
.
PAYED
.
getStatus
()))
{
throw
GlobalException
.
newException
(
ResultCode
.
REFUND_FAILED
,
"当前订单未支付成功"
);
throw
GlobalException
.
newException
(
ResultCode
.
REFUND_FAILED
,
"当前订单未支付成功"
);
}
}
// 订单金额=0的时候,直接返回
if
(
order
.
getFee
()
<=
0
)
{
// 修改订单状态为退款成功
orderService
.
updateOrderStatus
(
orderId
,
OrderStatus
.
REFUNDED
);
return
true
;
}
Refund
refund
=
refundService
.
getByOrderId
(
orderId
);
Refund
refund
=
refundService
.
getByOrderId
(
orderId
);
Long
out_refund_no
;
Long
out_refund_no
;
if
(
refund
==
null
)
{
if
(
refund
==
null
)
{
...
...
joying-common/src/main/resources/mapper/CopyrightApplyMapper.xml
View file @
c06c3ea5
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
FROM tb_copyright_apply c
FROM tb_copyright_apply c
INNER JOIN tb_user u ON c.user_id = u.id
INNER JOIN tb_user u ON c.user_id = u.id
<where>
<where>
c.register_state
!= -1
c.register_state
not in(-1,-2)
<if
test=
"telephone!= null and telephone != ''"
>
<if
test=
"telephone!= null and telephone != ''"
>
and u.telephone = #{telephone}
and u.telephone = #{telephone}
</if>
</if>
...
...
joying-common/src/main/resources/mapper/NftTransferRecordMapper.xml
View file @
c06c3ea5
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
LEFT JOIN tb_user d ON a.to_address = d.wallet
LEFT JOIN tb_user d ON a.to_address = d.wallet
LEFT JOIN tb_category e ON b.category_id = e.id
LEFT JOIN tb_category e ON b.category_id = e.id
<where>
<where>
1=1
<if
test=
"nftHash != null and nftHash != ''"
>
<if
test=
"nftHash != null and nftHash != ''"
>
and a.nft_hash = #{nftHash}
and a.nft_hash = #{nftHash}
</if>
</if>
...
@@ -37,6 +36,7 @@
...
@@ -37,6 +36,7 @@
and a.create_date
<
= #{end}
and a.create_date
<
= #{end}
</if>
</if>
</where>
</where>
order by a.create_date desc
</select>
</select>
<select
id=
"list"
resultType=
"com.fzm.common.entity.vo.NftTransferDetailVo"
>
<select
id=
"list"
resultType=
"com.fzm.common.entity.vo.NftTransferDetailVo"
>
SELECT a.id,
SELECT a.id,
...
...
logs/logback.2022-02-16.0.log
0 → 100644
View file @
c06c3ea5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment