Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-finance
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
base_platform_enterprise
gic-platform-finance
Commits
f40f802d
Commit
f40f802d
authored
Dec 05, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扩容审批详情修改
parent
39fd0c9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletions
+28
-1
TransferAccountsApprovalController.java
...ce/web/controller/TransferAccountsApprovalController.java
+19
-1
ServiceInfoVO.java
...b/src/main/java/com/gic/finance/web/vo/ServiceInfoVO.java
+9
-0
No files found.
gic-platform-finance-web/src/main/java/com/gic/finance/web/controller/TransferAccountsApprovalController.java
View file @
f40f802d
package
com
.
gic
.
finance
.
web
.
controller
;
package
com
.
gic
.
finance
.
web
.
controller
;
import
com.gic.commons.util.CollectionUtil
;
import
com.gic.commons.util.CollectionUtil
;
import
com.gic.enterprise.dto.EnterpriseDTO
;
import
com.gic.enterprise.service.EnterpriseApiService
;
import
com.gic.finance.constant.EnterprisePlatformTypeEnum
;
import
com.gic.finance.web.utils.UserInfoUtils
;
import
com.gic.finance.web.utils.UserInfoUtils
;
import
com.gic.finance.web.vo.*
;
import
com.gic.finance.web.vo.*
;
import
com.gic.open.api.dto.OrderDTO
;
import
com.gic.open.api.dto.OrderDTO
;
...
@@ -53,6 +56,8 @@ public class TransferAccountsApprovalController {
...
@@ -53,6 +56,8 @@ public class TransferAccountsApprovalController {
private
BillingRechargeRecordApiService
billingRechargeRecordApiService
;
private
BillingRechargeRecordApiService
billingRechargeRecordApiService
;
@Autowired
@Autowired
private
OrderApiService
orderApiService
;
private
OrderApiService
orderApiService
;
@Autowired
private
EnterpriseApiService
enterpriseApiService
;
@RequestMapping
(
"/get-approval"
)
@RequestMapping
(
"/get-approval"
)
public
RestResponse
getById
(
Integer
id
)
{
public
RestResponse
getById
(
Integer
id
)
{
...
@@ -164,7 +169,7 @@ public class TransferAccountsApprovalController {
...
@@ -164,7 +169,7 @@ public class TransferAccountsApprovalController {
Map
<
Long
,
List
<
LicenseVO
>>
licenseMap
;
Map
<
Long
,
List
<
LicenseVO
>>
licenseMap
;
if
(
licenseVOList
.
size
()
>
0
)
{
if
(
licenseVOList
.
size
()
>
0
)
{
//license是在服务下面,进行匹配
//license是在服务下面,进行匹配
licenseMap
=
CollectionUtil
.
group
(
licenseVOList
,
"applicationId"
)
;
licenseMap
=
CollectionUtil
.
group
(
licenseVOList
,
"applicationId"
);
vo
.
setLicenseVOList
(
licenseVOList
);
vo
.
setLicenseVOList
(
licenseVOList
);
}
else
{
}
else
{
licenseMap
=
new
HashMap
<>(
2
);
licenseMap
=
new
HashMap
<>(
2
);
...
@@ -179,6 +184,19 @@ public class TransferAccountsApprovalController {
...
@@ -179,6 +184,19 @@ public class TransferAccountsApprovalController {
}
else
if
(
licenseVOList
.
size
()
>
0
)
{
}
else
if
(
licenseVOList
.
size
()
>
0
)
{
//没有服务,只有license数据,比如扩容
//没有服务,只有license数据,比如扩容
ServiceInfoVO
temp
=
new
ServiceInfoVO
();
ServiceInfoVO
temp
=
new
ServiceInfoVO
();
boolean
isGicEnterprise
=
transfer
.
getPlatformType
()
!=
null
&&
transfer
.
getPlatformType
()
.
intValue
()
==
EnterprisePlatformTypeEnum
.
GIC
.
getCode
();
if
(
isGicEnterprise
)
{
ServiceResponse
<
EnterpriseDTO
>
tempResult
=
enterpriseApiService
.
getEnterpriseById
(
transfer
.
getEnterpriseId
());
if
(
tempResult
.
isSuccess
())
{
temp
.
setVersionName
(
orderDTO
.
getServeName
()
+
"-"
+
tempResult
.
getResult
().
getVersionName
());
}
else
{
LOGGER
.
warn
(
tempResult
.
getMessage
());
}
}
else
{
temp
.
setVersionName
(
orderDTO
.
getServeName
());
}
temp
.
setLicenseVOList
(
licenseVOList
);
temp
.
setLicenseVOList
(
licenseVOList
);
serviceInfoVOList
.
add
(
temp
);
serviceInfoVOList
.
add
(
temp
);
vo
.
setServiceInfoVOList
(
serviceInfoVOList
);
vo
.
setServiceInfoVOList
(
serviceInfoVOList
);
...
...
gic-platform-finance-web/src/main/java/com/gic/finance/web/vo/ServiceInfoVO.java
View file @
f40f802d
...
@@ -28,6 +28,8 @@ public class ServiceInfoVO implements Serializable{
...
@@ -28,6 +28,8 @@ public class ServiceInfoVO implements Serializable{
*/
*/
private
String
serveInfo
;
private
String
serveInfo
;
private
String
versionName
;
/**
/**
* 服务描述
* 服务描述
*/
*/
...
@@ -72,6 +74,9 @@ public class ServiceInfoVO implements Serializable{
...
@@ -72,6 +74,9 @@ public class ServiceInfoVO implements Serializable{
public
String
getServcieDesc
()
{
public
String
getServcieDesc
()
{
if
(
StringUtils
.
isBlank
(
skuInfo
))
{
if
(
StringUtils
.
isBlank
(
skuInfo
))
{
if
(
StringUtils
.
isNotBlank
(
versionName
))
{
return
versionName
;
}
return
"--"
;
return
"--"
;
}
}
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
skuInfo
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
skuInfo
);
...
@@ -119,4 +124,8 @@ public class ServiceInfoVO implements Serializable{
...
@@ -119,4 +124,8 @@ public class ServiceInfoVO implements Serializable{
public
void
setPayDetail
(
String
payDetail
)
{
public
void
setPayDetail
(
String
payDetail
)
{
this
.
payDetail
=
payDetail
;
this
.
payDetail
=
payDetail
;
}
}
public
void
setVersionName
(
String
versionName
)
{
this
.
versionName
=
versionName
;
}
}
}
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