Commit bbe4fb7a authored by hongguangwu's avatar hongguangwu

MVP1.6.7-开户行总行list

parent a3d25282
......@@ -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));
}
/**
* 不分页查询
*
......
......@@ -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);
}
......@@ -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
......
......@@ -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 开户行
......
......@@ -40,6 +40,7 @@ security:
- /actuator/**
- /swagger-ui/**
- /taveragesalary/getAverageSalary
- /tbankset/getWebcBankSetIdNameList
......
......@@ -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'
......@@ -80,6 +82,18 @@
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>
<!--list-->
<select id="getTBankSetList" resultType="java.lang.String">
SELECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment