瀏覽代碼

修复客户端编辑时授权类型变更未保存的问题

David Wei 2 年之前
父節點
當前提交
fe03c2fb92

+ 1 - 0
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysClientServiceImpl.java

@@ -110,6 +110,7 @@ public class SysClientServiceImpl implements ISysClientService {
     public Boolean updateByBo(SysClientBo bo) {
         SysClient update = MapstructUtils.convert(bo, SysClient.class);
         validEntityBeforeSave(update);
+        update.setGrantType(String.join(",", bo.getGrantTypeList()));
         return baseMapper.updateById(update) > 0;
     }