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
7901ff1b
Commit
7901ff1b
authored
Jul 21, 2023
by
danfuman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev20230707' of
http://192.168.60.201/root/dsk-operate-sys
into dev20230707
parents
8be9fc37
d601c090
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
8 deletions
+56
-8
index.vue
dsk-operate-ui/src/layout/components/TagsView/index.vue
+26
-8
CustomerStatusListVo.java
...m/dsk/system/domain/customer/vo/CustomerStatusListVo.java
+4
-0
EnterpriseService.java
...ain/java/com/dsk/system/dskService/EnterpriseService.java
+6
-0
CustomerMapper.java
...m/src/main/java/com/dsk/system/mapper/CustomerMapper.java
+2
-0
ICustomerService.java
...rc/main/java/com/dsk/system/service/ICustomerService.java
+2
-0
CustomerServiceImpl.java
...java/com/dsk/system/service/impl/CustomerServiceImpl.java
+5
-0
CustomerMapper.xml
.../main/resources/mapper/system/customer/CustomerMapper.xml
+11
-0
No files found.
dsk-operate-ui/src/layout/components/TagsView/index.vue
View file @
7901ff1b
...
@@ -28,9 +28,16 @@
...
@@ -28,9 +28,16 @@
<li
v-if=
"!isLastView()"
@
click=
"closeRightTags"
><i
class=
"el-icon-right"
></i>
关闭右侧
</li>
<li
v-if=
"!isLastView()"
@
click=
"closeRightTags"
><i
class=
"el-icon-right"
></i>
关闭右侧
</li>
<li
@
click=
"closeAllTags(selectedTag)"
><i
class=
"el-icon-circle-close"
></i>
全部关闭
</li>
<li
@
click=
"closeAllTags(selectedTag)"
><i
class=
"el-icon-circle-close"
></i>
全部关闭
</li>
</ul>
</ul>
<div
class=
"alltags"
@
click=
"closeall
"
>
<div
class=
"alltags"
v-if=
"visitedViews.length > 0
"
>
<div
class=
""
><i
class=
"el-icon-arrow-down"
v-if=
"!showall"
></i>
<i
class=
"el-icon-arrow-up"
v-if=
"showall"
></i></div>
<div
class=
""
@
click=
"closeall"
><i
class=
"el-icon-arrow-down"
v-if=
"!showall"
></i>
<i
class=
"el-icon-arrow-up"
v-if=
"showall"
></i></div>
<div
class=
"tagslist"
v-if=
"showall"
>
<div
class=
"tagslist"
v-if=
"showall"
>
<!--
<div
v-for=
"(tag, index) in visitedViews"
--
>
<!--:key="tag.path"-->
<!--:class="isActive(tag)?'active':''"-->
<!-->-->
<!--
<i
class=
"el-icon-check"
></i>
-->
<!--
</div>
-->
<router-link
<router-link
v-for=
"(tag, index) in visitedViews"
v-for=
"(tag, index) in visitedViews"
ref=
"tag"
ref=
"tag"
...
@@ -39,11 +46,12 @@
...
@@ -39,11 +46,12 @@
:to=
"
{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
:to=
"
{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
tag="span"
tag="span"
class="tags-view-item"
class="tags-view-item"
@click.middle.native="!isAffix(tag)?closeSelectedTag(tag):''"
@contextmenu.prevent.native="openMenu(tag,$event)"
@contextmenu.prevent.native="openMenu(tag,$event)"
>
>
<div
@
click=
"changetags"
>
<i
class=
"el-icon-check"
></i>
<i
class=
"el-icon-check"
></i>
<span
:id=
"isActive(tag)?'tagTitle':''"
>
{{
tag
.
title
}}
</span>
<span
:id=
"isActive(tag)?'tagTitle':''"
>
{{
tag
.
title
}}
</span>
</div>
</router-link>
</router-link>
<div
class=
"clasall"
@
click=
"closeAllTag(selectedTag)"
>
关闭全部标签
</div>
<div
class=
"clasall"
@
click=
"closeAllTag(selectedTag)"
>
关闭全部标签
</div>
</div>
</div>
...
@@ -104,13 +112,17 @@ export default {
...
@@ -104,13 +112,17 @@ export default {
}
else
{
}
else
{
document
.
body
.
removeEventListener
(
'click'
,
this
.
closeMenu
)
document
.
body
.
removeEventListener
(
'click'
,
this
.
closeMenu
)
}
}
}
}
,
},
},
mounted
()
{
mounted
()
{
this
.
initTags
()
this
.
initTags
()
this
.
addTags
()
this
.
addTags
()
},
},
methods
:
{
methods
:
{
changetags
(){
console
.
log
(
88
)
this
.
showall
=
false
},
closeall
(){
closeall
(){
if
(
this
.
showall
==
true
){
if
(
this
.
showall
==
true
){
this
.
showall
=
false
this
.
showall
=
false
...
@@ -231,9 +243,10 @@ export default {
...
@@ -231,9 +243,10 @@ export default {
})
})
},
},
closeAllTag
(
view
){
closeAllTag
(
view
){
this
.
$nextTick
(()
=>
{
this
.
showall
=
false
this
.
showall
=
false
this
.
closeAllTags
(
view
)
this
.
closeAllTags
(
view
)
})
},
},
closeAllTags
(
view
)
{
closeAllTags
(
view
)
{
this
.
$tab
.
closeAllPage
().
then
(({
visitedViews
})
=>
{
this
.
$tab
.
closeAllPage
().
then
(({
visitedViews
})
=>
{
...
@@ -401,9 +414,11 @@ export default {
...
@@ -401,9 +414,11 @@ export default {
text-align
:
left
;
text-align
:
left
;
box-shadow
:
0
2px
9px
2px
rgba
(
0
,
0
,
0
,.
09
)
,
0
1px
2px
-2px
rgba
(
0
,
0
,
0
,.
16
);
box-shadow
:
0
2px
9px
2px
rgba
(
0
,
0
,
0
,.
09
)
,
0
1px
2px
-2px
rgba
(
0
,
0
,
0
,.
16
);
.tags-view-item
{
.tags-view-item
{
padding
:
8px
24px
;
display
:
block
;
display
:
block
;
position
:
relative
;
position
:
relative
;
>
div
{
padding
:
8px
24px
;
}
&
:hover
{
&
:hover
{
color
:
#0081FF
;
color
:
#0081FF
;
}
}
...
@@ -424,6 +439,9 @@ export default {
...
@@ -424,6 +439,9 @@ export default {
border-top
:
1px
solid
#EFEFEF
;
border-top
:
1px
solid
#EFEFEF
;
padding
:
10px
24px
0
;
padding
:
10px
24px
0
;
margin-top
:
10px
;
margin-top
:
10px
;
&
:hover
{
color
:
#0081FF
;
}
}
}
}
}
}
}
...
...
dsk-system/src/main/java/com/dsk/system/domain/customer/vo/CustomerStatusListVo.java
View file @
7901ff1b
...
@@ -20,5 +20,9 @@ public class CustomerStatusListVo implements Serializable {
...
@@ -20,5 +20,9 @@ public class CustomerStatusListVo implements Serializable {
* 城投id
* 城投id
*/
*/
private
String
uipId
;
private
String
uipId
;
/**
* 企业名称
*/
private
String
companyName
;
}
}
dsk-system/src/main/java/com/dsk/system/dskService/EnterpriseService.java
View file @
7901ff1b
...
@@ -59,6 +59,7 @@ public class EnterpriseService {
...
@@ -59,6 +59,7 @@ public class EnterpriseService {
companyData
.
put
(
"uipId"
,
null
);
companyData
.
put
(
"uipId"
,
null
);
companyData
.
put
(
"claimStatus"
,
0
);
companyData
.
put
(
"claimStatus"
,
0
);
companyData
.
put
(
"bratingSubjectLevel"
,
null
);
companyData
.
put
(
"bratingSubjectLevel"
,
null
);
String
companyName
=
MapUtils
.
getString
(
companyData
,
"companyName"
,
""
);
Map
<
String
,
Object
>
map
=
BeanUtil
.
beanToMap
(
body
,
false
,
false
);
Map
<
String
,
Object
>
map
=
BeanUtil
.
beanToMap
(
body
,
false
,
false
);
map
.
put
(
"cid"
,
body
.
getCompanyId
());
map
.
put
(
"cid"
,
body
.
getCompanyId
());
...
@@ -74,6 +75,11 @@ public class EnterpriseService {
...
@@ -74,6 +75,11 @@ public class EnterpriseService {
ArrayList
<
String
>
uipIds
=
new
ArrayList
<>();
ArrayList
<
String
>
uipIds
=
new
ArrayList
<>();
uipIds
.
add
(
uipId
);
uipIds
.
add
(
uipId
);
companyData
.
put
(
"claimStatus"
,
CollectionUtils
.
isEmpty
(
iCustomerService
.
selectStatusList
(
uipIds
))
?
0
:
1
);
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
);
...
...
dsk-system/src/main/java/com/dsk/system/mapper/CustomerMapper.java
View file @
7901ff1b
...
@@ -28,6 +28,8 @@ public interface CustomerMapper extends BaseMapper<Customer> {
...
@@ -28,6 +28,8 @@ public interface CustomerMapper extends BaseMapper<Customer> {
List
<
CustomerStatusListVo
>
selectStatusList
(
@Param
(
"uipIds"
)
List
<
String
>
uipIds
,
@Param
(
"userId"
)
Long
userId
);
List
<
CustomerStatusListVo
>
selectStatusList
(
@Param
(
"uipIds"
)
List
<
String
>
uipIds
,
@Param
(
"userId"
)
Long
userId
);
List
<
CustomerStatusListVo
>
selectStatusListByCompanyName
(
@Param
(
"companyNames"
)
List
<
String
>
companyNames
,
@Param
(
"userId"
)
Long
userId
);
// List<String> selectUipIdList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId);
// List<String> selectUipIdList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId);
}
}
...
...
dsk-system/src/main/java/com/dsk/system/service/ICustomerService.java
View file @
7901ff1b
...
@@ -29,6 +29,8 @@ public interface ICustomerService {
...
@@ -29,6 +29,8 @@ public interface ICustomerService {
List
<
CustomerStatusListVo
>
selectStatusList
(
List
<
String
>
uipIds
);
List
<
CustomerStatusListVo
>
selectStatusList
(
List
<
String
>
uipIds
);
List
<
CustomerStatusListVo
>
selectStatusListByCompanyName
(
List
<
String
>
companyNames
);
// List<String> selectUipIdList(List<String> uipIds);
// List<String> selectUipIdList(List<String> uipIds);
Integer
status
(
String
companyName
);
Integer
status
(
String
companyName
);
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/CustomerServiceImpl.java
View file @
7901ff1b
...
@@ -119,6 +119,11 @@ public class CustomerServiceImpl implements ICustomerService {
...
@@ -119,6 +119,11 @@ public class CustomerServiceImpl implements ICustomerService {
return
baseMapper
.
selectStatusList
(
uipIds
,
SecurityUtils
.
getUserId
());
return
baseMapper
.
selectStatusList
(
uipIds
,
SecurityUtils
.
getUserId
());
}
}
@Override
public
List
<
CustomerStatusListVo
>
selectStatusListByCompanyName
(
List
<
String
>
companyNames
)
{
return
baseMapper
.
selectStatusListByCompanyName
(
companyNames
,
SecurityUtils
.
getUserId
());
}
// @Override
// @Override
// public List<String> selectUipIdList(List<String> uipIds) {
// public List<String> selectUipIdList(List<String> uipIds) {
...
...
dsk-system/src/main/resources/mapper/system/customer/CustomerMapper.xml
View file @
7901ff1b
...
@@ -58,6 +58,17 @@
...
@@ -58,6 +58,17 @@
</foreach>
</foreach>
</select>
</select>
<select
id=
"selectStatusListByCompanyName"
resultType=
"com.dsk.system.domain.customer.vo.CustomerStatusListVo"
>
select
ct.customer_id, ct.company_name
from customer ct
join customer_user ctu on ct.customer_id = ctu.customer_id
where ctu.user_id = #{userId} and ctu.status = 0 and ct.company_name in
<foreach
collection=
"companyNames"
item=
"companyName"
open=
"("
separator=
","
close=
")"
>
#{companyName}
</foreach>
</select>
<!-- <select id="selectUipIdList" resultType="java.lang.String">-->
<!-- <select id="selectUipIdList" resultType="java.lang.String">-->
<!-- select-->
<!-- select-->
<!-- ct.uip_id-->
<!-- ct.uip_id-->
...
...
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