Bladeren bron

修改代理商人员查询逻辑

hgw 3 jaren geleden
bovenliggende
commit
a34cd368ad

+ 3 - 3
mec-biz/src/main/java/com/ym/mec/biz/dal/vo/ProxyDividendVo.java

@@ -41,7 +41,7 @@ public class ProxyDividendVo implements Serializable {
         private Integer activeCount;
 
         @ApiModelProperty(value = "推荐人")
-        private Integer recommenderName;
+        private String recommenderName;
 
         public Integer getProxyId() {
             return proxyId;
@@ -91,11 +91,11 @@ public class ProxyDividendVo implements Serializable {
             this.activeCount = activeCount;
         }
 
-        public Integer getRecommenderName() {
+        public String getRecommenderName() {
             return recommenderName;
         }
 
-        public void setRecommenderName(Integer recommenderName) {
+        public void setRecommenderName(String recommenderName) {
             this.recommenderName = recommenderName;
         }
     }

+ 2 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/TenantProxyInfoServiceImpl.java

@@ -1,5 +1,6 @@
 package com.ym.mec.biz.service.impl;
 
+import com.alibaba.fastjson.JSON;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@@ -192,6 +193,7 @@ public class TenantProxyInfoServiceImpl extends ServiceImpl<TenantProxyInfoDao,
      *              <p> - search 模糊搜索关键字
      */
     public List<SysUser> queryUserList(Map<String, Object> param) {
+        log.info("queryUserList>>>>>> {}" , JSON.toJSONString(param));
         return baseMapper.queryUserList(param);
     }
 

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/TenantProxyInfoMapper.xml

@@ -96,7 +96,7 @@
         <if test="param.id != null ">
             AND id_ = #{param.id}
         </if>
-        <if test="param.search != null ">
+        <if test="param.search != null and param.search != ''">
           AND (
                `real_name_` LIKE CONCAT('%', #{param.search},'%')
                 OR `phone_` LIKE CONCAT('%', #{param.search},'%')