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
0961f6b0
Commit
0961f6b0
authored
Aug 01, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
认领状态修改
parent
3593c254
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
10 deletions
+15
-10
CustomerStatusListVo.java
...m/dsk/system/domain/customer/vo/CustomerStatusListVo.java
+4
-0
EnterpriseService.java
...ain/java/com/dsk/system/dskService/EnterpriseService.java
+7
-6
UrbanInvestmentPlatformServiceImpl.java
...stem/service/impl/UrbanInvestmentPlatformServiceImpl.java
+2
-2
CustomerMapper.xml
.../main/resources/mapper/system/customer/CustomerMapper.xml
+2
-2
No files found.
dsk-system/src/main/java/com/dsk/system/domain/customer/vo/CustomerStatusListVo.java
View file @
0961f6b0
...
@@ -24,5 +24,9 @@ public class CustomerStatusListVo implements Serializable {
...
@@ -24,5 +24,9 @@ public class CustomerStatusListVo implements Serializable {
* 企业名称
* 企业名称
*/
*/
private
String
companyName
;
private
String
companyName
;
/**
* 企业名称
*/
private
Integer
status
;
}
}
dsk-system/src/main/java/com/dsk/system/dskService/EnterpriseService.java
View file @
0961f6b0
...
@@ -71,10 +71,11 @@ public class EnterpriseService {
...
@@ -71,10 +71,11 @@ 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
);
Integer
status
=
iCustomerService
.
status
(
companyName
);
companyData
.
put
(
"claimStatus"
,
iCustomerService
.
status
(
companyName
));
if
(
ObjectUtil
.
isNotEmpty
(
status
))
{
// Integer status = iCustomerService.status(companyName);
companyData
.
put
(
"claimStatus"
,
status
.
equals
(
0
)
?
1
:
0
);
// 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
);
...
@@ -317,10 +318,10 @@ public class EnterpriseService {
...
@@ -317,10 +318,10 @@ public class EnterpriseService {
companyMap
.
put
(
"guaranteeAmount"
,
MapUtils
.
getDouble
(
companyMap
,
"guaranteeAmount"
)==
null
?
null
:
String
.
format
(
"%.2f"
,
MapUtils
.
getDouble
(
companyMap
,
"guaranteeAmount"
)));
companyMap
.
put
(
"guaranteeAmount"
,
MapUtils
.
getDouble
(
companyMap
,
"guaranteeAmount"
)==
null
?
null
:
String
.
format
(
"%.2f"
,
MapUtils
.
getDouble
(
companyMap
,
"guaranteeAmount"
)));
companyMap
.
put
(
"guaranteeRatio"
,
MapUtils
.
getDouble
(
companyMap
,
"guaranteeRatio"
)==
null
?
null
:
String
.
format
(
"%.2f"
,
MapUtils
.
getDouble
(
companyMap
,
"guaranteeRatio"
)));
companyMap
.
put
(
"guaranteeRatio"
,
MapUtils
.
getDouble
(
companyMap
,
"guaranteeRatio"
)==
null
?
null
:
String
.
format
(
"%.2f"
,
MapUtils
.
getDouble
(
companyMap
,
"guaranteeRatio"
)));
companyMap
.
put
(
"claimStatus"
,
0
);
companyMap
.
put
(
"claimStatus"
,
null
);
for
(
CustomerStatusListVo
vo
:
claimStatusList
)
{
for
(
CustomerStatusListVo
vo
:
claimStatusList
)
{
if
(
companyName
.
equals
(
vo
.
getCompanyName
()))
{
if
(
companyName
.
equals
(
vo
.
getCompanyName
()))
{
companyMap
.
put
(
"claimStatus"
,
1
);
companyMap
.
put
(
"claimStatus"
,
vo
.
getStatus
()
);
}
}
}
}
for
(
Map
<
String
,
Object
>
m
:
objArrayList
)
{
for
(
Map
<
String
,
Object
>
m
:
objArrayList
)
{
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/UrbanInvestmentPlatformServiceImpl.java
View file @
0961f6b0
...
@@ -85,11 +85,11 @@ public class UrbanInvestmentPlatformServiceImpl implements UrbanInvestmentPlatfo
...
@@ -85,11 +85,11 @@ public class UrbanInvestmentPlatformServiceImpl implements UrbanInvestmentPlatfo
companyName
=
companyName
.
replace
(
"<font color='red'>"
,
""
);
companyName
=
companyName
.
replace
(
"<font color='red'>"
,
""
);
companyName
=
companyName
.
replace
(
"</font>"
,
""
);
companyName
=
companyName
.
replace
(
"</font>"
,
""
);
}
}
companyMap
.
put
(
"claimStatus"
,
0
);
companyMap
.
put
(
"claimStatus"
,
null
);
companyMap
.
put
(
"bratingSubjectLevel"
,
null
);
companyMap
.
put
(
"bratingSubjectLevel"
,
null
);
for
(
CustomerStatusListVo
vo
:
customerStatusListVos
)
{
for
(
CustomerStatusListVo
vo
:
customerStatusListVos
)
{
if
(
companyName
.
equals
(
vo
.
getCompanyName
()))
{
if
(
companyName
.
equals
(
vo
.
getCompanyName
()))
{
companyMap
.
put
(
"claimStatus"
,
1
);
companyMap
.
put
(
"claimStatus"
,
vo
.
getStatus
()
);
}
}
}
}
// 去除重复的数据
// 去除重复的数据
...
...
dsk-system/src/main/resources/mapper/system/customer/CustomerMapper.xml
View file @
0961f6b0
...
@@ -60,10 +60,10 @@
...
@@ -60,10 +60,10 @@
<select
id=
"selectStatusListByCompanyName"
resultType=
"com.dsk.system.domain.customer.vo.CustomerStatusListVo"
>
<select
id=
"selectStatusListByCompanyName"
resultType=
"com.dsk.system.domain.customer.vo.CustomerStatusListVo"
>
select
select
ct.customer_id, ct.company_name
ct.customer_id, ct.company_name
, ctu.status
from customer ct
from customer ct
join customer_user ctu on ct.customer_id = ctu.customer_id
join customer_user ctu on ct.customer_id = ctu.customer_id
where ctu.user_id = #{userId} and ct
u.status = 0 and ct
.company_name in
where ctu.user_id = #{userId} and ct.company_name in
<foreach
collection=
"companyNames"
item=
"companyName"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"companyNames"
item=
"companyName"
open=
"("
separator=
","
close=
")"
>
#{companyName}
#{companyName}
</foreach>
</foreach>
...
...
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