Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
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
Administrator
dsk-cr20g
Commits
a0904cfd
Commit
a0904cfd
authored
Jul 25, 2023
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
parent
06dbeb40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
EnterpriseInvestmentBody.java
...sk/common/core/domain/model/EnterpriseInvestmentBody.java
+2
-0
EnterpriseService.java
...ain/java/com/dsk/system/dskService/EnterpriseService.java
+28
-2
No files found.
dsk-common/src/main/java/com/dsk/common/core/domain/model/EnterpriseInvestmentBody.java
View file @
a0904cfd
...
@@ -21,6 +21,8 @@ public class EnterpriseInvestmentBody extends BasePage {
...
@@ -21,6 +21,8 @@ public class EnterpriseInvestmentBody extends BasePage {
private
Integer
hasBid
;
private
Integer
hasBid
;
private
double
stockPercentageMin
;
private
double
stockPercentageMin
;
private
double
stockPercentageMax
;
private
double
stockPercentageMax
;
//搜索-企业名称
private
String
keyword
;
public
boolean
isVaildCid
()
{
public
boolean
isVaildCid
()
{
return
0
==
cid
;
return
0
==
cid
;
...
...
dsk-system/src/main/java/com/dsk/system/dskService/EnterpriseService.java
View file @
a0904cfd
...
@@ -145,9 +145,35 @@ public class EnterpriseService {
...
@@ -145,9 +145,35 @@ public class EnterpriseService {
}
}
public
TableDataInfo
investment
(
EnterpriseInvestmentBody
body
)
throws
Exception
{
public
TableDataInfo
investment
(
EnterpriseInvestmentBody
body
)
throws
Exception
{
if
(
body
.
isVaildCid
())
return
new
TableDataInfo
(
new
ArrayList
<>(),
0
);
if
(
body
.
isVaildCid
())
{
return
new
TableDataInfo
(
new
ArrayList
<>(),
0
);
}
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/operate/enterprise/investment"
,
BeanUtil
.
beanToMap
(
body
,
false
,
false
));
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/operate/enterprise/investment"
,
BeanUtil
.
beanToMap
(
body
,
false
,
false
));
return
dskOpenApiUtil
.
responsePage
(
map
);
Integer
code
=
MapUtils
.
getInteger
(
map
,
"code"
,
300
);
if
(!
code
.
equals
(
HttpStatus
.
OK
.
value
()))
{
throw
new
RuntimeException
();
}
Map
data
=
MapUtils
.
getMap
(
map
,
"data"
,
null
);
List
<
Object
>
list
=
CommonUtils
.
assertAsArray
(
MapUtils
.
getObject
(
data
,
"list"
,
""
));
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
new
TableDataInfo
(
list
,
0
);
}
List
<
Object
>
newList
=
new
ArrayList
<>(
20
);
for
(
Object
companyObj
:
list
)
{
Map
<
String
,
Object
>
companyMap
=
CommonUtils
.
assertAsMap
(
companyObj
);
String
businessStatus
=
MapUtils
.
getString
(
companyMap
,
"businessStatus"
);
if
(!
"注销"
.
equals
(
businessStatus
))
{
newList
.
add
(
companyMap
);
}
}
for
(
Object
companyObj
:
list
)
{
Map
<
String
,
Object
>
companyMap
=
CommonUtils
.
assertAsMap
(
companyObj
);
String
businessStatus
=
MapUtils
.
getString
(
companyMap
,
"businessStatus"
);
if
(
"注销"
.
equals
(
businessStatus
))
{
newList
.
add
(
companyMap
);
}
}
return
new
TableDataInfo
(
newList
,
MapUtils
.
getInteger
(
data
,
"totalCount"
,
0
));
}
}
public
TableDataInfo
affiliates
(
EnterpriseAffiliatesBody
body
)
throws
Exception
{
public
TableDataInfo
affiliates
(
EnterpriseAffiliatesBody
body
)
throws
Exception
{
...
...
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