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

This commit is contained in:
David Wei 2023-07-21 17:24:53 +08:00
parent 8df34e50fa
commit fe03c2fb92

View File

@ -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;
}