he2802 2 жил өмнө
parent
commit
46fc184466

+ 5 - 0
zhongzheng-framework/src/main/java/com/zhongzheng/framework/web/service/DistributionSellerServiceImpl.java

@@ -142,6 +142,7 @@ public class DistributionSellerServiceImpl extends ServiceImpl<DistributionSelle
             sysUser.setSellerId(inertData.getSellerId());
             sysUser.setCreateTime(DateUtils.getNowDate());
             sysUser.setUpdateTime(DateUtils.getNowDate());
+            sysUser.setCreateBy("client");
             SysRole role = iSysRoleService.getOne(new LambdaQueryWrapper<SysRole>()
                     .eq(SysRole::getRoleKey, "seller")
                     .eq(SysRole::getStatus, 1).last("limit 1"));
@@ -448,6 +449,10 @@ public class DistributionSellerServiceImpl extends ServiceImpl<DistributionSelle
         user.setAvatar(bo.getAvatar());
         user.setUserId(bo.getSysUserId());
         user.setUpdateTime(DateUtils.getNowDate());
+        if(Validator.isNotEmpty(bo.getStatus())){
+            user.setStatus(new Long(bo.getStatus()));
+        }
+
         return iSysUserService.updateById(user);
     }
 

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/distribution/DistributionSellerMapper.xml

@@ -66,7 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         WHERE
         1=1
         <if test="realname != null and realname != ''">
-            AND s.realname = like concat('%', #{realname}, '%')
+            AND s.realname  like concat('%', #{realname}, '%')
         </if>
         ORDER BY
             s.seller_id DESC