modify
parent
ad69fed88d
commit
2dcc0e6e55
|
@ -19,6 +19,7 @@ target/
|
|||
.settings
|
||||
.springBeans
|
||||
|
||||
/.idea
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
|
@ -43,4 +44,4 @@ nbdist/
|
|||
|
||||
!*/build/*.java
|
||||
!*/build/*.html
|
||||
!*/build/*.xml
|
||||
!*/build/*.xml
|
||||
|
|
|
@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
|
|||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.dragon.common.core.web.domain.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
@ -81,6 +82,7 @@ public class SysDept extends BaseEntity {
|
|||
* 父部门名称
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
|
||||
private String parentName;
|
||||
|
||||
/**
|
||||
|
|
|
@ -127,6 +127,8 @@ public class SysUser extends BaseEntity {
|
|||
*/
|
||||
private Long roleId;
|
||||
|
||||
|
||||
|
||||
public SysUser() {
|
||||
|
||||
}
|
||||
|
|
|
@ -53,6 +53,7 @@ public class LoginUser implements Serializable {
|
|||
*/
|
||||
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 org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
@ -36,6 +37,7 @@ public class SysConfigController extends BaseController {
|
|||
@RequiresPermissions("system:config:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<SysConfig>> list(SysConfig config) {
|
||||
|
||||
startPage();
|
||||
List<SysConfig> list = configService.selectConfigList(config);
|
||||
return getDataTable(list);
|
||||
|
|
|
@ -59,9 +59,15 @@ public class SysConfigPlusServiceImpl extends ServiceImpl<SysConfigPlusMapper, S
|
|||
} if (Objects.nonNull(endTime) && endTime instanceof Date endDate){
|
||||
sysConfigLambdaQueryWrapper.lt(SysConfig::getCreateTime,endDate);
|
||||
}
|
||||
|
||||
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
|
||||
public List<SysDept> querList(SysDept dept) {
|
||||
|
||||
LambdaQueryWrapper<SysDept> sysDeptLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
if (StringUtils.isNotEmpty(dept.getDeptName())){
|
||||
sysDeptLambdaQueryWrapper.like(SysDept::getDeptName,dept.getDeptName());
|
||||
|
|
|
@ -16,6 +16,14 @@
|
|||
<result property="updateTime" column="update_time"/>
|
||||
</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">
|
||||
select config_id,
|
||||
config_name,
|
||||
|
|
Loading…
Reference in New Issue