Commit cc0af4a0 by 杨林龙

添加下拉选模糊查询接口 yangll

1 parent 0ebd4daf
...@@ -22,7 +22,7 @@ public interface UserMgrService { ...@@ -22,7 +22,7 @@ public interface UserMgrService {
* *
* @return * @return
*/ */
List<String> getCustomerNameList(); List<String> getCustomerNameList(String customerName);
/** /**
* 获取用户数量 * 获取用户数量
......
...@@ -20,7 +20,7 @@ public interface PlatformCustomerMapper extends OreMapper<PlatformCustomer> { ...@@ -20,7 +20,7 @@ public interface PlatformCustomerMapper extends OreMapper<PlatformCustomer> {
List<PlatformCustomer> getCustomerMgrList(); List<PlatformCustomer> getCustomerMgrList();
List<String> getCustomerNameList(); List<String> getCustomerNameList(@Param("customerName") String customerName);
int getCustomerCount(); int getCustomerCount();
......
...@@ -36,8 +36,8 @@ public class UserMgrServiceImpl implements UserMgrService { ...@@ -36,8 +36,8 @@ public class UserMgrServiceImpl implements UserMgrService {
} }
@Override @Override
public List<String> getCustomerNameList() { public List<String> getCustomerNameList(String customerName) {
return customerMapper.getCustomerNameList(); return customerMapper.getCustomerNameList(customerName);
} }
@Override @Override
......
...@@ -199,6 +199,7 @@ ...@@ -199,6 +199,7 @@
<select id="getCustomerNameList" resultType="java.lang.String"> <select id="getCustomerNameList" resultType="java.lang.String">
select distinct customer_name select distinct customer_name
from t_platform_customer from t_platform_customer
where customer_name like '%${customerName}%'
</select> </select>
<select id="getCustomerCount" resultType="java.lang.Integer"> <select id="getCustomerCount" resultType="java.lang.Integer">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!