785834757 пре 1 година
родитељ
комит
cbc75bd4c5

+ 3 - 1
commons/src/main/java/com/jzg/commons/entity/vo/IsEnableVo.java

@@ -2,6 +2,8 @@ package com.jzg.commons.entity.vo;
 
 import lombok.Data;
 
+import java.util.List;
+
 /**
  * @author quchen
  * @date 2025/1/17 16:37
@@ -10,7 +12,7 @@ import lombok.Data;
 
 @Data
 public class IsEnableVo {
-    private String[] ids;
+    private List<String> id;
 
     private Integer isEnable;
 

+ 1 - 1
platform/src/main/resources/mapper/SysSystemMapper.xml

@@ -56,7 +56,7 @@
             <if test="sysSystemVo.districtId != null and sysSystemVo.districtId != ''">
                 and district_id = #{sysSystemVo.districtId}
             </if>
-            <if test="sysSystemVo.sysType != null and sysSystemVo.sysType != ''">
+            <if test="sysSystemVo.sysType != null">
                 and sys_type = #{sysSystemVo.sysType}
             </if>
             <if test="sysSystemVo.searchValue != null and sysSystemVo.searchValue != ''">

+ 2 - 2
tenant/organization/src/main/java/com/jzg/organization/service/impl/SysUserServiceImpl.java

@@ -310,8 +310,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
             }
             sysUserJzgInfoService.updateBatchById(sysUserJzgInfoList);
         } else {
-            for (String id : isEnableVo.getIds()) {
-                SysUserJzgInfo sysUserJzgInfo = sysUserJzgInfoService.getById(id);
+            for (String id : isEnableVo.getId()) {
+                SysUserJzgInfo sysUserJzgInfo = sysUserJzgInfoService.getUserByUserId(id);
                 if (sysUserJzgInfo == null) {
                     throw new SystemException("该用户不存在");
                 }