Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
0a4a300b
Commit
0a4a300b
authored
Oct 19, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户获取接口
parent
d3b83d40
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
1 deletion
+18
-1
TCustomerInfoMapper.java
...oud/plus/v1/yifu/archives/mapper/TCustomerInfoMapper.java
+3
-0
TCustomerInfoService.java
...d/plus/v1/yifu/archives/service/TCustomerInfoService.java
+3
-0
TCustomerInfoServiceImpl.java
.../yifu/archives/service/impl/TCustomerInfoServiceImpl.java
+6
-0
TEmpChangeInfoServiceImpl.java
...yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
+2
-1
TCustomerInfoMapper.xml
...ves-biz/src/main/resources/mapper/TCustomerInfoMapper.xml
+4
-0
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TCustomerInfoMapper.java
View file @
0a4a300b
...
...
@@ -21,6 +21,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCustomerInfo
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
/**
* 客户信息
*
...
...
@@ -30,4 +32,5 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
public
interface
TCustomerInfoMapper
extends
BaseMapper
<
TCustomerInfo
>
{
List
<
TCustomerInfo
>
getAllUnit
();
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TCustomerInfoService.java
View file @
0a4a300b
...
...
@@ -20,6 +20,8 @@ package com.yifu.cloud.plus.v1.yifu.archives.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCustomerInfo
;
import
java.util.List
;
/**
* 客户信息
*
...
...
@@ -28,4 +30,5 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TCustomerInfo;
*/
public
interface
TCustomerInfoService
extends
IService
<
TCustomerInfo
>
{
List
<
TCustomerInfo
>
getAllUnit
();
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TCustomerInfoServiceImpl.java
View file @
0a4a300b
...
...
@@ -22,6 +22,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.mapper.TCustomerInfoMapper;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TCustomerInfoService
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* 客户信息
*
...
...
@@ -31,4 +33,8 @@ import org.springframework.stereotype.Service;
@Service
public
class
TCustomerInfoServiceImpl
extends
ServiceImpl
<
TCustomerInfoMapper
,
TCustomerInfo
>
implements
TCustomerInfoService
{
@Override
public
List
<
TCustomerInfo
>
getAllUnit
()
{
return
baseMapper
.
getAllUnit
();
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
View file @
0a4a300b
...
...
@@ -292,7 +292,8 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
*/
@Override
public
R
<
List
<
TCustomerInfo
>>
getAllUint
()
{
List
<
TCustomerInfo
>
list
=
tCustomerInfoService
.
list
(
Wrappers
.<
TCustomerInfo
>
query
().
lambda
().
eq
(
TCustomerInfo:
:
getDeleteFlag
,
CommonConstants
.
STATUS_NORMAL
));
//List<TCustomerInfo> list = tCustomerInfoService.list(Wrappers.<TCustomerInfo>query().lambda().eq(TCustomerInfo::getDeleteFlag, CommonConstants.STATUS_NORMAL));
List
<
TCustomerInfo
>
list
=
tCustomerInfoService
.
getAllUnit
();
return
R
.
ok
(
list
);
}
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TCustomerInfoMapper.xml
View file @
0a4a300b
...
...
@@ -60,4 +60,8 @@
<result
property=
"dataSource"
column=
"data_source"
/>
<result
property=
"balance"
column=
"BALANCE"
/>
</resultMap>
<select
id=
"getAllUnit"
resultMap=
"tCustomerInfoMap"
>
select a.CUSTOMER_ID AS "ID",a.CUSTOMER_NAME AS "CUSTOMER_NAME",a.CUSTOMER_NO AS "CUSTOMER_CODE" from t_settle_domain a GROUP BY A.CUSTOMER_NO
</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