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
1a976e26
Commit
1a976e26
authored
Mar 10, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业微信账号购买接口开发
parent
ba54ed90
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
711 additions
and
7 deletions
+711
-7
TabHaobanLicenceOrder.java
.../manage/service/entity/licence/TabHaobanLicenceOrder.java
+1
-1
TabHaobanLicenceOrderMapper.xml
.../resources/mapper/licence/TabHaobanLicenceOrderMapper.xml
+2
-2
TabHaobanLicenceOrderProgressMapper.xml
...es/mapper/licence/TabHaobanLicenceOrderProgressMapper.xml
+2
-2
LicenceOrderController.java
...manage/web/controller/licence/LicenceOrderController.java
+70
-2
LicenceOrderPageQO.java
.../gic/haoban/manage/web/qo/licence/LicenceOrderPageQO.java
+159
-0
LicenceOrderQO.java
.../com/gic/haoban/manage/web/qo/licence/LicenceOrderQO.java
+159
-0
LicenceOrderPageVO.java
.../gic/haoban/manage/web/vo/licence/LicenceOrderPageVO.java
+159
-0
LicenceOrderVO.java
.../com/gic/haoban/manage/web/vo/licence/LicenceOrderVO.java
+159
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/licence/TabHaobanLicenceOrder.java
View file @
1a976e26
...
@@ -71,7 +71,7 @@ public class TabHaobanLicenceOrder implements Serializable {
...
@@ -71,7 +71,7 @@ public class TabHaobanLicenceOrder implements Serializable {
private
Integer
payType
;
private
Integer
payType
;
/**
/**
*
微信支付订单
号
*
订单编
号
*/
*/
private
String
transactionId
;
private
String
transactionId
;
...
...
haoban-manage3-service/src/main/resources/mapper/licence/TabHaobanLicenceOrderMapper.xml
View file @
1a976e26
...
@@ -123,9 +123,9 @@
...
@@ -123,9 +123,9 @@
</insert>
</insert>
<!-- =====================删除==================== -->
<!-- =====================删除==================== -->
<
dele
te
id=
"deleteByPrimaryKey"
parameterType=
"long"
>
<
upda
te
id=
"deleteByPrimaryKey"
parameterType=
"long"
>
UPDATE tab_haoban_licence_order SET delete_flag = 1 WHERE order_id = #{orderId}
UPDATE tab_haoban_licence_order SET delete_flag = 1 WHERE order_id = #{orderId}
</
dele
te>
</
upda
te>
<!-- ==================更新 ========== -->
<!-- ==================更新 ========== -->
...
...
haoban-manage3-service/src/main/resources/mapper/licence/TabHaobanLicenceOrderProgressMapper.xml
View file @
1a976e26
...
@@ -60,9 +60,9 @@
...
@@ -60,9 +60,9 @@
</insert>
</insert>
<!-- =====================删除==================== -->
<!-- =====================删除==================== -->
<
dele
te
id=
"deleteByPrimaryKey"
parameterType=
"long"
>
<
upda
te
id=
"deleteByPrimaryKey"
parameterType=
"long"
>
UPDATE tab_haoban_licence_order_progress SET delete_flag = 1 WHERE id = #{id}
UPDATE tab_haoban_licence_order_progress SET delete_flag = 1 WHERE id = #{id}
</
dele
te>
</
upda
te>
<!-- ==================更新 ========== -->
<!-- ==================更新 ========== -->
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/licence/LicenceOrderController.java
View file @
1a976e26
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
.
licence
;
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
.
licence
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.haoban.manage.web.qo.licence.LicenceOrderPageQO
;
import
com.gic.haoban.manage.web.qo.licence.LicenceOrderQO
;
import
com.gic.haoban.manage.web.vo.licence.LicenceOrderPageVO
;
import
com.gic.haoban.manage.web.vo.licence.LicenceOrderVO
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* <p>
* <p>
*
前端控制器
* 前端控制器
* </p>
* </p>
*
*
* @author jx
* @author jx
...
@@ -17,4 +23,66 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -17,4 +23,66 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping
(
"/licence-order"
)
@RequestMapping
(
"/licence-order"
)
public
class
LicenceOrderController
{
public
class
LicenceOrderController
{
/**
* 查询订单详情
*/
@RequestMapping
(
"licence-order-detail"
)
public
RestResponse
<
LicenceOrderVO
>
getLicenceOrderDetail
(
@RequestParam
String
orderId
)
{
return
null
;
}
/**
* 删除订单
*/
@RequestMapping
(
"licence-order-delete"
)
public
RestResponse
<
Boolean
>
deleteLicenceOrder
(
@RequestParam
String
orderId
)
{
return
null
;
}
/**
* 新增或者修改订单
*/
@RequestMapping
(
"licence-order-saveOrUpdate"
)
public
RestResponse
<
Boolean
>
saveOrUpdateLicenceOrder
(
@RequestBody
LicenceOrderQO
licenceOrderQO
)
{
return
null
;
}
/**
* 分页查询订单列表
*/
@RequestMapping
(
"licence-order-page"
)
public
RestResponse
<
LicenceOrderPageVO
>
getLicenceOrderPage
(
@RequestBody
LicenceOrderPageQO
licenceOrderPageQO
)
{
return
null
;
}
/**
* 取消订单/订单已经过期
*/
@RequestMapping
(
"licence-order-cancel"
)
public
RestResponse
<
Boolean
>
cancelLicenceOrder
(
@RequestParam
String
orderId
,
Integer
type
)
{
return
null
;
}
/**
* 订单凭证上传
*/
@RequestMapping
(
"licence-order-voucher-upload"
)
public
RestResponse
<
Boolean
>
uploadLicenceOrderVoucher
(
@RequestParam
String
orderId
,
String
voucher
)
{
return
null
;
}
/**
* 支付订单
*/
@RequestMapping
(
"licence-order-pay"
)
public
RestResponse
<
Boolean
>
payLicenceOrder
(
@RequestParam
String
orderId
)
{
return
null
;
}
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/licence/LicenceOrderPageQO.java
0 → 100644
View file @
1a976e26
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
licence
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* <p>
*
* </p>
*
* @author jx
* @since 2023-03-09
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
LicenceOrderPageQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 订单id
*/
private
Long
orderId
;
/**
* gic商户Id
*/
private
String
enterpriseId
;
/**
* wx企业Id
*/
private
String
wxEnterpriseId
;
/**
* 订单类型,1:购买帐号,2:续期帐号
*/
private
Integer
orderType
;
/**
* 互通帐号个数
*/
private
Integer
externalContactCount
;
/**
* 基础帐号个数
*/
private
Integer
baseCount
;
/**
* 订单金额,单位分
*/
private
Integer
price
;
/**
* 购买时间类型 1:按月购买,2:按天购买
*/
private
Integer
timeType
;
/**
* 购买的时间数值
*/
private
Integer
timeValue
;
/**
* 支付类型 1在线支付 2对公转账
*/
private
Integer
payType
;
/**
* 订单编号
*/
private
String
transactionId
;
/**
* 上传凭证url
*/
private
String
voucher
;
/**
* 订单状态,0:待支付,1:已支付,2:已取消,3:已过期,4:已退款,5:审核中
*/
private
Integer
orderStatus
;
/**
* 订单状态更改原因
*/
private
String
orderStatusReason
;
/**
* 支付类型为1:微信支付时间 2:上传凭证时间
*/
private
Date
payTime
;
/**
* 退款时间
*/
private
Date
refundTime
;
/**
* 企业微信订单id
*/
private
String
qywxOrderId
;
/**
* 企业微信订单状态,0:待支付,1:已支付,2:已取消,3:已过期,4:退款中,5:退款被拒绝,6:已退款,7已失效
*/
private
Integer
qywxOrderStatus
;
/**
* 企业微信订单更改原因
*/
private
String
qywxOrderStatusReason
;
/**
* 企业微信支付时间
*/
private
Date
qywxPayTime
;
/**
* 企业微信退款时间
*/
private
Date
qywxRefundTime
;
/**
* 审核不通过原因
*/
private
String
reason
;
/**
* 逻辑删除,0未删除,1删除
*/
private
Integer
deleteFlag
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 创建人
*/
private
String
creatorId
;
/**
* 创建人名称
*/
private
String
creatorName
;
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/licence/LicenceOrderQO.java
0 → 100644
View file @
1a976e26
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
licence
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* <p>
*
* </p>
*
* @author jx
* @since 2023-03-09
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
LicenceOrderQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 订单id
*/
private
Long
orderId
;
/**
* gic商户Id
*/
private
String
enterpriseId
;
/**
* wx企业Id
*/
private
String
wxEnterpriseId
;
/**
* 订单类型,1:购买帐号,2:续期帐号
*/
private
Integer
orderType
;
/**
* 互通帐号个数
*/
private
Integer
externalContactCount
;
/**
* 基础帐号个数
*/
private
Integer
baseCount
;
/**
* 订单金额,单位分
*/
private
Integer
price
;
/**
* 购买时间类型 1:按月购买,2:按天购买
*/
private
Integer
timeType
;
/**
* 购买的时间数值
*/
private
Integer
timeValue
;
/**
* 支付类型 1在线支付 2对公转账
*/
private
Integer
payType
;
/**
* 订单编号
*/
private
String
transactionId
;
/**
* 上传凭证url
*/
private
String
voucher
;
/**
* 订单状态,0:待支付,1:已支付,2:已取消,3:已过期,4:已退款,5:审核中
*/
private
Integer
orderStatus
;
/**
* 订单状态更改原因
*/
private
String
orderStatusReason
;
/**
* 支付类型为1:微信支付时间 2:上传凭证时间
*/
private
Date
payTime
;
/**
* 退款时间
*/
private
Date
refundTime
;
/**
* 企业微信订单id
*/
private
String
qywxOrderId
;
/**
* 企业微信订单状态,0:待支付,1:已支付,2:已取消,3:已过期,4:退款中,5:退款被拒绝,6:已退款,7已失效
*/
private
Integer
qywxOrderStatus
;
/**
* 企业微信订单更改原因
*/
private
String
qywxOrderStatusReason
;
/**
* 企业微信支付时间
*/
private
Date
qywxPayTime
;
/**
* 企业微信退款时间
*/
private
Date
qywxRefundTime
;
/**
* 审核不通过原因
*/
private
String
reason
;
/**
* 逻辑删除,0未删除,1删除
*/
private
Integer
deleteFlag
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 创建人
*/
private
String
creatorId
;
/**
* 创建人名称
*/
private
String
creatorName
;
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/vo/licence/LicenceOrderPageVO.java
0 → 100644
View file @
1a976e26
package
com
.
gic
.
haoban
.
manage
.
web
.
vo
.
licence
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* <p>
*
* </p>
*
* @author jx
* @since 2023-03-09
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
LicenceOrderPageVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 订单id
*/
private
Long
orderId
;
/**
* gic商户Id
*/
private
String
enterpriseId
;
/**
* wx企业Id
*/
private
String
wxEnterpriseId
;
/**
* 订单类型,1:购买帐号,2:续期帐号
*/
private
Integer
orderType
;
/**
* 互通帐号个数
*/
private
Integer
externalContactCount
;
/**
* 基础帐号个数
*/
private
Integer
baseCount
;
/**
* 订单金额,单位分
*/
private
Integer
price
;
/**
* 购买时间类型 1:按月购买,2:按天购买
*/
private
Integer
timeType
;
/**
* 购买的时间数值
*/
private
Integer
timeValue
;
/**
* 支付类型 1在线支付 2对公转账
*/
private
Integer
payType
;
/**
* 订单编号
*/
private
String
transactionId
;
/**
* 上传凭证url
*/
private
String
voucher
;
/**
* 订单状态,0:待支付,1:已支付,2:已取消,3:已过期,4:已退款,5:审核中
*/
private
Integer
orderStatus
;
/**
* 订单状态更改原因
*/
private
String
orderStatusReason
;
/**
* 支付类型为1:微信支付时间 2:上传凭证时间
*/
private
Date
payTime
;
/**
* 退款时间
*/
private
Date
refundTime
;
/**
* 企业微信订单id
*/
private
String
qywxOrderId
;
/**
* 企业微信订单状态,0:待支付,1:已支付,2:已取消,3:已过期,4:退款中,5:退款被拒绝,6:已退款,7已失效
*/
private
Integer
qywxOrderStatus
;
/**
* 企业微信订单更改原因
*/
private
String
qywxOrderStatusReason
;
/**
* 企业微信支付时间
*/
private
Date
qywxPayTime
;
/**
* 企业微信退款时间
*/
private
Date
qywxRefundTime
;
/**
* 审核不通过原因
*/
private
String
reason
;
/**
* 逻辑删除,0未删除,1删除
*/
private
Integer
deleteFlag
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 创建人
*/
private
String
creatorId
;
/**
* 创建人名称
*/
private
String
creatorName
;
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/vo/licence/LicenceOrderVO.java
0 → 100644
View file @
1a976e26
package
com
.
gic
.
haoban
.
manage
.
web
.
vo
.
licence
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* <p>
*
* </p>
*
* @author jx
* @since 2023-03-09
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
LicenceOrderVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 订单id
*/
private
Long
orderId
;
/**
* gic商户Id
*/
private
String
enterpriseId
;
/**
* wx企业Id
*/
private
String
wxEnterpriseId
;
/**
* 订单类型,1:购买帐号,2:续期帐号
*/
private
Integer
orderType
;
/**
* 互通帐号个数
*/
private
Integer
externalContactCount
;
/**
* 基础帐号个数
*/
private
Integer
baseCount
;
/**
* 订单金额,单位分
*/
private
Integer
price
;
/**
* 购买时间类型 1:按月购买,2:按天购买
*/
private
Integer
timeType
;
/**
* 购买的时间数值
*/
private
Integer
timeValue
;
/**
* 支付类型 1在线支付 2对公转账
*/
private
Integer
payType
;
/**
* 订单编号
*/
private
String
transactionId
;
/**
* 上传凭证url
*/
private
String
voucher
;
/**
* 订单状态,0:待支付,1:已支付,2:已取消,3:已过期,4:已退款,5:审核中
*/
private
Integer
orderStatus
;
/**
* 订单状态更改原因
*/
private
String
orderStatusReason
;
/**
* 支付类型为1:微信支付时间 2:上传凭证时间
*/
private
Date
payTime
;
/**
* 退款时间
*/
private
Date
refundTime
;
/**
* 企业微信订单id
*/
private
String
qywxOrderId
;
/**
* 企业微信订单状态,0:待支付,1:已支付,2:已取消,3:已过期,4:退款中,5:退款被拒绝,6:已退款,7已失效
*/
private
Integer
qywxOrderStatus
;
/**
* 企业微信订单更改原因
*/
private
String
qywxOrderStatusReason
;
/**
* 企业微信支付时间
*/
private
Date
qywxPayTime
;
/**
* 企业微信退款时间
*/
private
Date
qywxRefundTime
;
/**
* 审核不通过原因
*/
private
String
reason
;
/**
* 逻辑删除,0未删除,1删除
*/
private
Integer
deleteFlag
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 创建人
*/
private
String
creatorId
;
/**
* 创建人名称
*/
private
String
creatorName
;
}
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