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
bbe4fb7a
Commit
bbe4fb7a
authored
Jul 15, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.6.7-开户行总行list
parent
a3d25282
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
3 deletions
+53
-3
TBankSetController.java
...ud/plus/v1/yifu/salary/controller/TBankSetController.java
+13
-0
TBankSetMapper.java
...yifu/cloud/plus/v1/yifu/salary/mapper/TBankSetMapper.java
+2
-0
TBankSetService.java
...fu/cloud/plus/v1/yifu/salary/service/TBankSetService.java
+9
-0
TBankSetServiceImpl.java
...plus/v1/yifu/salary/service/impl/TBankSetServiceImpl.java
+11
-0
application.yml
...salary/yifu-salary-biz/src/main/resources/application.yml
+1
-0
TBankSetMapper.xml
...u-salary-biz/src/main/resources/mapper/TBankSetMapper.xml
+17
-3
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TBankSetController.java
View file @
bbe4fb7a
...
...
@@ -67,6 +67,19 @@ public class TBankSetController {
return
new
R
<>(
tBankSetService
.
getTBankSetPage
(
page
,
tBankSet
));
}
/**
* @param tBankSet
* @Description: 预入职C端使用开户行
* @Author: hgw
* @Date: 2024/7/15 17:00
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<com.baomidou.mybatisplus.core.metadata.IPage < com.yifu.cloud.plus.v1.yifu.salary.entity.TBankSet>>
**/
@Operation
(
description
=
"预入职C端使用开户行"
)
@GetMapping
(
"/getWebcBankSetIdNameList"
)
public
R
<
List
<
TBankSet
>>
getWebcBankSetIdNameList
(
TBankSetSearchVo
tBankSet
)
{
return
new
R
<>(
tBankSetService
.
getTBankSetIdNameList
(
tBankSet
));
}
/**
* 不分页查询
*
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TBankSetMapper.java
View file @
bbe4fb7a
...
...
@@ -42,6 +42,8 @@ public interface TBankSetMapper extends BaseMapper<TBankSet> {
*/
IPage
<
TBankSet
>
getTBankSetPage
(
Page
<
TBankSet
>
page
,
@Param
(
"tBankSet"
)
TBankSet
tBankSet
);
List
<
TBankSet
>
getTBankSetIdNameList
(
@Param
(
"tBankSet"
)
TBankSet
tBankSet
);
List
<
String
>
getTBankSetList
(
@Param
(
"bankName"
)
String
bankName
);
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/TBankSetService.java
View file @
bbe4fb7a
...
...
@@ -44,6 +44,15 @@ public interface TBankSetService extends IService<TBankSet> {
*/
IPage
<
TBankSet
>
getTBankSetPage
(
Page
<
TBankSet
>
page
,
TBankSetSearchVo
tBankSet
);
/**
* @param tBankSet
* @Description: 获取Id和Name,当前给C端预入职使用,其他接口也可以使用,但是回传参数只有2个
* @Author: hgw
* @Date: 2024/7/15 16:59
* @return: java.util.List<com.yifu.cloud.plus.v1.yifu.salary.entity.TBankSet>
**/
List
<
TBankSet
>
getTBankSetIdNameList
(
TBankSetSearchVo
tBankSet
);
/**
* @param bankName 开户行
* @Description: 获取Map
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TBankSetServiceImpl.java
View file @
bbe4fb7a
...
...
@@ -71,6 +71,17 @@ public class TBankSetServiceImpl extends ServiceImpl<TBankSetMapper, TBankSet> i
return
baseMapper
.
getTBankSetPage
(
page
,
tBankSet
);
}
/**
* 开户行配置表简单分页查询
*
* @param tBankSet 开户行配置表
* @return
*/
@Override
public
List
<
TBankSet
>
getTBankSetIdNameList
(
TBankSetSearchVo
tBankSet
)
{
return
baseMapper
.
getTBankSetIdNameList
(
tBankSet
);
}
/**
* 开户行Map
* @param bankName 开户行
...
...
yifu-salary/yifu-salary-biz/src/main/resources/application.yml
View file @
bbe4fb7a
...
...
@@ -40,6 +40,7 @@ security:
-
/actuator/**
-
/swagger-ui/**
-
/taveragesalary/getAverageSalary
-
/tbankset/getWebcBankSetIdNameList
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TBankSetMapper.xml
View file @
bbe4fb7a
...
...
@@ -68,10 +68,12 @@
</if>
</if>
</sql>
<!--tBankSet简单分页查询-->
<select
id=
"getTBankSetPage"
resultMap=
"tBankSetMap"
>
<!--获取IdName-->
<select
id=
"getTBankSetIdNameList"
resultMap=
"tBankSetMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
a.ID,
a.BANK_NAME
FROM t_bank_set a
<where>
a.DELETE_FLAG = '0'
...
...
@@ -91,4 +93,16 @@
</if>
order by a.CREATE_TIME desc
</select>
<!--list-->
<select
id=
"getTBankSetList"
resultType=
"java.lang.String"
>
SELECT
a.BANK_NAME
FROM t_bank_set a
where a.DELETE_FLAG = '0'
<if
test=
"bankName != null and bankName.trim() != ''"
>
and a.BANK_NAME = #{bankName}
</if>
order by a.CREATE_TIME desc
</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