update 去除链式调用注解 不符合规范导致很多奇葩问题 例如: copy为空问题
| | |
| | | @PutMapping("/changePreviewListResource") |
| | | public AjaxResult<Void> changePreviewListResource(@RequestBody String body) { |
| | | Map<String, Boolean> map = JsonUtils.parseMap(body); |
| | | SysConfig config = iSysConfigService.getOne(new SysConfig().setConfigKey(OssConstant.PEREVIEW_LIST_RESOURCE_KEY)); |
| | | SysConfig sysConfig = new SysConfig(); |
| | | sysConfig.setConfigKey(OssConstant.PEREVIEW_LIST_RESOURCE_KEY); |
| | | SysConfig config = iSysConfigService.getOne(sysConfig); |
| | | config.setConfigValue(map.get("previewListResource").toString()); |
| | | return toAjax(iSysConfigService.updateConfig(config)); |
| | | } |
| | |
| | | |
| | | import lombok.Data; |
| | | import lombok.Getter; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @Component |
| | | @ConfigurationProperties(prefix = "ruoyi") |
| | | public class RuoYiConfig { |
| | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 操作消息提醒 |
| | |
| | | @Data |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @Accessors(chain = true) |
| | | @ApiModel("请求响应对象") |
| | | public class AjaxResult<T> { |
| | | |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | public class BaseEntity implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | import com.ruoyi.common.utils.sql.SqlUtil; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | public class PageQuery implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | |
| | | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | public class TreeEntity extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | package com.ruoyi.common.core.domain.dto; |
| | | |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @NoArgsConstructor |
| | | @Accessors(chain = true) |
| | | public class OperLogDTO implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | package com.ruoyi.common.core.domain.dto; |
| | | |
| | | import lombok.Builder; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @NoArgsConstructor |
| | | @Accessors(chain = true) |
| | | @Builder |
| | | public class UserOnlineDTO implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import javax.validation.constraints.Email; |
| | | import javax.validation.constraints.NotBlank; |
| | |
| | | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("sys_dept") |
| | | @ApiModel("部门业务对象") |
| | | public class SysDept extends TreeEntity { |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | |
| | | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("sys_dict_data") |
| | | @ExcelIgnoreUnannotated |
| | | @ApiModel("字典数据业务对象") |
| | |
| | | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("sys_dict_type") |
| | | @ExcelIgnoreUnannotated |
| | | @ApiModel("字典类型业务对象") |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | |
| | | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("sys_menu") |
| | | @ApiModel("菜单权限业务对象") |
| | | public class SysMenu extends TreeEntity { |
| | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | |
| | | @Data |
| | | @NoArgsConstructor |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("sys_role") |
| | | @ExcelIgnoreUnannotated |
| | | public class SysRole extends BaseEntity { |
| | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import javax.validation.constraints.Email; |
| | | import javax.validation.constraints.NotBlank; |
| | |
| | | @Data |
| | | @NoArgsConstructor |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("sys_user") |
| | | @ApiModel("用户信息业务对象") |
| | | public class SysUser extends BaseEntity { |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel("用户登录对象") |
| | | public class LoginBody { |
| | | |
| | |
| | | import com.ruoyi.common.helper.LoginHelper; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Set; |
| | |
| | | |
| | | @Data |
| | | @NoArgsConstructor |
| | | @Accessors(chain = true) |
| | | public class LoginUser implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 用户注册对象 |
| | |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @ApiModel("用户注册对象") |
| | | public class RegisterBody extends LoginBody { |
| | | |
| | |
| | | |
| | | @Data |
| | | @NoArgsConstructor |
| | | @Accessors(chain = true) |
| | | @ApiModel("分页响应对象") |
| | | public class TableDataInfo<T> implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | public AjaxResult<Void> add() { |
| | | List<TestDemo> list = new ArrayList<>(); |
| | | for (int i = 0; i < 1000; i++) { |
| | | list.add(new TestDemo().setOrderNum(-1L).setTestKey("批量新增").setValue("测试新增")); |
| | | TestDemo testDemo = new TestDemo(); |
| | | testDemo.setOrderNum(-1L); |
| | | testDemo.setTestKey("批量新增"); |
| | | testDemo.setValue("测试新增"); |
| | | list.add(testDemo); |
| | | } |
| | | return toAjax(testDemoMapper.insertBatch(list) ? 1 : 0); |
| | | } |
| | |
| | | public AjaxResult<Void> addOrUpdate() { |
| | | List<TestDemo> list = new ArrayList<>(); |
| | | for (int i = 0; i < 1000; i++) { |
| | | list.add(new TestDemo().setOrderNum(-1L).setTestKey("批量新增").setValue("测试新增")); |
| | | } |
| | | TestDemo testDemo = new TestDemo(); |
| | | testDemo.setOrderNum(-1L); |
| | | testDemo.setTestKey("批量新增"); |
| | | testDemo.setValue("测试新增"); |
| | | list.add(testDemo); } |
| | | testDemoMapper.insertBatch(list); |
| | | for (int i = 0; i < list.size(); i++) { |
| | | TestDemo testDemo = list.get(i); |
| | | testDemo.setTestKey("批量新增或修改").setValue("批量新增或修改"); |
| | | testDemo.setTestKey("批量新增或修改"); |
| | | testDemo.setValue("批量新增或修改"); |
| | | if (i % 2 == 0) { |
| | | testDemo.setId(null); |
| | | } |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | @ApiOperation("查询测试单表列表") |
| | | @GetMapping("/test") |
| | | public AjaxResult<TestSensitive> test() { |
| | | TestSensitive testSensitive = new TestSensitive() |
| | | .setIdCard("210397198608215431") |
| | | .setPhone("17640125371") |
| | | .setAddress("北京市朝阳区某某四合院1203室") |
| | | .setEmail("17640125371@163.com") |
| | | .setBankCard("6226456952351452853"); |
| | | TestSensitive testSensitive = new TestSensitive(); |
| | | testSensitive.setIdCard("210397198608215431"); |
| | | testSensitive.setPhone("17640125371"); |
| | | testSensitive.setAddress("北京市朝阳区某某四合院1203室"); |
| | | testSensitive.setEmail("17640125371@163.com"); |
| | | testSensitive.setBankCard("6226456952351452853"); |
| | | return AjaxResult.success(testSensitive); |
| | | } |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | static class TestSensitive { |
| | | |
| | | /** |
| | |
| | | |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 实体类 注意不允许使用内部类 否则会找不到类 |
| | |
| | | * @version 3.6.0 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @NoArgsConstructor |
| | | public class PriorityDemo { |
| | | private String name; |
| | |
| | | } |
| | | for (int i = 0; i < 10; i++) { |
| | | int randomNum = RandomUtil.randomInt(10); |
| | | PriorityDemo data = new PriorityDemo().setName("data-" + i).setOrderNum(randomNum); |
| | | PriorityDemo data = new PriorityDemo(); |
| | | data.setName("data-" + i); |
| | | data.setOrderNum(randomNum); |
| | | if (QueueUtils.addPriorityQueueObject(queueName, data)) { |
| | | log.info("通道: {} , 发送数据: {}", queueName, data); |
| | | } else { |
| | |
| | | public AjaxResult<Void> remove(@ApiParam("队列名") String queueName, |
| | | @ApiParam("对象名") String name, |
| | | @ApiParam("排序号") Integer orderNum) { |
| | | PriorityDemo data = new PriorityDemo().setName(name).setOrderNum(orderNum); |
| | | PriorityDemo data = new PriorityDemo(); |
| | | data.setName(name); |
| | | data.setOrderNum(orderNum); |
| | | if (QueueUtils.removePriorityQueueObject(queueName, data)) { |
| | | log.info("通道: {} , 删除数据: {}", queueName, data); |
| | | } else { |
| | |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 测试单表对象 test_demo |
| | |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("test_demo") |
| | | public class TestDemo extends BaseEntity { |
| | | |
| | |
| | | import com.ruoyi.common.core.domain.TreeEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 测试树表对象 test_tree |
| | |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("test_tree") |
| | | public class TestTree extends TreeEntity { |
| | | |
| | |
| | | String ip = ServletUtils.getClientIP(); |
| | | SysUser user = SpringUtils.getBean(UserService.class).selectUserById(LoginHelper.getUserId()); |
| | | String tokenValue = StpUtil.getTokenValue(); |
| | | UserOnlineDTO userOnlineDTO = new UserOnlineDTO() |
| | | .setIpaddr(ip) |
| | | .setLoginLocation(AddressUtils.getRealAddressByIP(ip)) |
| | | .setBrowser(userAgent.getBrowser().getName()) |
| | | .setOs(userAgent.getOs().getName()) |
| | | .setLoginTime(System.currentTimeMillis()) |
| | | .setTokenId(tokenValue) |
| | | .setUserName(user.getUserName()); |
| | | UserOnlineDTO dto = UserOnlineDTO.builder() |
| | | .ipaddr(ip) |
| | | .loginLocation(AddressUtils.getRealAddressByIP(ip)) |
| | | .browser(userAgent.getBrowser().getName()) |
| | | .os(userAgent.getOs().getName()) |
| | | .loginTime(System.currentTimeMillis()) |
| | | .tokenId(tokenValue) |
| | | .userName(user.getUserName()) |
| | | .build(); |
| | | if (ObjectUtil.isNotNull(user.getDept())) { |
| | | userOnlineDTO.setDeptName(user.getDept().getDeptName()); |
| | | dto.setDeptName(user.getDept().getDeptName()); |
| | | } |
| | | RedisUtils.setCacheObject(Constants.ONLINE_TOKEN_KEY + tokenValue, userOnlineDTO, tokenConfig.getTimeout(), TimeUnit.SECONDS); |
| | | RedisUtils.setCacheObject(Constants.ONLINE_TOKEN_KEY + tokenValue, dto, tokenConfig.getTimeout(), TimeUnit.SECONDS); |
| | | log.info("user doLogin, useId:{}, token:{}", loginId, tokenValue); |
| | | } else if (userType == UserType.APP_USER) { |
| | | // app端 自行根据业务编写 |
| | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.apache.commons.lang3.ArrayUtils; |
| | | |
| | | import javax.validation.Valid; |
| | |
| | | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("gen_table") |
| | | public class GenTable extends BaseEntity { |
| | | |
| | |
| | | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("gen_table_column") |
| | | public class GenTableColumn extends BaseEntity { |
| | | |
| | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | |
| | | #set($Entity="TreeEntity") |
| | | #end |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("${tableName}") |
| | | public class ${ClassName} extends ${Entity} { |
| | | |
| | |
| | | package com.ruoyi.oss.entity; |
| | | |
| | | import lombok.Builder; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 上传返回体 |
| | |
| | | * @author Lion Li |
| | | */ |
| | | @Data |
| | | @NoArgsConstructor |
| | | @Accessors(chain = true) |
| | | @Builder |
| | | public class UploadResult { |
| | | |
| | | /** |
| | |
| | | } catch (Exception e) { |
| | | throw new OssException("上传文件失败,请检查阿里云配置信息:[" + e.getMessage() + "]"); |
| | | } |
| | | return new UploadResult().setUrl(getEndpointLink() + "/" + path).setFilename(path); |
| | | } |
| | | return UploadResult.builder().url(getEndpointLink() + "/" + path).filename(path).build(); } |
| | | |
| | | @Override |
| | | public void delete(String path) { |
| | |
| | | } catch (Exception e) { |
| | | throw new OssException("上传文件失败,请核对Minio配置信息:[" + e.getMessage() + "]"); |
| | | } |
| | | return new UploadResult().setUrl(getEndpointLink() + "/" + path).setFilename(path); |
| | | return UploadResult.builder().url(getEndpointLink() + "/" + path).filename(path).build(); |
| | | } |
| | | |
| | | @Override |
| | |
| | | import com.ruoyi.oss.entity.UploadResult; |
| | | import com.ruoyi.oss.enumd.OssEnumd; |
| | | import com.ruoyi.oss.exception.OssException; |
| | | import com.ruoyi.oss.factory.OssFactory; |
| | | import com.ruoyi.oss.properties.OssProperties; |
| | | import com.ruoyi.oss.service.abstractd.AbstractOssStrategy; |
| | | import org.springframework.beans.factory.InitializingBean; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.io.ByteArrayInputStream; |
| | |
| | | } catch (Exception e) { |
| | | throw new OssException("上传文件失败,请检查腾讯云配置信息:[" + e.getMessage() + "]"); |
| | | } |
| | | return new UploadResult().setUrl(getEndpointLink() + "/" + path).setFilename(path); |
| | | return UploadResult.builder().url(getEndpointLink() + "/" + path).filename(path).build(); |
| | | } |
| | | |
| | | @Override |
| | |
| | | import com.ruoyi.oss.entity.UploadResult; |
| | | import com.ruoyi.oss.enumd.OssEnumd; |
| | | import com.ruoyi.oss.exception.OssException; |
| | | import com.ruoyi.oss.factory.OssFactory; |
| | | import com.ruoyi.oss.properties.OssProperties; |
| | | import com.ruoyi.oss.service.abstractd.AbstractOssStrategy; |
| | | import org.springframework.beans.factory.InitializingBean; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.io.InputStream; |
| | |
| | | } catch (Exception e) { |
| | | throw new OssException("上传文件失败,请核对七牛配置信息:[" + e.getMessage() + "]"); |
| | | } |
| | | return new UploadResult().setUrl(getEndpointLink() + "/" + path).setFilename(path); |
| | | return UploadResult.builder().url(getEndpointLink() + "/" + path).filename(path).build(); |
| | | } |
| | | |
| | | @Override |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | |
| | | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("sys_config") |
| | | @ExcelIgnoreUnannotated |
| | | @ApiModel("参数配置业务对象") |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("sys_logininfor") |
| | | @ExcelIgnoreUnannotated |
| | | @ApiModel("系统访问记录业务对象") |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("sys_notice") |
| | | public class SysNotice extends BaseEntity { |
| | | |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("sys_oper_log") |
| | | @ExcelIgnoreUnannotated |
| | | @ApiModel("操作日志记录业务对象") |
| | |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * OSS对象存储对象 |
| | |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("sys_oss") |
| | | public class SysOss extends BaseEntity { |
| | | |
| | |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("sys_oss_config") |
| | | public class SysOssConfig extends BaseEntity { |
| | | |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | |
| | | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | @TableName("sys_post") |
| | | @ExcelIgnoreUnannotated |
| | | @ApiModel("岗位信息业务对象") |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 角色和部门关联 sys_role_dept |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("sys_role_dept") |
| | | @ApiModel("角色和部门关联") |
| | | public class SysRoleDept { |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 角色和菜单关联 sys_role_menu |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("sys_role_menu") |
| | | @ApiModel("角色和菜单关联") |
| | | public class SysRoleMenu { |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 当前在线会话 |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel("当前在线会话业务对象") |
| | | public class SysUserOnline { |
| | | |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 用户和岗位关联 sys_user_post |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("sys_user_post") |
| | | @ApiModel("用户和岗位关联") |
| | | public class SysUserPost { |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 用户和角色关联 sys_user_role |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("sys_user_role") |
| | | @ApiModel("用户和角色关联") |
| | | public class SysUserRole { |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 路由显示信息 |
| | |
| | | */ |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel("路由显示信息") |
| | | public class MetaVo { |
| | | |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @author Lion Li |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @JsonInclude(JsonInclude.Include.NON_EMPTY) |
| | | @ApiModel("路由配置信息") |
| | | public class RouterVo { |
| | |
| | | import com.ruoyi.common.convert.ExcelDictConvert; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | |
| | | |
| | | @Data |
| | | @NoArgsConstructor |
| | | @Accessors(chain = true) |
| | | public class SysUserExportVo implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | .between(params.get("beginTime") != null && params.get("endTime") != null, |
| | | SysLogininfor::getLoginTime, params.get("beginTime"), params.get("endTime")); |
| | | if (StringUtils.isBlank(pageQuery.getOrderByColumn())) { |
| | | pageQuery.setOrderByColumn("info_id").setIsAsc("desc"); |
| | | pageQuery.setOrderByColumn("info_id"); |
| | | pageQuery.setIsAsc("desc"); |
| | | } |
| | | Page<SysLogininfor> page = baseMapper.selectPage(pageQuery.build(), lqw); |
| | | return TableDataInfo.build(page); |
| | |
| | | .between(params.get("beginTime") != null && params.get("endTime") != null, |
| | | SysOperLog::getOperTime, params.get("beginTime"), params.get("endTime")); |
| | | if (StringUtils.isBlank(pageQuery.getOrderByColumn())) { |
| | | pageQuery.setOrderByColumn("oper_id").setIsAsc("desc"); |
| | | pageQuery.setOrderByColumn("oper_id"); |
| | | pageQuery.setIsAsc("desc"); |
| | | } |
| | | Page<SysOperLog> page = baseMapper.selectPage(pageQuery.build(), lqw); |
| | | return TableDataInfo.build(page); |
| | |
| | | throw new ServiceException(e.getMessage()); |
| | | } |
| | | // 保存文件信息 |
| | | SysOss oss = new SysOss() |
| | | .setUrl(uploadResult.getUrl()) |
| | | .setFileSuffix(suffix) |
| | | .setFileName(uploadResult.getFilename()) |
| | | .setOriginalName(originalfileName) |
| | | .setService(storage.getServiceType().getValue()); |
| | | SysOss oss = new SysOss(); |
| | | oss.setUrl(uploadResult.getUrl()); |
| | | oss.setFileSuffix(suffix); |
| | | oss.setFileName(uploadResult.getFilename()); |
| | | oss.setOriginalName(originalfileName); |
| | | oss.setService(storage.getServiceType().getValue()); |
| | | baseMapper.insert(oss); |
| | | return oss; |
| | | } |