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
c88b0c46
Commit
c88b0c46
authored
Jul 28, 2023
by
yht15023815643
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev20230707' of
http://192.168.60.201/root/dsk-operate-sys
into dev20230707
parents
bad2b995
2f5fd16b
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
138 additions
and
85 deletions
+138
-85
CacheConstants.java
...src/main/java/com/dsk/common/constant/CacheConstants.java
+6
-0
index.vue
dsk-operate-ui/src/views/custom/customList/index.vue
+1
-1
index.vue
dsk-operate-ui/src/views/detail/party-a/cooperate/index.vue
+2
-2
index.vue
dsk-operate-ui/src/views/macro/urban/index.vue
+4
-4
addProject.vue
...ui/src/views/project/projectList/component/addProject.vue
+1
-0
gzdb.vue
...erate-ui/src/views/project/projectList/component/gzdb.vue
+1
-0
xgqy.vue
...erate-ui/src/views/project/projectList/component/xgqy.vue
+9
-2
BusinessLikeProjectNameListVo.java
...tem/domain/business/vo/BusinessLikeProjectNameListVo.java
+2
-0
EnterpriseService.java
...ain/java/com/dsk/system/dskService/EnterpriseService.java
+29
-25
BusinessInfoServiceImpl.java
.../com/dsk/system/service/impl/BusinessInfoServiceImpl.java
+22
-18
CustomerServiceImpl.java
...java/com/dsk/system/service/impl/CustomerServiceImpl.java
+15
-3
EconomicServiceImpl.java
...java/com/dsk/system/service/impl/EconomicServiceImpl.java
+17
-1
UrbanInvestmentPlatformServiceImpl.java
...stem/service/impl/UrbanInvestmentPlatformServiceImpl.java
+29
-29
No files found.
dsk-common/src/main/java/com/dsk/common/constant/CacheConstants.java
View file @
c88b0c46
...
@@ -58,5 +58,11 @@ public class CacheConstants
...
@@ -58,5 +58,11 @@ public class CacheConstants
public
static
final
String
DATA_FINANCIAL
=
"data:financial"
;
public
static
final
String
DATA_FINANCIAL
=
"data:financial"
;
/**
* 全国经济大全-默认
*/
public
static
final
String
DATA_ECONOMIC
=
"data:economic"
;
}
}
dsk-operate-ui/src/views/custom/customList/index.vue
View file @
c88b0c46
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
width=
"316"
>
width=
"316"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
class=
"ps1"
>
<div
class=
"ps1"
>
<div
class=
"wordprimary ps2"
@
click=
"toDetail(scope.row,'')"
>
{{
scope
.
row
.
companyName
}}
</div>
<div
class=
"wordprimary ps2"
@
click=
"toDetail(scope.row,'')"
v-html=
"scope.row.companyName"
>
</div>
<div
class=
"ps3"
>
<div
class=
"ps3"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"写跟进"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"写跟进"
placement=
"top"
>
<div
@
click=
"toDetail(scope.row,'gjjl')"
><img
class=
"i"
src=
"@/assets/images/project/edit_1.png"
><img
class=
"o"
src=
"@/assets/images/project/edit_11.png"
></div>
<div
@
click=
"toDetail(scope.row,'gjjl')"
><img
class=
"i"
src=
"@/assets/images/project/edit_1.png"
><img
class=
"o"
src=
"@/assets/images/project/edit_11.png"
></div>
...
...
dsk-operate-ui/src/views/detail/party-a/cooperate/index.vue
View file @
c88b0c46
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
@
handle-current-change=
"handleCurrentChange"
@
handle-current-change=
"handleCurrentChange"
>
>
<
template
slot=
"projectName"
slot-scope=
"scope"
>
<
template
slot=
"projectName"
slot-scope=
"scope"
>
<span
class=
"link-type"
@
click=
"clickDetail(scope.row.id)"
>
<span
class=
"link-type"
@
click=
"clickDetail(scope.row.id)"
>
{{
scope
.
row
.
projectName
}}
{{
scope
.
row
.
projectName
}}
</span>
</span>
</
template
>
</
template
>
...
@@ -324,7 +324,7 @@ export default {
...
@@ -324,7 +324,7 @@ export default {
}
}
},
},
selCompany1
(
item
){
selCompany1
(
item
){
this
.
addParam
.
projectName
=
item
this
.
addParam
.
projectName
=
item
.
replace
(
/<
[^
>
]
+>/g
,
''
)
this
.
showlist1
=
false
this
.
showlist1
=
false
},
},
//获取业主单位
//获取业主单位
...
...
dsk-operate-ui/src/views/macro/urban/index.vue
View file @
c88b0c46
...
@@ -742,7 +742,7 @@ export default {
...
@@ -742,7 +742,7 @@ export default {
},
},
cancelClaim
(
companyName
){
cancelClaim
(
companyName
){
this
.
dialogVisible1
=
true
;
this
.
dialogVisible1
=
true
;
this
.
companyName
=
companyName
;
this
.
companyName
=
companyName
.
replace
(
/<
[^
>
]
+>/g
,
''
)
;
},
},
confirm
(){
confirm
(){
api
.
cancelClaim
(
this
.
companyName
).
then
(
res
=>
{
api
.
cancelClaim
(
this
.
companyName
).
then
(
res
=>
{
...
@@ -762,7 +762,7 @@ export default {
...
@@ -762,7 +762,7 @@ export default {
},
},
handleClick
(
item
){
handleClick
(
item
){
this
.
companyId
=
item
.
companyId
;
this
.
companyId
=
item
.
companyId
;
this
.
companyName
=
item
.
companyName
;
this
.
companyName
=
item
.
companyName
.
replace
(
/<
[^
>
]
+>/g
,
''
)
;
infoHeader
({
companyId
:
this
.
companyId
}).
then
(
res
=>
{
infoHeader
({
companyId
:
this
.
companyId
}).
then
(
res
=>
{
if
(
res
.
code
===
200
){
if
(
res
.
code
===
200
){
let
registerAddress
=
res
.
data
.
provinceName
let
registerAddress
=
res
.
data
.
provinceName
...
@@ -774,7 +774,7 @@ export default {
...
@@ -774,7 +774,7 @@ export default {
}
}
let
params
=
{
let
params
=
{
uipId
:
item
.
uipId
,
uipId
:
item
.
uipId
,
companyName
:
item
.
companyName
,
companyName
:
item
.
companyName
.
replace
(
/<
[^
>
]
+>/g
,
''
)
,
companyId
:
item
.
companyId
,
companyId
:
item
.
companyId
,
creditLevel
:
item
.
bratingSubjectLevel
,
creditLevel
:
item
.
bratingSubjectLevel
,
legalPerson
:
res
.
data
.
corporatePerson
,
legalPerson
:
res
.
data
.
corporatePerson
,
...
@@ -785,7 +785,7 @@ export default {
...
@@ -785,7 +785,7 @@ export default {
registerAddress
:
registerAddress
,
registerAddress
:
registerAddress
,
creditCode
:
res
.
data
.
creditCode
,
creditCode
:
res
.
data
.
creditCode
,
}
}
customerStatus
(
item
.
companyName
).
then
(
res
=>
{
customerStatus
(
item
.
companyName
.
replace
(
/<
[^
>
]
+>/g
,
''
)
).
then
(
res
=>
{
if
(
res
.
data
===
1
){
if
(
res
.
data
===
1
){
this
.
claimVisible1
=
true
;
this
.
claimVisible1
=
true
;
}
else
{
}
else
{
...
...
dsk-operate-ui/src/views/project/projectList/component/addProject.vue
View file @
c88b0c46
...
@@ -177,6 +177,7 @@
...
@@ -177,6 +177,7 @@
this
.
queryParam
.
projectType
=
item
.
projectType
this
.
queryParam
.
projectType
=
item
.
projectType
this
.
queryParam
.
projectCategory
=
item
.
projectCategory
this
.
queryParam
.
projectCategory
=
item
.
projectCategory
this
.
queryParam
.
status
=
item
.
status
this
.
queryParam
.
status
=
item
.
status
this
.
queryParam
.
ownerCompany
=
item
.
companyName
this
.
queryParam
.
projectName
=
item
.
projectName
.
replace
(
/<
[^
>
]
+>/g
,
''
)
this
.
queryParam
.
projectName
=
item
.
projectName
.
replace
(
/<
[^
>
]
+>/g
,
''
)
this
.
proList
=
[]
this
.
proList
=
[]
},
},
...
...
dsk-operate-ui/src/views/project/projectList/component/gzdb.vue
View file @
c88b0c46
...
@@ -140,6 +140,7 @@
...
@@ -140,6 +140,7 @@
this
.
value
=
""
this
.
value
=
""
},
},
add
(){
add
(){
// if(this.queryParam.task == '' || this.queryParam.dueTime == '')
// if(this.queryParam.task == '' || this.queryParam.dueTime == '')
if
(
this
.
queryParam
.
task
==
''
)
if
(
this
.
queryParam
.
task
==
''
)
return
this
.
$message
.
warning
(
'时间和内容需填写完整!'
)
return
this
.
$message
.
warning
(
'时间和内容需填写完整!'
)
...
...
dsk-operate-ui/src/views/project/projectList/component/xgqy.vue
View file @
c88b0c46
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
<el-input
type=
"text"
v-model=
"queryParam.responsiblePerson"
placeholder=
"请输入"
></el-input>
<el-input
type=
"text"
v-model=
"queryParam.responsiblePerson"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"联系方式:"
class=
"row"
>
<el-form-item
label=
"联系方式:"
class=
"row"
>
<el-input
type=
"text"
v-model=
"queryParam.phonenumber
"
placeholder=
"请输入"
></el-input>
<el-input
type=
"text"
oninput=
"value=value.replace(/[^\d]/g,'')"
v-model=
"queryParam.phone"
maxlength=
"11
"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注说明:"
class=
"row"
>
<el-form-item
label=
"备注说明:"
class=
"row"
>
<el-input
<el-input
...
@@ -210,7 +210,7 @@
...
@@ -210,7 +210,7 @@
rules
:{
rules
:{
companyRole
:[{
required
:
true
,
message
:
'请输入非空格字符!'
,
trigger
:
'blur'
},],
companyRole
:[{
required
:
true
,
message
:
'请输入非空格字符!'
,
trigger
:
'blur'
},],
companyName
:[{
required
:
true
,
message
:
'请输入非空格字符!'
,
trigger
:
'blur'
},],
companyName
:[{
required
:
true
,
message
:
'请输入非空格字符!'
,
trigger
:
'blur'
},],
phone
number
:
[
phone
:
[
{
{
pattern
:
/^1
[
3|4|5|6|7|8|9
][
0-9
]\d{8}
$/
,
pattern
:
/^1
[
3|4|5|6|7|8|9
][
0-9
]\d{8}
$/
,
message
:
"请输入正确的手机号码"
,
message
:
"请输入正确的手机号码"
,
...
@@ -301,6 +301,12 @@
...
@@ -301,6 +301,12 @@
})
})
},
},
addqy
(){
addqy
(){
if
(
this
.
queryParam
.
companyName
===
''
){
return
this
.
$message
.
warning
(
'企业名称需填写完整!'
)
}
if
(
this
.
queryParam
.
companyRole
===
''
){
return
this
.
$message
.
warning
(
'企业角色称需填写完整!'
)
}
addXGQY
(
this
.
queryParam
).
then
(
res
=>
{
addXGQY
(
this
.
queryParam
).
then
(
res
=>
{
this
.
hzhbVisible
=
false
this
.
hzhbVisible
=
false
if
(
res
.
code
==
200
){
if
(
res
.
code
==
200
){
...
@@ -310,6 +316,7 @@
...
@@ -310,6 +316,7 @@
this
.
$message
.
error
(
res
.
msg
)
this
.
$message
.
error
(
res
.
msg
)
}
}
})
})
},
},
saveqy
(){
saveqy
(){
saveXGQY
(
this
.
queryParam
).
then
(
res
=>
{
saveXGQY
(
this
.
queryParam
).
then
(
res
=>
{
...
...
dsk-system/src/main/java/com/dsk/system/domain/business/vo/BusinessLikeProjectNameListVo.java
View file @
c88b0c46
...
@@ -12,6 +12,8 @@ public class BusinessLikeProjectNameListVo {
...
@@ -12,6 +12,8 @@ public class BusinessLikeProjectNameListVo {
private
String
projectName
;
private
String
projectName
;
private
String
companyName
;
/** 总投金额(万元) */
/** 总投金额(万元) */
private
Double
investmentAmount
;
private
Double
investmentAmount
;
...
...
dsk-system/src/main/java/com/dsk/system/dskService/EnterpriseService.java
View file @
c88b0c46
...
@@ -71,17 +71,10 @@ public class EnterpriseService {
...
@@ -71,17 +71,10 @@ public class EnterpriseService {
Map
uipData
=
MapUtils
.
getMap
(
uipMap
,
"data"
,
new
HashMap
<>());
Map
uipData
=
MapUtils
.
getMap
(
uipMap
,
"data"
,
new
HashMap
<>());
String
uipId
=
MapUtils
.
getString
(
uipData
,
"uipId"
,
null
);
String
uipId
=
MapUtils
.
getString
(
uipData
,
"uipId"
,
null
);
companyData
.
put
(
"uipId"
,
uipId
);
companyData
.
put
(
"uipId"
,
uipId
);
if
(!
ObjectUtil
.
isEmpty
(
uipId
))
{
Integer
status
=
iCustomerService
.
status
(
companyName
);
ArrayList
<
String
>
uipIds
=
new
ArrayList
<>();
if
(
ObjectUtil
.
isNotEmpty
(
status
))
{
uipIds
.
add
(
uipId
);
companyData
.
put
(
"claimStatus"
,
status
.
equals
(
0
)
?
1
:
0
);
companyData
.
put
(
"claimStatus"
,
CollectionUtils
.
isEmpty
(
iCustomerService
.
selectStatusList
(
uipIds
))
?
0
:
1
);
}
else
{
Integer
status
=
iCustomerService
.
status
(
companyName
);
if
(
ObjectUtil
.
isNotEmpty
(
status
))
{
companyData
.
put
(
"claimStatus"
,
status
.
equals
(
0
)
?
1
:
0
);
}
}
}
Map
<
String
,
Object
>
bondCreditRatingMap
=
dskOpenApiUtil
.
requestBody
(
"/operate/enterprise/bondCreditRating"
,
map
);
Map
<
String
,
Object
>
bondCreditRatingMap
=
dskOpenApiUtil
.
requestBody
(
"/operate/enterprise/bondCreditRating"
,
map
);
Integer
bondCreditRatingCode
=
MapUtils
.
getInteger
(
bondCreditRatingMap
,
"code"
,
300
);
Integer
bondCreditRatingCode
=
MapUtils
.
getInteger
(
bondCreditRatingMap
,
"code"
,
300
);
if
(
200
!=
bondCreditRatingCode
)
return
R
.
ok
(
companyData
);
if
(
200
!=
bondCreditRatingCode
)
return
R
.
ok
(
companyData
);
...
@@ -249,29 +242,34 @@ public class EnterpriseService {
...
@@ -249,29 +242,34 @@ public class EnterpriseService {
return
new
TableDataInfo
(
list
,
0
);
return
new
TableDataInfo
(
list
,
0
);
}
}
ArrayList
<
String
>
uipIds
=
new
ArrayList
<>();
ArrayList
<
String
>
companyNames
=
new
ArrayList
<>();
ArrayList
<
Long
>
cIds
=
new
ArrayList
<>();
for
(
Object
dataMap
:
list
)
{
for
(
Object
dataMap
:
list
)
{
uipIds
.
add
(
MapUtils
.
getString
(
CommonUtils
.
assertAsMap
(
dataMap
),
"uipId"
));
companyNames
.
add
(
MapUtils
.
getString
(
CommonUtils
.
assertAsMap
(
dataMap
),
"companyName"
));
cIds
.
add
(
MapUtils
.
getLong
(
CommonUtils
.
assertAsMap
(
dataMap
),
"companyId"
));
}
}
List
<
CustomerStatusListVo
>
claimStatusList
=
iCustomerService
.
selectStatusList
(
uipIds
);
List
<
CustomerStatusListVo
>
claimStatusList
=
iCustomerService
.
selectStatusListByCompanyName
(
companyNames
);
Map
<
String
,
Object
>
bondCreditRatingBatchMap
=
new
HashMap
<>(
1
);
bondCreditRatingBatchMap
.
put
(
"cIds"
,
cIds
);
Map
<
String
,
Object
>
bondCreditRatingMap
=
dskOpenApiUtil
.
requestBody
(
"/operate/enterprise/bondCreditRatingBatch"
,
bondCreditRatingBatchMap
);
Integer
codeRating
=
MapUtils
.
getInteger
(
bondCreditRatingMap
,
"code"
,
300
);
ArrayList
<
Map
<
String
,
Object
>>
objArrayList
=
new
ArrayList
(
1
);
if
(
codeRating
.
equals
(
HttpStatus
.
OK
.
value
()))
{
Object
object
=
bondCreditRatingMap
.
get
(
"data"
);
if
(
ObjectUtil
.
isNotEmpty
(
object
))
{
objArrayList
=
(
ArrayList
)
object
;
}
}
//按照城投企业id合并两个list
//按照城投企业id合并两个list
for
(
Object
companyObj
:
list
)
{
for
(
Object
companyObj
:
list
)
{
Map
<
String
,
Object
>
companyMap
=
CommonUtils
.
assertAsMap
(
companyObj
);
Map
<
String
,
Object
>
companyMap
=
CommonUtils
.
assertAsMap
(
companyObj
);
companyMap
.
put
(
"cid"
,
MapUtils
.
getString
(
companyMap
,
"companyId"
));
companyMap
.
put
(
"bratingSubjectLevel"
,
null
);
companyMap
.
put
(
"bratingSubjectLevel"
,
null
);
Map
<
String
,
Object
>
bondCreditRatingMap
=
dskOpenApiUtil
.
requestBody
(
"/operate/enterprise/bondCreditRating"
,
companyMap
);
Integer
codeRating
=
MapUtils
.
getInteger
(
bondCreditRatingMap
,
"code"
,
300
);
if
(
codeRating
.
equals
(
HttpStatus
.
OK
.
value
()))
{
Object
object
=
bondCreditRatingMap
.
get
(
"data"
);
if
(
ObjectUtil
.
isNotEmpty
(
object
))
{
ArrayList
obj
=
(
ArrayList
)
object
;
Map
<
String
,
Object
>
bondCreditRating
=
(
Map
<
String
,
Object
>)
obj
.
get
(
0
);
companyMap
.
put
(
"bratingSubjectLevel"
,
bondCreditRating
.
get
(
"bratingSubjectLevel"
));
}
}
String
uipId
=
MapUtils
.
getString
(
companyMap
,
"uipId"
);
String
uipId
=
MapUtils
.
getString
(
companyMap
,
"uipId"
);
String
companyName
=
MapUtils
.
getString
(
companyMap
,
"companyName"
,
""
);
Long
companyId
=
MapUtils
.
getLong
(
companyMap
,
"companyId"
);
companyMap
.
put
(
"bondBalance"
,
MapUtils
.
getDouble
(
companyMap
,
"bondBalance"
)==
null
?
null
:
String
.
format
(
"%.2f"
,
MapUtils
.
getDouble
(
companyMap
,
"bondBalance"
)));
companyMap
.
put
(
"bondBalance"
,
MapUtils
.
getDouble
(
companyMap
,
"bondBalance"
)==
null
?
null
:
String
.
format
(
"%.2f"
,
MapUtils
.
getDouble
(
companyMap
,
"bondBalance"
)));
companyMap
.
put
(
"totalAssets"
,
MapUtils
.
getDouble
(
companyMap
,
"totalAssets"
)==
null
?
null
:
String
.
format
(
"%.2f"
,
MapUtils
.
getDouble
(
companyMap
,
"totalAssets"
)));
companyMap
.
put
(
"totalAssets"
,
MapUtils
.
getDouble
(
companyMap
,
"totalAssets"
)==
null
?
null
:
String
.
format
(
"%.2f"
,
MapUtils
.
getDouble
(
companyMap
,
"totalAssets"
)));
companyMap
.
put
(
"belongNetAssets"
,
MapUtils
.
getDouble
(
companyMap
,
"belongNetAssets"
)==
null
?
null
:
String
.
format
(
"%.2f"
,
MapUtils
.
getDouble
(
companyMap
,
"belongNetAssets"
)));
companyMap
.
put
(
"belongNetAssets"
,
MapUtils
.
getDouble
(
companyMap
,
"belongNetAssets"
)==
null
?
null
:
String
.
format
(
"%.2f"
,
MapUtils
.
getDouble
(
companyMap
,
"belongNetAssets"
)));
...
@@ -310,10 +308,16 @@ public class EnterpriseService {
...
@@ -310,10 +308,16 @@ public class EnterpriseService {
companyMap
.
put
(
"claimStatus"
,
0
);
companyMap
.
put
(
"claimStatus"
,
0
);
for
(
CustomerStatusListVo
vo
:
claimStatusList
)
{
for
(
CustomerStatusListVo
vo
:
claimStatusList
)
{
if
(
uipId
.
equals
(
vo
.
getUipId
()))
{
if
(
companyName
.
equals
(
vo
.
getCompanyName
()))
{
companyMap
.
put
(
"claimStatus"
,
1
);
companyMap
.
put
(
"claimStatus"
,
1
);
}
}
}
}
for
(
Map
<
String
,
Object
>
m
:
objArrayList
)
{
Long
companyIdCredit
=
MapUtils
.
getLong
(
m
,
"companyId"
,
0L
);
if
(
companyIdCredit
.
equals
(
companyId
))
{
companyMap
.
put
(
"bratingSubjectLevel"
,
m
.
get
(
"bratingSubjectLevel"
));
}
}
}
}
return
new
TableDataInfo
(
list
,
MapUtils
.
getInteger
(
data
,
"totalCount"
,
0
));
return
new
TableDataInfo
(
list
,
MapUtils
.
getInteger
(
data
,
"totalCount"
,
0
));
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/BusinessInfoServiceImpl.java
View file @
c88b0c46
...
@@ -139,24 +139,28 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
...
@@ -139,24 +139,28 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
@Override
@Override
public
List
<
BusinessLikeProjectNameListVo
>
selectProjectName
(
BusinessListDto
dto
)
{
public
List
<
BusinessLikeProjectNameListVo
>
selectProjectName
(
BusinessListDto
dto
)
{
List
<
BusinessLikeProjectNameListVo
>
vos
=
businessInfoMapper
.
selectProjectName
(
dto
);
// List<BusinessLikeProjectNameListVo> vos = businessInfoMapper.selectProjectName(dto);
// List<BusinessLikeProjectNameListVo> vos = new ArrayList<>();
List
<
BusinessLikeProjectNameListVo
>
vos
=
new
ArrayList
<>();
// Map<String, Object> result = dskOpenApiUtil.requestBody("/company/bidding/newZhaoBiao/list", toRequestMap(dto));
try
{
// if ("200".equals(result.get("code")) && ObjectUtil.isNotEmpty(result.get("data"))
Map
<
String
,
Object
>
result
=
dskOpenApiUtil
.
requestBody
(
"/nationzj/jskBid/news/findByName"
,
toRequestMap
(
dto
));
// && ObjectUtil.isNotEmpty(BeanUtil.beanToMap(result.get("data")).get("list"))) {
if
(
ObjectUtil
.
isNotEmpty
(
result
.
get
(
"data"
)))
{
// List<Map<String, Object>> list = (List<Map<String, Object>>) BeanUtil.beanToMap(result.get("data")).get("list");
List
<
Map
<
String
,
Object
>>
list
=
(
List
<
Map
<
String
,
Object
>>)
BeanUtil
.
beanToMap
(
result
.
get
(
"data"
)).
get
(
"list"
);
// if (!CollectionUtils.isEmpty(list)) {
if
(!
CollectionUtils
.
isEmpty
(
list
))
{
// for (Map<String, Object> map : list) {
for
(
Map
<
String
,
Object
>
map
:
list
)
{
// BusinessLikeProjectNameListVo vo = new BusinessLikeProjectNameListVo();
BusinessLikeProjectNameListVo
vo
=
new
BusinessLikeProjectNameListVo
();
// vo.setProjectName(MapUtil.getStr(map, "projectName").replace(dto.getProjectName(), "<font color='#FF204E'>" + dto.getProjectName() + "</font>"));
vo
.
setProjectName
(
MapUtil
.
getStr
(
map
,
"projectName"
).
replace
(
dto
.
getProjectName
(),
"<font color='#FF204E'>"
+
dto
.
getProjectName
()
+
"</font>"
));
// vo.setInvestmentAmount(MapUtil.getDouble(map, "bidMoney"));
vo
.
setCompanyName
(
MapUtil
.
getStr
(
map
,
"tenderee"
));
// vo.setProjectLevel(MapUtil.getStr(map, "bidMoney"));
vo
.
setInvestmentAmount
(
Double
.
parseDouble
(
MapUtil
.
getStr
(
map
,
"projectContractAmount"
)));
// vo.setProjectStage(MapUtil.getStr(map, "tenderStage"));
vo
.
setProjectType
(
MapUtil
.
getStr
(
map
,
"projectType"
));
// vo.setProjectType(MapUtil.getStr(map, "projectType"));
vo
.
setProjectCategory
(
MapUtil
.
getStr
(
map
,
"projectPurposes"
));
// vo.setProjectCategory(MapUtil.getStr(map, "projectType"));
vos
.
add
(
vo
);
// }
}
// }
}
// }
}
}
catch
(
Exception
e
)
{
log
.
error
(
"模糊查询项目名称调用失败!"
);
}
return
vos
;
return
vos
;
}
}
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/CustomerServiceImpl.java
View file @
c88b0c46
...
@@ -5,6 +5,7 @@ import cn.hutool.core.bean.BeanUtil;
...
@@ -5,6 +5,7 @@ import cn.hutool.core.bean.BeanUtil;
import
cn.hutool.core.map.MapUtil
;
import
cn.hutool.core.map.MapUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.dsk.common.annotation.DataScope
;
import
com.dsk.common.core.domain.R
;
import
com.dsk.common.core.domain.R
;
import
com.dsk.common.exception.ServiceException
;
import
com.dsk.common.exception.ServiceException
;
import
com.dsk.common.utils.SecurityUtils
;
import
com.dsk.common.utils.SecurityUtils
;
...
@@ -27,6 +28,7 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -27,6 +28,7 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -52,6 +54,7 @@ public class CustomerServiceImpl implements ICustomerService {
...
@@ -52,6 +54,7 @@ public class CustomerServiceImpl implements ICustomerService {
private
BusinessOpportunityRadarService
opportunityRadarService
;
private
BusinessOpportunityRadarService
opportunityRadarService
;
@Override
@Override
// @DataScope(deptAlias = "d", userAlias = "u")
public
List
<
CustomerListVo
>
selectList
(
CustomerSearchDto
dto
)
{
public
List
<
CustomerListVo
>
selectList
(
CustomerSearchDto
dto
)
{
dto
.
setUserId
(
SecurityUtils
.
getUserId
());
dto
.
setUserId
(
SecurityUtils
.
getUserId
());
dto
.
setStatus
(
ObjectUtils
.
isEmpty
(
dto
.
getStatus
())
?
0
:
dto
.
getStatus
());
dto
.
setStatus
(
ObjectUtils
.
isEmpty
(
dto
.
getStatus
())
?
0
:
dto
.
getStatus
());
...
@@ -74,9 +77,18 @@ public class CustomerServiceImpl implements ICustomerService {
...
@@ -74,9 +77,18 @@ public class CustomerServiceImpl implements ICustomerService {
dealWithcustomerData
(
customer
);
dealWithcustomerData
(
customer
);
if
(
ObjectUtils
.
isEmpty
(
customer
.
getUipId
()))
{
if
(
ObjectUtils
.
isEmpty
(
customer
.
getUipId
()))
{
try
{
try
{
R
res
=
enterpriseService
.
getUipId
(
customer
.
getCompanyName
());
List
<
Integer
>
list
=
new
ArrayList
<>();
if
(!
ObjectUtils
.
isEmpty
(
res
.
getData
()))
{
list
.
add
(
customer
.
getCompanyId
());
customer
.
setUipId
(
MapUtil
.
getStr
(
BeanUtil
.
beanToMap
(
res
.
getData
()),
"uipId"
));
R
res
=
enterpriseService
.
getUipIdByCid
(
list
);
if
(!
ObjectUtils
.
isEmpty
(
res
.
getData
())){
List
<
Map
<
String
,
Object
>>
data
=
(
List
<
Map
<
String
,
Object
>>)
res
.
getData
();
customer
.
setUipId
(
MapUtil
.
getStr
(
BeanUtil
.
beanToMap
(
data
.
get
((
0
))),
"uipId"
));
}
if
(
ObjectUtils
.
isEmpty
(
customer
.
getUipId
())){
res
=
enterpriseService
.
getUipId
(
customer
.
getCompanyName
());
if
(!
ObjectUtils
.
isEmpty
(
res
.
getData
()))
{
customer
.
setUipId
(
MapUtil
.
getStr
(
BeanUtil
.
beanToMap
(
res
.
getData
()),
"uipId"
));
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"获取城投平台企业id错误!error:{}"
,
e
.
getMessage
());
log
.
error
(
"获取城投平台企业id错误!error:{}"
,
e
.
getMessage
());
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/EconomicServiceImpl.java
View file @
c88b0c46
...
@@ -2,6 +2,7 @@ package com.dsk.system.service.impl;
...
@@ -2,6 +2,7 @@ package com.dsk.system.service.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.dsk.acc.openapi.client.util.CommonUtils
;
import
com.dsk.common.constant.CacheConstants
;
import
com.dsk.common.constant.CacheConstants
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.core.redis.RedisCache
;
import
com.dsk.common.core.redis.RedisCache
;
...
@@ -15,7 +16,6 @@ import org.springframework.http.HttpStatus;
...
@@ -15,7 +16,6 @@ import org.springframework.http.HttpStatus;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -40,7 +40,23 @@ public class EconomicServiceImpl implements EconomicService {
...
@@ -40,7 +40,23 @@ public class EconomicServiceImpl implements EconomicService {
if
(
ObjectUtil
.
isEmpty
(
dto
.
getYear
()))
{
if
(
ObjectUtil
.
isEmpty
(
dto
.
getYear
()))
{
dto
.
setYear
(
DateUtils
.
getYear
()
-
1
);
dto
.
setYear
(
DateUtils
.
getYear
()
-
1
);
}
}
String
redisKey
=
CacheConstants
.
DATA_ECONOMIC
+
dto
.
getYear
()
+
dto
.
getProvinceIds
()
+
dto
.
getCityIds
()
+
dto
.
getAreaIds
();
Map
<
String
,
Object
>
cacheMap
=
redisCache
.
getCacheObject
(
redisKey
);
if
(
ObjectUtil
.
isNotEmpty
(
cacheMap
))
{
return
BeanUtil
.
toBean
(
cacheMap
,
AjaxResult
.
class
);
}
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/economic/national/nationalPage"
,
BeanUtil
.
beanToMap
(
dto
,
false
,
false
));
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/economic/national/nationalPage"
,
BeanUtil
.
beanToMap
(
dto
,
false
,
false
));
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
(
ObjectUtil
.
isNotEmpty
(
list
))
{
if
(
ObjectUtil
.
isEmpty
(
dto
.
getProvinceIds
())
&&
ObjectUtil
.
isEmpty
(
dto
.
getCityIds
())
&&
ObjectUtil
.
isEmpty
(
dto
.
getAreaIds
()))
{
redisCache
.
setCacheObject
(
redisKey
,
map
);
}
}
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
}
}
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/UrbanInvestmentPlatformServiceImpl.java
View file @
c88b0c46
...
@@ -49,48 +49,48 @@ public class UrbanInvestmentPlatformServiceImpl implements UrbanInvestmentPlatfo
...
@@ -49,48 +49,48 @@ public class UrbanInvestmentPlatformServiceImpl implements UrbanInvestmentPlatfo
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
}
}
ArrayList
<
String
>
uipIds
=
new
ArrayList
<>();
ArrayList
<
String
>
companyNames
=
new
ArrayList
<>();
ArrayList
<
Long
>
cIds
=
new
ArrayList
<>();
for
(
Object
dataMap
:
list
)
{
for
(
Object
dataMap
:
list
)
{
uipIds
.
add
(
MapUtils
.
getString
(
CommonUtils
.
assertAsMap
(
dataMap
),
"uipId"
));
companyNames
.
add
(
MapUtils
.
getString
(
CommonUtils
.
assertAsMap
(
dataMap
),
"companyName"
));
cIds
.
add
(
MapUtils
.
getLong
(
CommonUtils
.
assertAsMap
(
dataMap
),
"companyId"
));
}
}
// List<String> claimStatusList = iCustomerService.selectUipIdList(uipIds);
List
<
CustomerStatusListVo
>
customerStatusListVos
=
iCustomerService
.
selectStatusListByCompanyName
(
companyNames
);
List
<
CustomerStatusListVo
>
customerStatusListVos
=
iCustomerService
.
selectStatusList
(
uipIds
);
Map
<
String
,
Object
>
bondCreditRatingBatchMap
=
new
HashMap
<>(
1
);
bondCreditRatingBatchMap
.
put
(
"cIds"
,
cIds
);
Map
<
String
,
Object
>
bondCreditRatingMap
=
dskOpenApiUtil
.
requestBody
(
"/operate/enterprise/bondCreditRatingBatch"
,
bondCreditRatingBatchMap
);
Integer
codeRating
=
MapUtils
.
getInteger
(
bondCreditRatingMap
,
"code"
,
300
);
ArrayList
<
Map
<
String
,
Object
>>
objArrayList
=
new
ArrayList
(
1
);
if
(
codeRating
.
equals
(
HttpStatus
.
OK
.
value
()))
{
Object
object
=
bondCreditRatingMap
.
get
(
"data"
);
if
(
ObjectUtil
.
isNotEmpty
(
object
))
{
objArrayList
=
(
ArrayList
)
object
;
}
}
//按照城投企业id合并两个list
//按照城投企业id合并两个list
//按照城投企业id合并两个list
//按照城投企业id合并两个list
for
(
Object
companyObj
:
list
)
{
for
(
Object
companyObj
:
list
)
{
Map
<
String
,
Object
>
companyMap
=
CommonUtils
.
assertAsMap
(
companyObj
);
Map
<
String
,
Object
>
companyMap
=
CommonUtils
.
assertAsMap
(
companyObj
);
companyMap
.
put
(
"bratingSubjectLevel"
,
null
);
Long
companyId
=
MapUtils
.
getLong
(
companyMap
,
"companyId"
);
companyMap
.
put
(
"cid"
,
MapUtils
.
getString
(
companyMap
,
"companyId"
));
Map
<
String
,
Object
>
bondCreditRatingMap
=
dskOpenApiUtil
.
requestBody
(
"/operate/enterprise/bondCreditRating"
,
companyMap
);
Integer
codeRating
=
MapUtils
.
getInteger
(
bondCreditRatingMap
,
"code"
,
300
);
if
(
codeRating
.
equals
(
HttpStatus
.
OK
.
value
()))
{
Object
object
=
bondCreditRatingMap
.
get
(
"data"
);
if
(
ObjectUtil
.
isNotEmpty
(
object
))
{
ArrayList
obj
=
(
ArrayList
)
object
;
Map
<
String
,
Object
>
bondCreditRating
=
(
Map
<
String
,
Object
>)
obj
.
get
(
0
);
companyMap
.
put
(
"bratingSubjectLevel"
,
bondCreditRating
.
get
(
"bratingSubjectLevel"
));
}
}
String
uipId
=
MapUtils
.
getString
(
companyMap
,
"uipId"
);
String
uipId
=
MapUtils
.
getString
(
companyMap
,
"uipId"
);
String
companyName
=
MapUtils
.
getString
(
companyMap
,
"companyName"
,
""
);
companyMap
.
put
(
"claimStatus"
,
0
);
companyMap
.
put
(
"claimStatus"
,
0
);
companyMap
.
put
(
"bratingSubjectLevel"
,
null
);
for
(
CustomerStatusListVo
vo
:
customerStatusListVos
)
{
for
(
CustomerStatusListVo
vo
:
customerStatusListVos
)
{
if
(
uipId
.
equals
(
vo
.
getUipId
()))
{
if
(
companyName
.
equals
(
vo
.
getCompanyName
()))
{
companyMap
.
put
(
"claimStatus"
,
1
);
companyMap
.
put
(
"claimStatus"
,
1
);
}
}
}
}
}
// for (Object companyObj : list) {
for
(
Map
<
String
,
Object
>
m
:
objArrayList
)
{
// Map<String, Object> companyMap = CommonUtils.assertAsMap(companyObj);
Long
companyIdCredit
=
MapUtils
.
getLong
(
m
,
"companyId"
,
0L
);
// String uipId = MapUtils.getString(companyMap, "uipId","uipId");
if
(
companyIdCredit
.
equals
(
companyId
))
{
// if (CollectionUtils.isEmpty(claimStatusList)) {
companyMap
.
put
(
"bratingSubjectLevel"
,
m
.
get
(
"bratingSubjectLevel"
));
// companyMap.put("claimStatus", 0);
}
// } else if (claimStatusList.contains(uipId)) {
}
// companyMap.put("claimStatus", 1);
}
// } else {
// companyMap.put("claimStatus", 0);
// }
// }
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
}
}
...
...
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