Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
haoban3.0
haoban-manage3.0
Commits
d01122a2
Commit
d01122a2
authored
Mar 24, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug处理
parent
ca886b87
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
9 deletions
+31
-9
LicenceOrderApiService.java
...an/manage/api/service/licence/LicenceOrderApiService.java
+3
-1
TabHaobanLicenceOrderMapper.java
...rvice/dao/mapper/licence/TabHaobanLicenceOrderMapper.java
+4
-1
LicenceOrderService.java
...n/manage/service/service/licence/LicenceOrderService.java
+3
-1
LicenceOrderServiceImpl.java
...service/service/licence/impl/LicenceOrderServiceImpl.java
+4
-2
LicenceOrderApiServiceImpl.java
.../service/out/impl/licence/LicenceOrderApiServiceImpl.java
+14
-4
TabHaobanLicenceOrderMapper.xml
.../resources/mapper/licence/TabHaobanLicenceOrderMapper.xml
+3
-0
LicenceOrderController.java
...manage/web/controller/licence/LicenceOrderController.java
+0
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/licence/LicenceOrderApiService.java
View file @
d01122a2
...
@@ -7,6 +7,8 @@ import com.gic.haoban.manage.api.dto.licence.LicenceOrderPageDTO;
...
@@ -7,6 +7,8 @@ import com.gic.haoban.manage.api.dto.licence.LicenceOrderPageDTO;
import
com.gic.haoban.manage.api.dto.qdto.licence.LicenceOrderPageQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.licence.LicenceOrderPageQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.licence.LicenceOrderQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.licence.LicenceOrderQDTO
;
import
java.util.Date
;
/**
/**
* <p>
* <p>
* 服务类
* 服务类
...
@@ -100,7 +102,7 @@ public interface LicenceOrderApiService {
...
@@ -100,7 +102,7 @@ public interface LicenceOrderApiService {
* @param wxOrderId 微信支付id
* @param wxOrderId 微信支付id
* @return
* @return
*/
*/
ServiceResponse
<
Boolean
>
saveTransactionCode
(
Long
orderId
,
String
transactionCode
,
String
prepayId
,
String
wxOrderId
);
ServiceResponse
<
Boolean
>
saveTransactionCode
(
Long
orderId
,
String
transactionCode
,
String
prepayId
,
String
wxOrderId
,
Date
payTime
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/licence/TabHaobanLicenceOrderMapper.java
View file @
d01122a2
...
@@ -4,6 +4,8 @@ import com.gic.haoban.manage.api.dto.qdto.licence.LicenceOrderPageQDTO;
...
@@ -4,6 +4,8 @@ import com.gic.haoban.manage.api.dto.qdto.licence.LicenceOrderPageQDTO;
import
com.gic.haoban.manage.service.entity.licence.TabHaobanLicenceOrder
;
import
com.gic.haoban.manage.service.entity.licence.TabHaobanLicenceOrder
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
javax.xml.crypto.Data
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -84,7 +86,8 @@ public interface TabHaobanLicenceOrderMapper {
...
@@ -84,7 +86,8 @@ public interface TabHaobanLicenceOrderMapper {
List
<
TabHaobanLicenceOrder
>
getLicenceOrderPage
(
LicenceOrderPageQDTO
licenceOrderPageQDTO
);
List
<
TabHaobanLicenceOrder
>
getLicenceOrderPage
(
LicenceOrderPageQDTO
licenceOrderPageQDTO
);
Integer
saveTransactionCode
(
@Param
(
"orderId"
)
Long
orderId
,
@Param
(
"transactionCode"
)
String
transactionCode
,
@Param
(
"prepayId"
)
String
prepayId
,
@Param
(
"wxOrderId"
)
String
wxOrderId
);
Integer
saveTransactionCode
(
@Param
(
"orderId"
)
Long
orderId
,
@Param
(
"transactionCode"
)
String
transactionCode
,
@Param
(
"prepayId"
)
String
prepayId
,
@Param
(
"wxOrderId"
)
String
wxOrderId
,
@Param
(
"payTime"
)
Date
payTime
);
/**
/**
* 获取订单详情
* 获取订单详情
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/licence/LicenceOrderService.java
View file @
d01122a2
...
@@ -7,6 +7,8 @@ import com.gic.haoban.manage.api.dto.qdto.licence.LicenceOrderQDTO;
...
@@ -7,6 +7,8 @@ import com.gic.haoban.manage.api.dto.qdto.licence.LicenceOrderQDTO;
import
com.gic.haoban.manage.service.entity.licence.TabHaobanLicenceOrder
;
import
com.gic.haoban.manage.service.entity.licence.TabHaobanLicenceOrder
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.Date
;
/**
/**
* <p>
* <p>
* 企业微信许可账号购买
* 企业微信许可账号购买
...
@@ -84,7 +86,7 @@ public interface LicenceOrderService {
...
@@ -84,7 +86,7 @@ public interface LicenceOrderService {
* @param wxOrderId 微信支付id
* @param wxOrderId 微信支付id
* @return
* @return
*/
*/
Integer
saveTransactionCode
(
Long
orderId
,
String
transactionCode
,
String
prepayId
,
String
wxOrderId
);
Integer
saveTransactionCode
(
Long
orderId
,
String
transactionCode
,
String
prepayId
,
String
wxOrderId
,
Date
payTime
);
/**
/**
* 查询微信订单详情
* 查询微信订单详情
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/licence/impl/LicenceOrderServiceImpl.java
View file @
d01122a2
...
@@ -66,6 +66,8 @@ public class LicenceOrderServiceImpl implements LicenceOrderService {
...
@@ -66,6 +66,8 @@ public class LicenceOrderServiceImpl implements LicenceOrderService {
TabHaobanLicenceOrder
order
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
licenceOrderQDTO
),
TabHaobanLicenceOrder
.
class
);
TabHaobanLicenceOrder
order
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
licenceOrderQDTO
),
TabHaobanLicenceOrder
.
class
);
Date
now
=
new
Date
();
Date
now
=
new
Date
();
order
.
setOrderId
(
orderId
);
order
.
setOrderId
(
orderId
);
//默认支付状态为待支付
order
.
setOrderStatus
(
0
);
order
.
setCreateTime
(
now
);
order
.
setCreateTime
(
now
);
order
.
setUpdateTime
(
now
);
order
.
setUpdateTime
(
now
);
Date
expireTime
;
Date
expireTime
;
...
@@ -208,8 +210,8 @@ public class LicenceOrderServiceImpl implements LicenceOrderService {
...
@@ -208,8 +210,8 @@ public class LicenceOrderServiceImpl implements LicenceOrderService {
}
}
@Override
@Override
public
Integer
saveTransactionCode
(
Long
orderId
,
String
transactionCode
,
String
prepayId
,
String
wxOrderId
)
{
public
Integer
saveTransactionCode
(
Long
orderId
,
String
transactionCode
,
String
prepayId
,
String
wxOrderId
,
Date
payTime
)
{
return
tabHaobanLicenceOrderMapper
.
saveTransactionCode
(
orderId
,
transactionCode
,
prepayId
,
wxOrderId
);
return
tabHaobanLicenceOrderMapper
.
saveTransactionCode
(
orderId
,
transactionCode
,
prepayId
,
wxOrderId
,
payTime
);
}
}
@Override
@Override
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/licence/LicenceOrderApiServiceImpl.java
View file @
d01122a2
...
@@ -174,11 +174,21 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
...
@@ -174,11 +174,21 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
String
orderId
=
object
.
getString
(
"orderId"
);
String
orderId
=
object
.
getString
(
"orderId"
);
String
transactionId
=
object
.
getString
(
"transactionId"
);
String
transactionId
=
object
.
getString
(
"transactionId"
);
String
timeEnd
=
object
.
getString
(
"timeEnd"
);
String
timeEnd
=
object
.
getString
(
"timeEnd"
);
TabHaobanLicenceOrder
licenceOrder
=
licenceOrderService
.
selectByTransactionId
(
transactionId
);
TabHaobanLicenceOrder
licenceOrder
=
licenceOrderService
.
selectByTransactionId
(
orderId
);
if
(
licenceOrder
==
null
){
logger
.
info
(
"微信回调的订单编号:{}异常!!"
,
orderId
);
return
ServiceResponse
.
success
(
false
);
}
if
(
licenceOrder
.
getOrderStatus
()
==
1
){
//微信会多次回调
logger
.
info
(
"微信回调的订单已处理!"
);
return
ServiceResponse
.
success
(
false
);
}
Date
payTime
=
DateUtil
.
strToDate
(
DateUtil
.
FORMAT_DATETIME_14
,
timeEnd
);
//更新订单状态
//更新订单状态
licenceOrderService
.
updateLicenceOrderType
(
licenceOrder
.
getOrderId
(),
1
,
licenceOrder
.
getEnterpriseId
(),
licenceOrder
.
getWxEnterpriseId
(),
"系统"
,
1
);
licenceOrderService
.
updateLicenceOrderType
(
licenceOrder
.
getOrderId
(),
1
,
licenceOrder
.
getEnterpriseId
(),
licenceOrder
.
getWxEnterpriseId
(),
"系统"
,
1
);
//保存微信订单id
//保存微信订单id
licenceOrderService
.
saveTransactionCode
(
licenceOrder
.
getOrderId
(),
null
,
null
,
orderId
);
licenceOrderService
.
saveTransactionCode
(
licenceOrder
.
getOrderId
(),
null
,
null
,
transactionId
,
payTime
);
//生成企业微信订单
//生成企业微信订单
// payLicenceOrder(licenceOrder.getOrderId(),licenceOrder.getWxEnterpriseId());
// payLicenceOrder(licenceOrder.getOrderId(),licenceOrder.getWxEnterpriseId());
//查询gic品牌名称
//查询gic品牌名称
...
@@ -225,8 +235,8 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
...
@@ -225,8 +235,8 @@ public class LicenceOrderApiServiceImpl implements LicenceOrderApiService {
}
}
@Override
@Override
public
ServiceResponse
<
Boolean
>
saveTransactionCode
(
Long
orderId
,
String
transactionCode
,
String
prepayId
,
String
wxOrderId
)
{
public
ServiceResponse
<
Boolean
>
saveTransactionCode
(
Long
orderId
,
String
transactionCode
,
String
prepayId
,
String
wxOrderId
,
Date
payTime
)
{
licenceOrderService
.
saveTransactionCode
(
orderId
,
transactionCode
,
prepayId
,
wxOrderId
);
licenceOrderService
.
saveTransactionCode
(
orderId
,
transactionCode
,
prepayId
,
wxOrderId
,
payTime
);
return
ServiceResponse
.
success
(
true
);
return
ServiceResponse
.
success
(
true
);
}
}
}
}
haoban-manage3-service/src/main/resources/mapper/licence/TabHaobanLicenceOrderMapper.xml
View file @
d01122a2
...
@@ -243,6 +243,9 @@
...
@@ -243,6 +243,9 @@
<if
test=
"wxOrderId != null"
>
<if
test=
"wxOrderId != null"
>
wx_order_id = #{wxOrderId},
wx_order_id = #{wxOrderId},
</if>
</if>
<if
test=
"payTime != null"
>
pay_time = #{payTime},
</if>
update_time = now()
update_time = now()
WHERE order_id = #{orderId}
WHERE order_id = #{orderId}
and delete_flag = 0
and delete_flag = 0
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/licence/LicenceOrderController.java
View file @
d01122a2
This diff is collapsed.
Click to expand it.
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