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
c1afd3a7
Commit
c1afd3a7
authored
Jul 21, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
23581658
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
0 deletions
+24
-0
CustomerStatusListVo.java
...m/dsk/system/domain/customer/vo/CustomerStatusListVo.java
+4
-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-system/src/main/java/com/dsk/system/domain/customer/vo/CustomerStatusListVo.java
View file @
c1afd3a7
...
@@ -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/mapper/CustomerMapper.java
View file @
c1afd3a7
...
@@ -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 @
c1afd3a7
...
@@ -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 @
c1afd3a7
...
@@ -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 @
c1afd3a7
...
@@ -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