Compare commits
No commits in common. "8e1c6be5a63530d48b3faecbcad1c15dea0a4bd3" and "67ef21e9ffd576b992c23cf9b7d3eaed03edbabf" have entirely different histories.
8e1c6be5a6
...
67ef21e9ff
|
@ -37,6 +37,7 @@ public class BuildPermissionApiTest {
|
||||||
String path = parent.getPath();
|
String path = parent.getPath();
|
||||||
String httpMethod = parent.getHttpMethod();
|
String httpMethod = parent.getHttpMethod();
|
||||||
String powerCodes = parent.getPowerCode();
|
String powerCodes = parent.getPowerCode();
|
||||||
|
String description = parent.getDescription();
|
||||||
|
|
||||||
// 设置 powerCode
|
// 设置 powerCode
|
||||||
String powerCode = Objects.isNull(powerCodes) ? "" : powerCodes;
|
String powerCode = Objects.isNull(powerCodes) ? "" : powerCodes;
|
||||||
|
|
|
@ -4,6 +4,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
@ -11,6 +12,7 @@ import org.springframework.web.multipart.MultipartFile;
|
||||||
@Data
|
@Data
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
@Builder
|
||||||
@Schema(name = "I18nUpdateByFileDto对象", title = "用文件更新多语言", description = "用文件更新多语言")
|
@Schema(name = "I18nUpdateByFileDto对象", title = "用文件更新多语言", description = "用文件更新多语言")
|
||||||
public class I18nUpdateByFileDto {
|
public class I18nUpdateByFileDto {
|
||||||
|
|
||||||
|
|
|
@ -14,39 +14,37 @@
|
||||||
<result column="is_deleted" property="isDeleted"/>
|
<result column="is_deleted" property="isDeleted"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 通用查询结果列 -->
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id, user_id, role_id, create_time, update_time, create_user, update_user, is_deleted
|
||||||
|
</sql>
|
||||||
|
|
||||||
<!-- 删除这个用户id下所有的角色信息 -->
|
<!-- 删除这个用户id下所有的角色信息 -->
|
||||||
<delete id="deleteBatchIdsByUserIds">
|
<delete id="deleteBatchIdsByUserIds">
|
||||||
delete
|
delete
|
||||||
from sys_user_role
|
from sys_user_role
|
||||||
<if test="userIds != null and !userIds.isEmpty()">
|
where user_id in
|
||||||
where user_id in
|
<foreach collection="userIds" item="id" open="(" close=")" separator=",">
|
||||||
<foreach collection="userIds" item="id" open="(" close=")" separator=",">
|
#{id}
|
||||||
#{id}
|
</foreach>
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<!-- 根据角色id删除用户和角色 -->
|
<!-- 根据角色id删除用户和角色 -->
|
||||||
<delete id="deleteBatchIdsByRoleIds">
|
<delete id="deleteBatchIdsByRoleIds">
|
||||||
delete
|
delete
|
||||||
from sys_user_role
|
from sys_user_role
|
||||||
<if test="roleIds != null and !roleIds.isEmpty()">
|
where role_id in
|
||||||
where role_id in
|
<foreach collection="roleIds" item="id" open="(" close=")" separator=",">
|
||||||
<foreach collection="roleIds" item="id" open="(" close=")" separator=",">
|
#{id}
|
||||||
#{id}
|
</foreach>
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<!-- 根据角色id列表查询 -->
|
<!-- 根据角色id列表查询 -->
|
||||||
<select id="selectListByRoleIds" resultType="cn.bunny.services.domain.system.system.entity.UserRole">
|
<select id="selectListByRoleIds" resultType="cn.bunny.services.domain.system.system.entity.UserRole">
|
||||||
SELECT * FROM sys_user_role
|
SELECT * FROM sys_user_role WHERE role_id IN
|
||||||
<if test="ids != null and !ids.isEmpty()">
|
<foreach collection="ids" item="id" open="(" close=")" separator=",">
|
||||||
WHERE role_id IN
|
#{id}
|
||||||
<foreach collection="ids" item="id" open="(" close=")" separator=",">
|
</foreach>
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -38,10 +38,6 @@ public class ControllerApiPermissionScanner extends AbstractAnnotationScanner {
|
||||||
return controllerClasses.stream()
|
return controllerClasses.stream()
|
||||||
.map(ControllerApiPermissionScanner::processControllerClass)
|
.map(ControllerApiPermissionScanner::processControllerClass)
|
||||||
.filter(Objects::nonNull)
|
.filter(Objects::nonNull)
|
||||||
.peek(scannerControllerInfoVo -> {
|
|
||||||
String path = scannerControllerInfoVo.getPath();
|
|
||||||
scannerControllerInfoVo.setPath(path + "/**");
|
|
||||||
})
|
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue