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
ef202e0c
Commit
ef202e0c
authored
Mar 11, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
好办状态和GIC后台不一致,此处状态做转换
parent
a0ded935
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletions
+28
-1
ContentAccountController.java
...nage/web/controller/content/ContentAccountController.java
+16
-1
AccountGenerateQrCodeQo.java
...anage/web/qo/content/account/AccountGenerateQrCodeQo.java
+12
-0
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/ContentAccountController.java
View file @
ef202e0c
...
...
@@ -114,6 +114,7 @@ public class ContentAccountController {
public
RestResponse
<
AccountAuthorizeVo
>
generateQrCode
(
AccountGenerateQrCodeQo
accountGenerateQrCodeQo
)
{
AccountGenerateQrCodeQDTO
accountGenerateQrCodeQDTO
=
new
AccountGenerateQrCodeQDTO
();
accountGenerateQrCodeQDTO
.
setId
(
accountGenerateQrCodeQo
.
getId
());
accountGenerateQrCodeQDTO
.
setEnterpriseId
(
accountGenerateQrCodeQo
.
getEnterpriseId
());
accountGenerateQrCodeQDTO
.
setSourceType
(
ContentAccountQrCodeSourceType
.
HAOBAN
.
getCode
());
accountGenerateQrCodeQDTO
.
setKey
(
accountGenerateQrCodeQo
.
getKey
());
...
...
@@ -143,6 +144,20 @@ public class ContentAccountController {
if
(!
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
"500"
,
"获取结果异常"
);
}
return
RestResponse
.
successResult
(
EntityUtil
.
changeEntityByJSON
(
AccountAuthorizeResultVo
.
class
,
serviceResponse
.
getResult
()));
AccountAuthorizeResultVo
result
=
EntityUtil
.
changeEntityByJSON
(
AccountAuthorizeResultVo
.
class
,
serviceResponse
.
getResult
());
result
.
setStatus
(
convertStatus
(
serviceResponse
.
getResult
().
getStatus
()));
return
RestResponse
.
successResult
(
result
);
}
/**
* 好办状态和GIC后台不一致,此处状态做转换 原因未知
* @param status
* @return
*/
public
Integer
convertStatus
(
Integer
status
)
{
if
(
Objects
.
equals
(
status
,
1
))
{
return
0
;
}
return
status
;
}
}
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/qo/content/account/AccountGenerateQrCodeQo.java
View file @
ef202e0c
...
...
@@ -13,6 +13,10 @@ import java.io.Serializable;
public
class
AccountGenerateQrCodeQo
implements
Serializable
{
/**
* 主键id
*/
private
Long
id
;
/**
* 企业id
*/
private
String
enterpriseId
;
...
...
@@ -37,6 +41,14 @@ public class AccountGenerateQrCodeQo implements Serializable {
*/
private
Integer
bizType
=
ContentAccountBizTypeEnum
.
WX_VIDEO
.
getCode
();
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
...
...
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