modify
parent
ad69fed88d
commit
2dcc0e6e55
|
@ -19,6 +19,7 @@ target/
|
||||||
.settings
|
.settings
|
||||||
.springBeans
|
.springBeans
|
||||||
|
|
||||||
|
/.idea
|
||||||
### IntelliJ IDEA ###
|
### IntelliJ IDEA ###
|
||||||
.idea
|
.idea
|
||||||
*.iws
|
*.iws
|
||||||
|
|
|
@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import com.dragon.common.core.web.domain.BaseEntity;
|
import com.dragon.common.core.web.domain.BaseEntity;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
@ -81,6 +82,7 @@ public class SysDept extends BaseEntity {
|
||||||
* 父部门名称
|
* 父部门名称
|
||||||
*/
|
*/
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
|
|
||||||
private String parentName;
|
private String parentName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -127,6 +127,8 @@ public class SysUser extends BaseEntity {
|
||||||
*/
|
*/
|
||||||
private Long roleId;
|
private Long roleId;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public SysUser() {
|
public SysUser() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,6 +53,7 @@ public class LoginUser implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Set<String> roles;
|
private Set<String> roles;
|
||||||
|
|
||||||
|
private String name;
|
||||||
/**
|
/**
|
||||||
* 用户信息
|
* 用户信息
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -13,6 +13,7 @@ import com.dragon.system.common.domain.SysConfig;
|
||||||
import com.dragon.system.server.service.ISysConfigService;
|
import com.dragon.system.server.service.ISysConfigService;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
@ -36,6 +37,7 @@ public class SysConfigController extends BaseController {
|
||||||
@RequiresPermissions("system:config:list")
|
@RequiresPermissions("system:config:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public Result<TableDataInfo<SysConfig>> list(SysConfig config) {
|
public Result<TableDataInfo<SysConfig>> list(SysConfig config) {
|
||||||
|
|
||||||
startPage();
|
startPage();
|
||||||
List<SysConfig> list = configService.selectConfigList(config);
|
List<SysConfig> list = configService.selectConfigList(config);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
|
|
|
@ -59,9 +59,15 @@ public class SysConfigPlusServiceImpl extends ServiceImpl<SysConfigPlusMapper, S
|
||||||
} if (Objects.nonNull(endTime) && endTime instanceof Date endDate){
|
} if (Objects.nonNull(endTime) && endTime instanceof Date endDate){
|
||||||
sysConfigLambdaQueryWrapper.lt(SysConfig::getCreateTime,endDate);
|
sysConfigLambdaQueryWrapper.lt(SysConfig::getCreateTime,endDate);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.list(sysConfigLambdaQueryWrapper);
|
return this.list(sysConfigLambdaQueryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
int i = Runtime.getRuntime().availableProcessors() * 2 + 1;
|
||||||
|
System.out.println(i);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据参数键名查询参数值
|
* 根据参数键名查询参数值
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -34,6 +34,7 @@ public class SysDeptPlusServiceImpl extends ServiceImpl<SysDeptPlusMapper, SysDe
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<SysDept> querList(SysDept dept) {
|
public List<SysDept> querList(SysDept dept) {
|
||||||
|
|
||||||
LambdaQueryWrapper<SysDept> sysDeptLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<SysDept> sysDeptLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
if (StringUtils.isNotEmpty(dept.getDeptName())){
|
if (StringUtils.isNotEmpty(dept.getDeptName())){
|
||||||
sysDeptLambdaQueryWrapper.like(SysDept::getDeptName,dept.getDeptName());
|
sysDeptLambdaQueryWrapper.like(SysDept::getDeptName,dept.getDeptName());
|
||||||
|
|
|
@ -16,6 +16,14 @@
|
||||||
<result property="updateTime" column="update_time"/>
|
<result property="updateTime" column="update_time"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
<insert id="hhh" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into tb_user
|
||||||
|
(name,age)
|
||||||
|
values
|
||||||
|
<foreach collection="list" item="aa" index="index" separator="," open="(" close=")">
|
||||||
|
#{aa.name},#{aa.age}
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
<sql id="selectConfigVo">
|
<sql id="selectConfigVo">
|
||||||
select config_id,
|
select config_id,
|
||||||
config_name,
|
config_name,
|
||||||
|
|
Loading…
Reference in New Issue