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
a1f6a04a
Commit
a1f6a04a
authored
Jun 01, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据验证接口
parent
4c16ba73
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
1 deletion
+48
-1
CustomerStatusListVo.java
...m/dsk/system/domain/customer/vo/CustomerStatusListVo.java
+24
-0
CustomerMapper.java
...m/src/main/java/com/dsk/system/mapper/CustomerMapper.java
+4
-1
ICustomerService.java
...rc/main/java/com/dsk/system/service/ICustomerService.java
+3
-0
CustomerServiceImpl.java
...java/com/dsk/system/service/impl/CustomerServiceImpl.java
+6
-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
0 → 100644
View file @
a1f6a04a
package
com
.
dsk
.
system
.
domain
.
customer
.
vo
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 客户状态列表
*
* @author lcl
* @create 2023/5/22
*/
@Data
public
class
CustomerStatusListVo
implements
Serializable
{
/**
* 客户id
*/
private
String
customerId
;
/**
* 城投id
*/
private
String
uipId
;
}
dsk-system/src/main/java/com/dsk/system/mapper/CustomerMapper.java
View file @
a1f6a04a
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
com.dsk.system.domain.customer.Customer
;
import
com.dsk.system.domain.customer.dto.CustomerSearchDto
;
import
com.dsk.system.domain.customer.vo.CustomerListVo
;
import
com.dsk.system.domain.customer.vo.CustomerStatusListVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -23,7 +24,9 @@ public interface CustomerMapper extends BaseMapper<Customer> {
List
<
Customer
>
selectUserList
(
Long
userId
);
Customer
selectByCompanyNameAndUserId
(
@Param
(
"companyName"
)
String
companyName
,
@Param
(
"userId"
)
Long
userId
);
Customer
selectByCompanyNameAndUserId
(
@Param
(
"companyName"
)
String
companyName
,
@Param
(
"userId"
)
Long
userId
);
List
<
CustomerStatusListVo
>
selectStatusList
(
@Param
(
"uipIds"
)
List
<
String
>
uipIds
,
@Param
(
"userId"
)
Long
userId
);
}
dsk-system/src/main/java/com/dsk/system/service/ICustomerService.java
View file @
a1f6a04a
...
...
@@ -5,6 +5,7 @@ import com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto;
import
com.dsk.system.domain.customer.dto.CustomerSearchDto
;
import
com.dsk.system.domain.customer.vo.CustomerBusinessListVo
;
import
com.dsk.system.domain.customer.vo.CustomerListVo
;
import
com.dsk.system.domain.customer.vo.CustomerStatusListVo
;
import
com.dsk.system.domain.customer.vo.CustomerVo
;
import
java.util.List
;
...
...
@@ -29,4 +30,6 @@ public interface ICustomerService {
List
<
CustomerBusinessListVo
>
selectBusinessList
(
CustomerBusinessSearchDto
dto
);
List
<
CustomerStatusListVo
>
selectStatusList
(
List
<
String
>
uipIds
);
}
dsk-system/src/main/java/com/dsk/system/service/impl/CustomerServiceImpl.java
View file @
a1f6a04a
...
...
@@ -13,6 +13,7 @@ import com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto;
import
com.dsk.system.domain.customer.dto.CustomerSearchDto
;
import
com.dsk.system.domain.customer.vo.CustomerBusinessListVo
;
import
com.dsk.system.domain.customer.vo.CustomerListVo
;
import
com.dsk.system.domain.customer.vo.CustomerStatusListVo
;
import
com.dsk.system.domain.customer.vo.CustomerVo
;
import
com.dsk.system.dskService.EnterpriseService
;
import
com.dsk.system.mapper.CustomerMapper
;
...
...
@@ -123,4 +124,9 @@ public class CustomerServiceImpl implements ICustomerService {
return
businessInfoService
.
selectCustomerBusinessList
(
dto
);
}
@Override
public
List
<
CustomerStatusListVo
>
selectStatusList
(
List
<
String
>
uipIds
)
{
return
baseMapper
.
selectStatusList
(
uipIds
,
SecurityUtils
.
getUserId
());
}
}
dsk-system/src/main/resources/mapper/system/customer/CustomerMapper.xml
View file @
a1f6a04a
...
...
@@ -37,5 +37,16 @@
where ct.company_name = #{companyName} and ctu.user_id = #{userId}
</select>
<select
id=
"selectStatusList"
resultType=
"com.dsk.system.domain.customer.vo.CustomerStatusListVo"
>
select
ct.customer_id, ct.uip_id
from customer ct
join customer_user ctu on ct.customer_id = ctu.customer_id
where ctu.user_id = #{userId} and ct.uip_id in
<foreach
collection=
"uipIds"
item=
"uipId"
open=
"("
separator=
","
close=
","
>
#{uipId}
</foreach>
</select>
</mapper>
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