Compare commits

...

16 Commits

Author SHA1 Message Date
fuhou
bac894f77b 🎨 补充基础curd 2025-04-12 14:50:21 +08:00
241416c5fc 🎨 init project 2025-04-11 14:53:39 +08:00
c35c3b5a85 🎨 init project 2025-04-11 11:54:56 +08:00
ac374f2c87 🎨 init project 2025-04-10 17:06:05 +08:00
f064412e1c 🎨 init project 2025-04-10 16:58:04 +08:00
8c7175667f 🎨 init project 2025-04-10 16:43:32 +08:00
7b393eca44 🎨 init project 2025-04-10 16:36:31 +08:00
9f4ef9f469 🎨 init project 2025-04-10 16:09:51 +08:00
fuhou
03fd61c3cb 🎨 init project 2025-04-04 22:23:36 +08:00
03d5ea9667 🎨 init project 2025-04-03 17:33:06 +08:00
110eb1904f 🎨 init project 2025-04-03 16:01:37 +08:00
1abb3fe7e4 🎨 init project 2025-04-03 15:59:16 +08:00
545efede36 🎨 init project 2025-03-31 17:25:00 +08:00
10cb377c96 🎨 init project 2025-03-31 13:49:45 +08:00
a9d4f4c12c 🎨 init project 2025-03-31 13:47:01 +08:00
fuhou
f2f69637c6 🎨 init project 2025-03-26 22:26:43 +08:00
82 changed files with 6587 additions and 900 deletions

30
pom.xml
View File

@ -21,6 +21,18 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
</dependency>
<!--elasticsearch-->
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
@ -38,6 +50,24 @@
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
</dependency>
<!-- JWT (使用 jjwt) -->
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
<version>0.11.5</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<version>0.11.5</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId>
<version>0.11.5</version>
<scope>runtime</scope>
</dependency>
<!--mysql-->
<dependency>
<groupId>com.mysql</groupId>

View File

@ -3,5 +3,5 @@ package com.cecilia.api.mapper.base;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cecilia.pojo.entity.tables.pojos.BaseDic;
public interface DicMapper extends BaseMapper<BaseDic> {
public interface BaseDicMapper extends BaseMapper<BaseDic> {
}

View File

@ -3,5 +3,5 @@ package com.cecilia.api.mapper.base;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cecilia.pojo.entity.tables.pojos.BaseDicType;
public interface DicTypeMapper extends BaseMapper<BaseDicType> {
public interface BaseDicTypeMapper extends BaseMapper<BaseDicType> {
}

View File

@ -0,0 +1,7 @@
package com.cecilia.api.mapper.base;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cecilia.pojo.entity.tables.pojos.BaseOrganizations;
public interface BaseOrgMapper extends BaseMapper<BaseOrganizations> {
}

View File

@ -0,0 +1,7 @@
package com.cecilia.api.mapper.base;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cecilia.pojo.entity.tables.pojos.BaseSysConfig;
public interface BaseSysConfigMapper extends BaseMapper<BaseSysConfig> {
}

View File

@ -0,0 +1,7 @@
package com.cecilia.api.mapper.base;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cecilia.pojo.entity.tables.pojos.BaseUser;
public interface BaseUserMapper extends BaseMapper<BaseUser> {
}

View File

@ -0,0 +1,7 @@
package com.cecilia.api.mapper.base;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs;
public interface BaseUserOrgsMapper extends BaseMapper<BaseUserOrgs> {
}

View File

@ -0,0 +1,27 @@
package com.cecilia.api.service.base;
import com.cecilia.common.util.response.RestResponse;
import com.cecilia.pojo.cmd.base.*;
import com.cecilia.pojo.entity.tables.pojos.BaseDic;
import com.cecilia.pojo.entity.tables.pojos.BaseDicType;
public interface BaseDicService {
RestResponse selectDicTypeList(SelectDicTypeCommand cmd);
BaseDicType selectDicTypeById(Long id);
BaseDicType selectDicTypeByTypeCode(String typeCode);
RestResponse createDicType(CreateDicTypeCommand cmd);
RestResponse updateDicType(UpdateDicTypeCommand cmd);
RestResponse selectDicList(SelectDicCommand cmd);
BaseDic selectDicById(Long id);
RestResponse createDic(CreateDicCommand cmd);
RestResponse updateDic(UpdateDicCommand cmd);
}

View File

@ -0,0 +1,15 @@
package com.cecilia.api.service.base;
import com.cecilia.common.util.response.RestResponse;
import com.cecilia.pojo.cmd.base.CreateOrgCommand;
import com.cecilia.pojo.cmd.base.SelectOrgCommand;
import com.cecilia.pojo.cmd.base.UpdateOrgCommand;
import com.cecilia.pojo.entity.tables.pojos.BaseOrganizations;
public interface BaseOrgService {
RestResponse selectOrgList(SelectOrgCommand cmd);
BaseOrganizations selectOrgById(Long id);
RestResponse createOrg(CreateOrgCommand cmd);
RestResponse updateOrgById(UpdateOrgCommand cmd);
}

View File

@ -0,0 +1,9 @@
package com.cecilia.api.service.base;
import com.cecilia.common.util.response.RestResponse;
import com.cecilia.pojo.cmd.base.CreateUserCommand;
public interface BaseService {
RestResponse createUser(CreateUserCommand cmd);
}

View File

@ -0,0 +1,8 @@
package com.cecilia.api.service.base;
import com.cecilia.pojo.entity.tables.pojos.BaseSysConfig;
public interface BaseSysConfigService {
BaseSysConfig selectConfigByKey(String key);
}

View File

@ -0,0 +1,4 @@
package com.cecilia.api.service.base;
public interface BaseUserOrgsService {
}

View File

@ -0,0 +1,24 @@
package com.cecilia.api.service.base;
import com.cecilia.common.util.response.RestResponse;
import com.cecilia.pojo.cmd.base.CreateUserCommand;
import com.cecilia.pojo.cmd.base.UpdateUserCommand;
import com.cecilia.pojo.entity.tables.pojos.BaseUser;
public interface BaseUserService {
BaseUser findUserByIdentifierAccount(String identifierAccount);
BaseUser findUserById(Long id);
/**
* 创建账号
*/
RestResponse createUser(CreateUserCommand cmd);
/**
* 更新账号
* 账号状态账号密码账号token
*/
RestResponse updateUserById(UpdateUserCommand cmd);
}

View File

@ -1,4 +0,0 @@
package com.cecilia.api.service.demo;
public interface DemoService {
}

View File

@ -1,4 +0,0 @@
package com.cecilia.api.service.test;
public interface TestService {
}

View File

@ -5,10 +5,47 @@ package com.cecilia.common;
*/
public class PublicConst {
public static final String SCOPE_GENERAL = "general";
public static final Integer ERROR_GENERAL_EXCEPTION = 500;
/* 项目名 */
public static final String PROJECT_NAME = "cecilia";
// 索引名称
/* 公用 */
public static final Integer ERROR_GENERAL_EXCEPTION = 500; // 通用异常状态码
public static final Byte DELETE_FLAG_ZERO = 0, // 未删除
DELETE_FLAG_ONE = 1; // 已删除
public static final Byte IS_ENABLE = 1, // 启用
IS_DISABLE = 0; // 禁用
public static final String RESPONSE_CONTENT_ADD_SUCCESS = "添加成功",
RESPONSE_CONTENT_SAVE_SUCCESS = "保存成功",
RESPONSE_CONTENT_CREATE_SUCCESS = "创建成功",
RESPONSE_CONTENT_ADD_FAIL = "添加失败",
RESPONSE_CONTENT_SAVE_FAIL = "保存失败",
RESPONSE_CONTENT_CREATE_FAIL = "创建失败",
RESPONSE_CONTENT_UPDATE_SUCCESS = "更新成功",
RESPONSE_CONTENT_UPDATE_FAIL = "更新失败",
RESPONSE_CONTENT_DELETE_SUCCESS = "删除成功",
RESPONSE_CONTENT_DELETE_FAIL = "删除失败";
/* base */
// 用户账号状态
public static final Byte BASE_USER_STATUS_ZERO = 0,
BASE_USER_STATUS_ONE = 1, // 可登录
BASE_USER_STATUS_TWO = 2,
BASE_USER_STATUS_THREE = 3,
BASE_USER_STATUS_FOUR = 4, // 注销
BASE_USER_STATUS_FIVE = 5;
// 用户账号类型
public static final Byte BASE_USER_IDENTIFIER_TYPE_ZERO = 0,
BASE_USER_IDENTIFIER_TYPE_ONE = 1,
BASE_USER_IDENTIFIER_TYPE_TWO = 2,
BASE_USER_IDENTIFIER_TYPE_THREE = 3,
BASE_USER_IDENTIFIER_TYPE_FOUR = 4,
BASE_USER_IDENTIFIER_TYPE_FIVE = 5;
// 组织类型
public static final String BASE_ORG_GROUP_TYPE_ENTERPRISE = "ENTERPRISE",
BASE_ORG_GROUP_TYPE_DEPARTMENT = "DEPARTMENT",
BASE_ORG_GROUP_TYPE_JOB_POSITION = "JOB_POSITION",
BASE_ORG_GROUP_TYPE_JOB_LEVEL = "LABEL",
BASE_ORG_GROUP_TYPE_MANAGER = "MANAGER";
// 索引类型
public final static String ES_INDEX_TYPE = "doc";
@ -27,10 +64,6 @@ public class PublicConst {
//
public final static short ES_REPLICAS = 0;
// 删除标识位0:未删除 1:已删除
public static final Byte DELETE_FLAG_ZERO = 0,
DELETE_FLAG_ONE = 1;
// 日期格式化
public static final String DATE_FORMAT_YMD_HMS = "yyyy-MM-dd HH:mm:ss",
DATE_FORMAT_YMD = "yyyy-MM-dd";
@ -54,9 +87,4 @@ public class PublicConst {
// 项目名
public static final String PROJECT_NAME = "cecilia";
}

View File

@ -37,14 +37,12 @@ public class ControllerBase {
if (fieldError != null) {
exMessage = fieldError.getDefaultMessage();
}
restResponse = new RestResponse(
PublicConst.SCOPE_GENERAL, PublicConst.ERROR_GENERAL_EXCEPTION, exMessage);
restResponse = new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION, exMessage);
restResponse.setErrorDetails(exMessage);
}else {
log.error(String.format("Exception in processStat request [%s]: %s", WebRequestSequence.current().getRequestSequence(), ex.getMessage() != null ? ex.getMessage() : ""), ex);
String exMessage = ex.toString();
restResponse = new RestResponse(
PublicConst.SCOPE_GENERAL, PublicConst.ERROR_GENERAL_EXCEPTION, exMessage);
restResponse = new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION, exMessage);
restResponse.setErrorDetails(exMessage);
}

View File

@ -0,0 +1,51 @@
package com.cecilia.common.base.security;
import com.cecilia.common.filter.JwtRequestFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.web.SecurityFilterChain;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
import javax.annotation.Resource;
@Configuration
@EnableWebSecurity
public class SecurityConfiguration {
@Resource
private JwtRequestFilter jwtRequestFilter;
@Bean
public PasswordEncoder passwordEncoder() {
return new BCryptPasswordEncoder();
}
@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http, AuthenticationManager authenticationManager) throws Exception {
http.csrf().disable()
.authorizeRequests()
.antMatchers("/login").permitAll() // 登录接口
.antMatchers("/**").permitAll() // 其他公开接口
.anyRequest().authenticated()
.and().sessionManagement()
.sessionCreationPolicy(SessionCreationPolicy.STATELESS)
.and().addFilterBefore(jwtRequestFilter, UsernamePasswordAuthenticationFilter.class);
http.authenticationManager(authenticationManager);
return http.build();
}
@Bean
public AuthenticationManager authenticationManager(AuthenticationConfiguration authenticationConfiguration) throws Exception {
return authenticationConfiguration.getAuthenticationManager();
}
}

View File

@ -0,0 +1,52 @@
package com.cecilia.common.filter;
import com.cecilia.common.util.JwtTokenUtil;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.stereotype.Component;
import org.springframework.web.filter.OncePerRequestFilter;
import javax.annotation.Resource;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@Component
public class JwtRequestFilter extends OncePerRequestFilter {
@Resource
private JwtTokenUtil jwtTokenUtil;
@Resource
private UserDetailsService userDetailsService;
@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
throws ServletException, IOException {
final String authorizationHeader = request.getHeader("Authorization");
String username = null;
String jwt = null;
if (authorizationHeader != null && authorizationHeader.startsWith("Bearer ")) {
jwt = authorizationHeader.substring(7);
username = jwtTokenUtil.getUsernameFromToken(jwt);
}
if (username != null && SecurityContextHolder.getContext().getAuthentication() == null) {
UserDetails userDetails = this.userDetailsService.loadUserByUsername(username);
if (jwtTokenUtil.validateToken(jwt, userDetails.getUsername())) {
UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken(
userDetails, null, userDetails.getAuthorities());
SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);
}
}
chain.doFilter(request, response);
}
}

View File

@ -0,0 +1,70 @@
package com.cecilia.common.util;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import io.jsonwebtoken.security.Keys;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.crypto.SecretKey;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;
@Component
public class JwtTokenUtil {
@Value("${jwt.expiration}")
private long expiration;
public String generateToken(String username) {
Map<String, Object> claims = new HashMap<>();
return doGenerateToken(claims, username);
}
private final SecretKey secretKey = Keys.secretKeyFor(SignatureAlgorithm.HS512);
private String doGenerateToken(Map<String, Object> claims, String subject) {
Instant now = Instant.now();
return Jwts.builder()
.setClaims(claims)
.setSubject(subject)
.setIssuedAt(Date.from(now))
.setExpiration(Date.from(now.plus(expiration, ChronoUnit.SECONDS)))
.signWith(secretKey, SignatureAlgorithm.HS512) // 使用新的signWith方法
.compact();
}
public Boolean validateToken(String token, String username) {
final String extractedUsername = getUsernameFromToken(token);
return (extractedUsername.equals(username) && !isTokenExpired(token));
}
public String getUsernameFromToken(String token) {
return getClaimFromToken(token, Claims::getSubject);
}
public Boolean isTokenExpired(String token) {
final Date expirationDate = getExpirationDateFromToken(token);
return expirationDate.before(new Date());
}
public Date getExpirationDateFromToken(String token) {
return getClaimFromToken(token, Claims::getExpiration);
}
public <T> T getClaimFromToken(String token, Function<Claims, T> claimsResolver) {
final Claims claims = getAllClaimsFromToken(token);
return claimsResolver.apply(claims);
}
private Claims getAllClaimsFromToken(String token) {
return Jwts.parserBuilder() // 使用新的parserBuilder方法
.setSigningKey(secretKey)
.build()
.parseClaimsJws(token)
.getBody();
}
}

View File

@ -4,6 +4,7 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.script.DefaultRedisScript;
import org.springframework.data.redis.serializer.StringRedisSerializer;
import org.springframework.stereotype.Component;
@ -26,10 +27,29 @@ public class RedisCacheUtils {
@Autowired
private RedisTemplateProvider redisTemplateProvider;
@Autowired
private RedisTemplate redisTemplate;
private StringRedisTemplate stringRedisTemplate;
private final StringRedisSerializer stringRedisSerializer = new StringRedisSerializer();
public static final String SETNX_SCRIPT = "return redis.call('setnx',KEYS[1], ARGV[1])";
private RedisTemplate<String,Object> getRedisTemplate(){
return redisTemplateProvider.getTemplate(stringRedisSerializer);
}
/** 获取id */
public Long getNextId(String key) {
RedisTemplate<String, Object> redisTemplate = getRedisTemplate();
Long id = 0L;
if (Boolean.TRUE.equals(redisTemplate.opsForHash().hasKey("seq", key))) {
id = redisTemplate.opsForHash().increment("seq", key, 1L);
// 将Long转为String存入Redis
redisTemplate.opsForHash().put("seq", key, String.valueOf(id));
} else {
// 初始值0也转为String类型
redisTemplate.opsForHash().put("seq", key, String.valueOf(1L));
}
return id;
}
public void setValue(String key, Object value){
RedisTemplate redisTemplate = getRedisTemplate();
redisTemplate.opsForValue().set(key,value);
@ -78,11 +98,6 @@ public class RedisCacheUtils {
return getRedisTemplate().opsForHash().get(key, hashKey);
}
private RedisTemplate getRedisTemplate(){
RedisTemplate<String, Object> template = redisTemplateProvider.getTemplate(stringRedisSerializer);
return template;
}
public void hashPut(String key,String hashKey, String value){
getRedisTemplate().opsForHash().put(key,hashKey,value);
}
@ -100,7 +115,7 @@ public class RedisCacheUtils {
* 指定缓存失效时间
*/
public void expire(String key, long time) {
redisTemplate.expire(key, time, TimeUnit.MILLISECONDS);
getRedisTemplate().expire(key, time, TimeUnit.MILLISECONDS);
}
/**
* 根据key 获取过期时间
@ -109,7 +124,7 @@ public class RedisCacheUtils {
* @return 时间(毫秒) 返回0代表为永久有效
*/
public long getExpire(String key) {
return redisTemplate.getExpire(key, TimeUnit.MILLISECONDS);
return getRedisTemplate().getExpire(key, TimeUnit.MILLISECONDS);
}
public Boolean lock(String key){
@ -125,7 +140,7 @@ public class RedisCacheUtils {
//自定义脚本
DefaultRedisScript<List> script = new DefaultRedisScript<>(SETNX_SCRIPT, List.class);
//执行脚本,传入参数,由于value没啥用,这里随便写死的"1"
List<Long> rst = (List<Long>) redisTemplate.execute(script, Collections.singletonList(key), "1");
List<Long> rst = (List<Long>) getRedisTemplate().execute(script, Collections.singletonList(key), "1");
//返回1,表示设置成功,拿到锁
if(rst.get(0) == 1){
log.info(key+"成功拿到锁");
@ -174,4 +189,19 @@ public class RedisCacheUtils {
public Object getAndSet(String key, Object value){
return getRedisTemplate().opsForValue().getAndSet(key,value);
}
/**
* Redis实现分布式锁,用于防止请求重复提交
*
* @param key 锁的键
* @return 如果获取锁成功返回true否则返回false
*/
public boolean lockStringRedisTemplate(String key,Long time) {
Boolean setIfAbsentResult = stringRedisTemplate.opsForValue().setIfAbsent(key, BigDecimal.ONE.toString());
if (Boolean.TRUE.equals(setIfAbsentResult)) {
stringRedisTemplate.expire(key, time, TimeUnit.MILLISECONDS); // 立即设置过期时间
return true;
}
return false;
}
}

View File

@ -18,6 +18,11 @@ public class RestResponse {
this.code = 200;
}
public RestResponse(int errorCode, String errorDescription) {
this.code = errorCode;
this.errorDescription = errorDescription;
}
public RestResponse(String errorScope, int errorCode, String errorDescription) {
this.errorScope = errorScope;
this.code = errorCode;

View File

@ -0,0 +1,58 @@
package com.cecilia.engine.base;
import com.cecilia.api.service.base.BaseService;
import com.cecilia.common.PublicConst;
import com.cecilia.common.base.ControllerBase;
import com.cecilia.common.util.JwtTokenUtil;
import com.cecilia.common.util.response.RestResponse;
import com.cecilia.pojo.cmd.base.CreateUserCommand;
import com.cecilia.pojo.cmd.base.LoginCommand;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RestController
@RequestMapping("/base")
public class BaseController extends ControllerBase {
@Resource
private BaseService baseService;
@Resource
private AuthenticationManager authenticationManager;
@Resource
private JwtTokenUtil jwtTokenUtil;
@Resource
private UserDetailsService userDetailsService;
@PostMapping("/login")
public RestResponse createAuthenticationToken(@RequestBody LoginCommand cmd) {
try {
authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(cmd.getAccount(), cmd.getPwd()));
} catch (BadCredentialsException e) {
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"用户名或密码无效");
}
final UserDetails userDetails = userDetailsService
.loadUserByUsername(cmd.getAccount());
final String token = jwtTokenUtil.generateToken(userDetails.getUsername());
return new RestResponse(token);
}
@PostMapping("/createUser")
public RestResponse createUser(@RequestBody CreateUserCommand cmd) {
return baseService.createUser(cmd);
}
}

View File

@ -0,0 +1,225 @@
package com.cecilia.engine.base;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cecilia.api.mapper.base.BaseDicMapper;
import com.cecilia.api.mapper.base.BaseDicTypeMapper;
import com.cecilia.api.service.base.BaseDicService;
import com.cecilia.common.PublicConst;
import com.cecilia.common.util.redis.RedisCacheUtils;
import com.cecilia.common.util.response.RestResponse;
import com.cecilia.pojo.cmd.base.*;
import com.cecilia.pojo.entity.Tables;
import com.cecilia.pojo.entity.tables.pojos.BaseDic;
import com.cecilia.pojo.entity.tables.pojos.BaseDicType;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;
@Service
public class BaseDicServiceImpl implements BaseDicService {
@Resource
private BaseDicTypeMapper baseDicTypeMapper;
@Resource
private BaseDicMapper baseDicMapper;
@Resource
private RedisCacheUtils redisCacheUtils;
@Override
public RestResponse selectDicTypeList(SelectDicTypeCommand cmd) {
LambdaQueryWrapper<BaseDicType> lambdaQueryWrapper = new LambdaQueryWrapper<BaseDicType>()
.eq(BaseDicType::getDeleteFlag, PublicConst.DELETE_FLAG_ZERO);
if (StringUtils.isNotBlank(cmd.getTypeCode())) {
lambdaQueryWrapper.like(BaseDicType::getTypeCode, "%"+cmd.getTypeCode()+"%");
}
if (StringUtils.isNotBlank(cmd.getTypeName())) {
lambdaQueryWrapper.like(BaseDicType::getTypeName, "%"+cmd.getTypeName()+"%");
}
return new RestResponse(baseDicTypeMapper.selectList(lambdaQueryWrapper));
}
@Override
public BaseDicType selectDicTypeById(Long id) {
if (id == null) {
throw new RuntimeException("字典类型id不能为空");
}
return baseDicTypeMapper.selectById(id);
}
@Override
public BaseDicType selectDicTypeByTypeCode(String typeCode) {
if (StringUtils.isBlank(typeCode)) {
throw new RuntimeException("字典类型编码不能为空");
}
return baseDicTypeMapper.selectOne(new LambdaQueryWrapper<BaseDicType>()
.eq(BaseDicType::getTypeCode, typeCode)
.eq(BaseDicType::getDeleteFlag, PublicConst.DELETE_FLAG_ZERO));
}
@Override
public RestResponse createDicType(CreateDicTypeCommand cmd) {
if (StringUtils.isNotBlank(cmd.getTypeCode())) {
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION, "字典类型编码不能为空");
}
if (StringUtils.isNotBlank(cmd.getTypeName())) {
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION, "字典类型名称不能为空");
}
BaseDicType baseDicType = new BaseDicType();
baseDicType.setId(redisCacheUtils.getNextId(Tables.BASE_DIC_TYPE.getName()));
baseDicType.setTypeCode(cmd.getTypeCode());
baseDicType.setTypeName(cmd.getTypeName());
if (cmd.getOrder() != null) {
baseDicType.setOrder(cmd.getOrder());
}
baseDicType.setCreateTime(LocalDateTime.now());
baseDicType.setUpdateTime(LocalDateTime.now());
baseDicType.setDeleteFlag(PublicConst.DELETE_FLAG_ZERO);
baseDicType.setNamespaceId(0L);
baseDicTypeMapper.insert(baseDicType);
return new RestResponse(PublicConst.RESPONSE_CONTENT_ADD_SUCCESS);
}
@Override
public RestResponse updateDicType(UpdateDicTypeCommand cmd) {
BaseDicType baseDicType = selectDicTypeById(cmd.getId());
if (StringUtils.isNotBlank(cmd.getTypeCode())){
BaseDicType baseDicTypeByTypeCode = selectDicTypeByTypeCode(cmd.getTypeCode());
if (baseDicTypeByTypeCode != null){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"字典类型编码已存在");
}
baseDicType.setTypeCode(cmd.getTypeCode());
}
if (StringUtils.isNotBlank(cmd.getTypeName())){
baseDicType.setTypeName(cmd.getTypeName());
}
if (cmd.getOrder() != null){
baseDicType.setOrder(cmd.getOrder());
}
baseDicType.setUpdateTime(LocalDateTime.now());
baseDicTypeMapper.updateById(baseDicType);
return new RestResponse(PublicConst.RESPONSE_CONTENT_UPDATE_SUCCESS);
}
@Override
public RestResponse selectDicList(SelectDicCommand cmd) {
LambdaQueryWrapper<BaseDic> lambdaQueryWrapper = new LambdaQueryWrapper<BaseDic>()
.eq(BaseDic::getDeleteFlag, PublicConst.DELETE_FLAG_ZERO);
if (StringUtils.isNotBlank(cmd.getTypeCode())) {
lambdaQueryWrapper.eq(BaseDic::getTypeCode, cmd.getTypeCode());
}
if (cmd.getCode() != null) {
lambdaQueryWrapper.eq(BaseDic::getCode, cmd.getCode());
}
if (StringUtils.isNotBlank(cmd.getName())) {
lambdaQueryWrapper.like(BaseDic::getName, "%"+cmd.getName()+"%");
}
if (StringUtils.isNotBlank(cmd.getBusinessValue())) {
lambdaQueryWrapper.like(BaseDic::getBusinessValue, "%"+cmd.getBusinessValue()+"%");
}
return new RestResponse(baseDicMapper.selectList(lambdaQueryWrapper));
}
@Override
public BaseDic selectDicById(Long id) {
if (id == null){
throw new RuntimeException("字典id不能为空");
}
return baseDicMapper.selectById(id);
}
@Override
public RestResponse createDic(CreateDicCommand cmd) {
if (StringUtils.isNotBlank(cmd.getTypeCode()) && StringUtils.isNotBlank(cmd.getCode())){
BaseDic baseDicByTypeCodeAndCode = selectDicByTypeCodeAndCode(cmd.getTypeCode(), cmd.getCode());
if (baseDicByTypeCodeAndCode != null){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION, "该类型下字典编码已存在");
}
BaseDic baseDic = new BaseDic();
baseDic.setId(redisCacheUtils.getNextId(Tables.BASE_DIC.getName()));
baseDic.setTypeCode(cmd.getTypeCode());
baseDic.setCode(cmd.getCode());
baseDic.setName(cmd.getName());
baseDic.setParentCode(cmd.getParentCode());
baseDic.setTreeCode(cmd.getTreeCode());
baseDic.setOrder(cmd.getOrder());
baseDic.setLevel(cmd.getLevel());
baseDic.setBusinessValue(cmd.getBusinessValue());
baseDic.setCreateTime(LocalDateTime.now());
baseDic.setUpdateTime(LocalDateTime.now());
baseDic.setNamespaceId(0L);
baseDic.setDeleteFlag(PublicConst.DELETE_FLAG_ZERO);
baseDic.setIsEnable(PublicConst.IS_ENABLE);
baseDicMapper.insert(baseDic);
return new RestResponse(PublicConst.RESPONSE_CONTENT_ADD_SUCCESS);
}else{
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION, "字典类型编码和字典编码不能为空");
}
}
@Override
public RestResponse updateDic(UpdateDicCommand cmd) {
BaseDic baseDic = selectDicById(cmd.getId());
if (baseDic == null){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION, "字典不存在");
}
// 更换类型和编码
if (StringUtils.isNotBlank(cmd.getTypeCode()) && StringUtils.isNotBlank(cmd.getCode())){
BaseDic baseDicByTypeCodeAndCode = selectDicByTypeCodeAndCode(baseDic.getTypeCode(), cmd.getCode());
if (baseDicByTypeCodeAndCode != null){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION, "该类型下字典编码已存在");
}
baseDic.setTypeCode(cmd.getTypeCode());
baseDic.setCode(cmd.getCode());
}
// 更换类型
if (StringUtils.isNotBlank(cmd.getTypeCode()) && StringUtils.isBlank(cmd.getCode())){
BaseDic baseDicByTypeCodeAndCode = selectDicByTypeCodeAndCode(cmd.getTypeCode(), baseDic.getCode());
if (baseDicByTypeCodeAndCode != null){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION, "该类型下字典编码已存在");
}
baseDic.setTypeCode(cmd.getTypeCode());
}
// 更换编码
if (StringUtils.isBlank(cmd.getTypeCode()) && StringUtils.isNotBlank(cmd.getCode())){
BaseDic baseDicByTypeCodeAndCode = selectDicByTypeCodeAndCode(baseDic.getTypeCode(), cmd.getCode());
if (baseDicByTypeCodeAndCode != null){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION, "该类型下字典编码已存在");
}
baseDic.setCode(cmd.getCode());
}
if (StringUtils.isNotBlank(cmd.getName())){
baseDic.setName(cmd.getName());
}
if (cmd.getParentCode() != null){
baseDic.setParentCode(cmd.getParentCode());
}
if (StringUtils.isNotBlank(cmd.getTreeCode())){
baseDic.setTreeCode(cmd.getTreeCode());
}
if (cmd.getOrder() != null){
baseDic.setOrder(cmd.getOrder());
}
if (StringUtils.isNotBlank(cmd.getBusinessValue())){
baseDic.setBusinessValue(cmd.getBusinessValue());
}
if (cmd.getLevel() != null){
baseDic.setLevel(cmd.getLevel());
}
if (cmd.getIsEnable() != null){
baseDic.setIsEnable(cmd.getIsEnable());
}
baseDic.setUpdateTime(LocalDateTime.now());
baseDicMapper.updateById(baseDic);
return new RestResponse(PublicConst.RESPONSE_CONTENT_UPDATE_SUCCESS);
}
private BaseDic selectDicByTypeCodeAndCode(String typeCode, String code){
return baseDicMapper.selectOne(new LambdaQueryWrapper<BaseDic>()
.eq(BaseDic::getTypeCode, typeCode)
.eq(BaseDic::getCode, code)
.eq(BaseDic::getDeleteFlag, PublicConst.DELETE_FLAG_ZERO));
}
}

View File

@ -0,0 +1,149 @@
package com.cecilia.engine.base;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cecilia.api.mapper.base.BaseOrgMapper;
import com.cecilia.api.service.base.BaseOrgService;
import com.cecilia.common.PublicConst;
import com.cecilia.common.util.redis.RedisCacheUtils;
import com.cecilia.common.util.response.RestResponse;
import com.cecilia.pojo.cmd.base.CreateOrgCommand;
import com.cecilia.pojo.cmd.base.SelectOrgCommand;
import com.cecilia.pojo.cmd.base.UpdateOrgCommand;
import com.cecilia.pojo.entity.Tables;
import com.cecilia.pojo.entity.tables.pojos.BaseOrganizations;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;
@Service
public class BaseOrgServiceImpl implements BaseOrgService {
@Resource
private BaseOrgMapper baseOrgMapper;
@Resource
private RedisCacheUtils redisCacheUtils;
@Override
public RestResponse selectOrgList(SelectOrgCommand cmd) {
LambdaQueryWrapper<BaseOrganizations> lambdaQueryWrapper = new LambdaQueryWrapper<BaseOrganizations>()
.eq(BaseOrganizations::getStatus, PublicConst.IS_ENABLE);
if (StringUtils.isNotBlank(cmd.getOrgName())) {
lambdaQueryWrapper.like(BaseOrganizations::getOrgName, "%"+cmd.getOrgName()+"%");
}
if (StringUtils.isNotBlank(cmd.getOrgNo())) {
lambdaQueryWrapper.eq(BaseOrganizations::getOrgNo, cmd.getOrgNo());
}
return new RestResponse(baseOrgMapper.selectList(lambdaQueryWrapper));
}
@Override
public BaseOrganizations selectOrgById(Long id) {
if (id == null){
throw new RuntimeException("id不能为空");
}
return baseOrgMapper.selectById(id);
}
public BaseOrganizations selectOrgByOrgNoAndGroupType(String orgNo, String groupType) {
if (StringUtils.isBlank(orgNo)){
throw new RuntimeException("编码不能为空");
}
if (StringUtils.isBlank(groupType)){
throw new RuntimeException("类型不能为空");
}
return baseOrgMapper.selectOne(new LambdaQueryWrapper<BaseOrganizations>()
.eq(BaseOrganizations::getOrgNo, orgNo)
.eq(BaseOrganizations::getGroupType, groupType)
.eq(BaseOrganizations::getStatus, PublicConst.IS_ENABLE));
}
@Override
public RestResponse createOrg(CreateOrgCommand cmd) {
if (StringUtils.isBlank(cmd.getOrgNo())) {
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"编码不能为空");
}
if (StringUtils.isBlank(cmd.getOrgName())){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"名称不能为空");
}
if (StringUtils.isBlank(cmd.getGroupType())) {
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"类型不能为空");
}
BaseOrganizations baseOrganizationsByOrgNo = selectOrgByOrgNoAndGroupType(cmd.getOrgNo(), cmd.getGroupType());
if (baseOrganizationsByOrgNo != null){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"编码已存在");
}
BaseOrganizations baseOrganizations = new BaseOrganizations();
baseOrganizations.setId(redisCacheUtils.getNextId(Tables.BASE_ORGANIZATIONS.getName()));
baseOrganizations.setOrgName(cmd.getOrgName());
baseOrganizations.setOrgNo(cmd.getOrgNo());
baseOrganizations.setGroupType(cmd.getGroupType());
if (cmd.getPath() != null){
baseOrganizations.setPath(cmd.getPath());
}
if (cmd.getParentId() != null){
baseOrganizations.setParentId(cmd.getParentId());
}
if (cmd.getLevel() != null){
baseOrganizations.setLevel(cmd.getLevel());
}
if (cmd.getOrder() != null){
baseOrganizations.setOrder(cmd.getOrder());
}
baseOrganizations.setCreateTime(LocalDateTime.now());
baseOrganizations.setUpdateTime(LocalDateTime.now());
baseOrganizations.setStatus(PublicConst.IS_ENABLE);
baseOrganizations.setNamespaceId(0L);
baseOrgMapper.insert(baseOrganizations);
return new RestResponse(PublicConst.RESPONSE_CONTENT_ADD_SUCCESS);
}
@Override
public RestResponse updateOrgById(UpdateOrgCommand cmd) {
BaseOrganizations baseOrganizations = selectOrgById(cmd.getId());
if (baseOrganizations == null){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"组织不存在");
}
if (StringUtils.isNotBlank(cmd.getOrgName())){
baseOrganizations.setOrgName(cmd.getOrgName());
}
if (StringUtils.isNotBlank(cmd.getOrgNo()) && StringUtils.isNotBlank(cmd.getGroupType())){
BaseOrganizations baseOrganizationsByOrgNo = selectOrgByOrgNoAndGroupType(cmd.getOrgNo(), cmd.getGroupType());
if (baseOrganizationsByOrgNo != null && !baseOrganizationsByOrgNo.getId().equals(baseOrganizations.getId())){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"编码已存在");
}
baseOrganizations.setOrgNo(cmd.getOrgNo());
baseOrganizations.setGroupType(cmd.getGroupType());
}
if (StringUtils.isBlank(cmd.getOrgNo()) && StringUtils.isNotBlank(cmd.getGroupType())){
BaseOrganizations baseOrganizationsByOrgNo = selectOrgByOrgNoAndGroupType(baseOrganizations.getOrgNo(), cmd.getGroupType());
if (baseOrganizationsByOrgNo != null && !baseOrganizationsByOrgNo.getId().equals(baseOrganizations.getId())){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"编码已存在");
}
baseOrganizations.setGroupType(cmd.getGroupType());
}
if (StringUtils.isNotBlank(cmd.getOrgNo()) && StringUtils.isBlank(cmd.getGroupType())){
BaseOrganizations baseOrganizationsByOrgNo = selectOrgByOrgNoAndGroupType(cmd.getOrgNo(), baseOrganizations.getGroupType());
if (baseOrganizationsByOrgNo != null && !baseOrganizationsByOrgNo.getId().equals(baseOrganizations.getId())){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"编码已存在");
}
baseOrganizations.setOrgNo(cmd.getOrgNo());
}
if (cmd.getPath() != null){
baseOrganizations.setPath(cmd.getPath());
}
if (cmd.getParentId() != null){
baseOrganizations.setParentId(cmd.getParentId());
}
if (cmd.getLevel() != null){
baseOrganizations.setLevel(cmd.getLevel());
}
if (cmd.getOrder() != null){
baseOrganizations.setOrder(cmd.getOrder());
}
baseOrganizations.setUpdateTime(LocalDateTime.now());
baseOrgMapper.updateById(baseOrganizations);
return new RestResponse(PublicConst.RESPONSE_CONTENT_UPDATE_SUCCESS);
}
}

View File

@ -0,0 +1,21 @@
package com.cecilia.engine.base;
import com.cecilia.api.service.base.BaseService;
import com.cecilia.api.service.base.BaseUserService;
import com.cecilia.common.util.response.RestResponse;
import com.cecilia.pojo.cmd.base.CreateUserCommand;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service
public class BaseServiceImpl implements BaseService {
@Resource
private BaseUserService baseUserService;
@Override
public RestResponse createUser(CreateUserCommand cmd) {
return baseUserService.createUser(cmd);
}
}

View File

@ -0,0 +1,30 @@
package com.cecilia.engine.base;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cecilia.api.mapper.base.BaseSysConfigMapper;
import com.cecilia.api.service.base.BaseSysConfigService;
import com.cecilia.pojo.entity.tables.pojos.BaseSysConfig;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service
public class BaseSysConfigServiceImpl implements BaseSysConfigService {
@Resource
private BaseSysConfigMapper baseSysConfigMapper;
@Override
public BaseSysConfig selectConfigByKey(String key) {
if (StringUtils.isBlank(key)){
throw new RuntimeException("key不能为空");
}
BaseSysConfig baseSysConfig = baseSysConfigMapper.selectOne(new LambdaQueryWrapper<BaseSysConfig>()
.eq(BaseSysConfig::getName, key));
if (baseSysConfig == null || StringUtils.isBlank(baseSysConfig.getValue())){
throw new RuntimeException("未配置对应配置项");
}
return baseSysConfig;
}
}

View File

@ -0,0 +1,131 @@
package com.cecilia.engine.base;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cecilia.api.mapper.base.BaseUserMapper;
import com.cecilia.api.service.base.BaseUserService;
import com.cecilia.common.PublicConst;
import com.cecilia.common.util.redis.RedisCacheUtils;
import com.cecilia.common.util.response.RestResponse;
import com.cecilia.pojo.cmd.base.CreateUserCommand;
import com.cecilia.pojo.cmd.base.UpdateUserCommand;
import com.cecilia.pojo.entity.Tables;
import com.cecilia.pojo.entity.tables.pojos.BaseUser;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.springframework.context.annotation.Lazy;
import org.springframework.data.annotation.Id;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.stream.Collectors;
@Service
public class BaseUserServiceImpl implements BaseUserService, UserDetailsService {
@Resource
@Lazy
private PasswordEncoder passwordEncoder;
@Resource
private BaseUserMapper baseUserMapper;
@Resource
private RedisCacheUtils redisCacheUtils;
@Override
public BaseUser findUserByIdentifierAccount(String identifierAccount){
if (StringUtils.isBlank(identifierAccount)){
throw new RuntimeException("identifierAccount不能为空");
}
return baseUserMapper.selectOne(new LambdaQueryWrapper<BaseUser>()
.eq(BaseUser::getIdentifierAccount, identifierAccount)
.eq(BaseUser::getStatus, PublicConst.BASE_USER_STATUS_ONE));
}
@Override
public BaseUser findUserById(Long id) {
if (id == null){
throw new RuntimeException("id不能为空");
}
return baseUserMapper.selectById(id);
}
@Override
public RestResponse createUser(CreateUserCommand cmd) {
if (StringUtils.isBlank(cmd.getIdentifierAccount())) {
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"账号不能为空");
}
if (findUserByIdentifierAccount(cmd.getIdentifierAccount()) != null){
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"账号已存在");
}
BaseUser baseUser = new BaseUser();
baseUser.setId(redisCacheUtils.getNextId(Tables.BASE_USER.getName()));
baseUser.setUserName(cmd.getUserName());
baseUser.setNickName(cmd.getNickName());
baseUser.setPasswordHash(passwordEncoder.encode(cmd.getPwd()));
baseUser.setStatus(PublicConst.BASE_USER_STATUS_ONE);
baseUser.setIdentifierAccount(cmd.getIdentifierAccount());
baseUser.setIdentifierToken(cmd.getIdentifierToken());
baseUser.setCreateTime(LocalDateTime.now());
baseUser.setUpdateTime(LocalDateTime.now());
baseUser.setNamespaceId(0L);
baseUserMapper.insert(baseUser);
return new RestResponse(PublicConst.RESPONSE_CONTENT_CREATE_SUCCESS);
}
@Override
public RestResponse updateUserById(UpdateUserCommand cmd) {
BaseUser baseUser = findUserById(cmd.getId());
if (baseUser != null) {
if (StringUtils.isNotBlank(cmd.getUserName())) {
baseUser.setUserName(cmd.getUserName());
}
if (StringUtils.isNotBlank(cmd.getNickName())) {
baseUser.setNickName(cmd.getNickName());
}
if (StringUtils.isNotBlank(cmd.getPwd())) {
baseUser.setPasswordHash(passwordEncoder.encode(cmd.getPwd()));
}
if (cmd.getStatus() != null) {
baseUser.setStatus(cmd.getStatus());
}
baseUser.setUpdateTime(LocalDateTime.now());
baseUser.setUpdateUid(0L);
baseUserMapper.updateById(baseUser);
return new RestResponse(PublicConst.RESPONSE_CONTENT_UPDATE_SUCCESS);
}else{
return new RestResponse(PublicConst.ERROR_GENERAL_EXCEPTION,"用户不存在");
}
}
@Override
public UserDetails loadUserByUsername(String identifierAccount) throws UsernameNotFoundException {
BaseUser baseUser = findUserByIdentifierAccount(identifierAccount);
return new org.springframework.security.core.userdetails.User(
baseUser.getIdentifierAccount(),
baseUser.getPasswordHash(),
mapRolesToAuthorities(new ArrayList<>()));
}
private Collection<? extends GrantedAuthority> mapRolesToAuthorities(Collection<BaseUserServiceImpl.Role> roles) {
return roles.stream()
.map(role -> new SimpleGrantedAuthority(role.getName()))
.collect(Collectors.toList());
}
@Data
public class Role {
@Id
private Long id;
private String name;
}
}

View File

@ -1,4 +0,0 @@
package com.cecilia.engine.demo;
public class DemoServiceImpl {
}

View File

@ -0,0 +1,15 @@
package com.cecilia.pojo.cmd.base;
import lombok.Data;
@Data
public class CreateDicCommand {
private String typeCode;
private String code;
private String name;
private Integer parentCode;
private String treeCode;
private Integer order;
private Integer level;
private String businessValue;
}

View File

@ -0,0 +1,11 @@
package com.cecilia.pojo.cmd.base;
import lombok.Data;
@Data
public class CreateDicTypeCommand {
private String typeCode;
private String typeName;
private Integer order;
}

View File

@ -0,0 +1,15 @@
package com.cecilia.pojo.cmd.base;
import lombok.Data;
@Data
public class CreateOrgCommand {
private Long parentId;
private String orgName;
private String orgNo;
private String path;
private Integer level;
private String groupType;
private Integer order;
}

View File

@ -0,0 +1,14 @@
package com.cecilia.pojo.cmd.base;
import lombok.Data;
@Data
public class CreateUserCommand {
private String userName;
private String nickName;
private String identifierAccount;
private String identifierToken;
private String pwd;
}

View File

@ -0,0 +1,9 @@
package com.cecilia.pojo.cmd.base;
import lombok.Data;
@Data
public class LoginCommand {
private String account;
private String pwd;
}

View File

@ -0,0 +1,12 @@
package com.cecilia.pojo.cmd.base;
import lombok.Data;
@Data
public class SelectDicCommand {
private String typeCode;
private Integer code;
private String name;
private String businessValue;
}

View File

@ -0,0 +1,10 @@
package com.cecilia.pojo.cmd.base;
import lombok.Data;
@Data
public class SelectDicTypeCommand {
private String typeCode;
private String typeName;
}

View File

@ -0,0 +1,9 @@
package com.cecilia.pojo.cmd.base;
import lombok.Data;
@Data
public class SelectOrgCommand {
private String orgName;
private String orgNo;
}

View File

@ -0,0 +1,17 @@
package com.cecilia.pojo.cmd.base;
import lombok.Data;
@Data
public class UpdateDicCommand {
private Long id;
private String typeCode;
private String code;
private String name;
private Integer parentCode;
private String treeCode;
private Integer order;
private Integer level;
private String businessValue;
private Byte isEnable;
}

View File

@ -0,0 +1,12 @@
package com.cecilia.pojo.cmd.base;
import lombok.Data;
@Data
public class UpdateDicTypeCommand {
private Long id;
private String typeCode;
private String typeName;
private Integer order;
}

View File

@ -0,0 +1,15 @@
package com.cecilia.pojo.cmd.base;
import lombok.Data;
@Data
public class UpdateOrgCommand {
private Long id;
private Long parentId;
private String orgName;
private String orgNo;
private String path;
private Integer level;
private String groupType;
private Integer order;
}

View File

@ -0,0 +1,13 @@
package com.cecilia.pojo.cmd.base;
import lombok.Data;
@Data
public class UpdateUserCommand {
private Long id;
private String userName;
private String nickName;
private String pwd;
private Byte status;
}

View File

@ -1,4 +0,0 @@
package com.cecilia.pojo.cmd.demo;
public class DemoCommand {
}

View File

@ -1,4 +0,0 @@
package com.cecilia.pojo.cmd.test;
public class TestCommand {
}

View File

@ -1,4 +0,0 @@
package com.cecilia.pojo.dto.demo;
public class DemoDto {
}

View File

@ -1,4 +0,0 @@
package com.cecilia.pojo.dto.test;
public class TestDto {
}

View File

@ -7,6 +7,10 @@ package com.cecilia.pojo.entity;
import com.cecilia.pojo.entity.tables.BaseDataHoliday;
import com.cecilia.pojo.entity.tables.BaseDic;
import com.cecilia.pojo.entity.tables.BaseDicType;
import com.cecilia.pojo.entity.tables.BaseOrganizations;
import com.cecilia.pojo.entity.tables.BaseSysConfig;
import com.cecilia.pojo.entity.tables.BaseUser;
import com.cecilia.pojo.entity.tables.BaseUserOrgs;
import java.util.Arrays;
import java.util.List;
@ -20,14 +24,14 @@ import org.jooq.impl.SchemaImpl;
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Darkness extends SchemaImpl {
public class Cecilia extends SchemaImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>darkness</code>
* The reference instance of <code>cecilia</code>
*/
public static final Darkness DARKNESS = new Darkness();
public static final Cecilia CECILIA = new Cecilia();
/**
* 节假日数据表
@ -44,11 +48,31 @@ public class Darkness extends SchemaImpl {
*/
public final BaseDicType BASE_DIC_TYPE = BaseDicType.BASE_DIC_TYPE;
/**
* The table <code>cecilia.base_organizations</code>.
*/
public final BaseOrganizations BASE_ORGANIZATIONS = BaseOrganizations.BASE_ORGANIZATIONS;
/**
* The table <code>cecilia.base_sys_config</code>.
*/
public final BaseSysConfig BASE_SYS_CONFIG = BaseSysConfig.BASE_SYS_CONFIG;
/**
* 系统用户表
*/
public final BaseUser BASE_USER = BaseUser.BASE_USER;
/**
* The table <code>cecilia.base_user_orgs</code>.
*/
public final BaseUserOrgs BASE_USER_ORGS = BaseUserOrgs.BASE_USER_ORGS;
/**
* No further instances allowed
*/
private Darkness() {
super("darkness", null);
private Cecilia() {
super("cecilia", null);
}
@ -62,6 +86,10 @@ public class Darkness extends SchemaImpl {
return Arrays.<Table<?>>asList(
BaseDataHoliday.BASE_DATA_HOLIDAY,
BaseDic.BASE_DIC,
BaseDicType.BASE_DIC_TYPE);
BaseDicType.BASE_DIC_TYPE,
BaseOrganizations.BASE_ORGANIZATIONS,
BaseSysConfig.BASE_SYS_CONFIG,
BaseUser.BASE_USER,
BaseUserOrgs.BASE_USER_ORGS);
}
}

View File

@ -25,9 +25,9 @@ public class DefaultCatalog extends CatalogImpl {
public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();
/**
* The schema <code>darkness</code>.
* The schema <code>cecilia</code>.
*/
public final Darkness DARKNESS = Darkness.DARKNESS;
public final Cecilia CECILIA = Cecilia.CECILIA;
/**
* No further instances allowed
@ -39,6 +39,6 @@ public class DefaultCatalog extends CatalogImpl {
@Override
public final List<Schema> getSchemas() {
return Arrays.<Schema>asList(
Darkness.DARKNESS);
Cecilia.CECILIA);
}
}

View File

@ -5,6 +5,8 @@ package com.cecilia.pojo.entity;
import com.cecilia.pojo.entity.tables.BaseDataHoliday;
import com.cecilia.pojo.entity.tables.BaseOrganizations;
import com.cecilia.pojo.entity.tables.BaseUser;
import org.jooq.Index;
import org.jooq.OrderField;
@ -13,7 +15,7 @@ import org.jooq.impl.Internal;
/**
* A class modelling indexes of tables in darkness.
* A class modelling indexes of tables in cecilia.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Indexes {
@ -22,5 +24,9 @@ public class Indexes {
// INDEX definitions
// -------------------------------------------------------------------------
public static final Index BASE_DATA_HOLIDAY_IDX_DATE = Internal.createIndex(DSL.name("IDX_DATE"), BaseDataHoliday.BASE_DATA_HOLIDAY, new OrderField[] { BaseDataHoliday.BASE_DATA_HOLIDAY.DATE }, false);
public static final Index BASE_DATA_HOLIDAY_IDX_DATE = Internal.createIndex(DSL.name("idx_date"), BaseDataHoliday.BASE_DATA_HOLIDAY, new OrderField[] { BaseDataHoliday.BASE_DATA_HOLIDAY.DATE }, false);
public static final Index BASE_ORGANIZATIONS_IDX_ORG_NO = Internal.createIndex(DSL.name("idx_org_no"), BaseOrganizations.BASE_ORGANIZATIONS, new OrderField[] { BaseOrganizations.BASE_ORGANIZATIONS.ORG_NO }, false);
public static final Index BASE_ORGANIZATIONS_IDX_ORG_PARENT = Internal.createIndex(DSL.name("idx_org_parent"), BaseOrganizations.BASE_ORGANIZATIONS, new OrderField[] { BaseOrganizations.BASE_ORGANIZATIONS.PARENT_ID }, false);
public static final Index BASE_ORGANIZATIONS_IDX_ORG_PATH = Internal.createIndex(DSL.name("idx_org_path"), BaseOrganizations.BASE_ORGANIZATIONS, new OrderField[] { BaseOrganizations.BASE_ORGANIZATIONS.PATH }, false);
public static final Index BASE_USER_IDX_SALT_PASSWORD_HASH = Internal.createIndex(DSL.name("idx_salt_password_hash"), BaseUser.BASE_USER, new OrderField[] { BaseUser.BASE_USER.PASSWORD_HASH }, false);
}

View File

@ -7,9 +7,17 @@ package com.cecilia.pojo.entity;
import com.cecilia.pojo.entity.tables.BaseDataHoliday;
import com.cecilia.pojo.entity.tables.BaseDic;
import com.cecilia.pojo.entity.tables.BaseDicType;
import com.cecilia.pojo.entity.tables.BaseOrganizations;
import com.cecilia.pojo.entity.tables.BaseSysConfig;
import com.cecilia.pojo.entity.tables.BaseUser;
import com.cecilia.pojo.entity.tables.BaseUserOrgs;
import com.cecilia.pojo.entity.tables.records.BaseDataHolidayRecord;
import com.cecilia.pojo.entity.tables.records.BaseDicRecord;
import com.cecilia.pojo.entity.tables.records.BaseDicTypeRecord;
import com.cecilia.pojo.entity.tables.records.BaseOrganizationsRecord;
import com.cecilia.pojo.entity.tables.records.BaseSysConfigRecord;
import com.cecilia.pojo.entity.tables.records.BaseUserOrgsRecord;
import com.cecilia.pojo.entity.tables.records.BaseUserRecord;
import org.jooq.TableField;
import org.jooq.UniqueKey;
@ -19,7 +27,7 @@ import org.jooq.impl.Internal;
/**
* A class modelling foreign key relationships and constraints of tables in
* darkness.
* cecilia.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {
@ -31,4 +39,8 @@ public class Keys {
public static final UniqueKey<BaseDataHolidayRecord> KEY_BASE_DATA_HOLIDAY_PRIMARY = Internal.createUniqueKey(BaseDataHoliday.BASE_DATA_HOLIDAY, DSL.name("KEY_base_data_holiday_PRIMARY"), new TableField[] { BaseDataHoliday.BASE_DATA_HOLIDAY.ID }, true);
public static final UniqueKey<BaseDicRecord> KEY_BASE_DIC_PRIMARY = Internal.createUniqueKey(BaseDic.BASE_DIC, DSL.name("KEY_base_dic_PRIMARY"), new TableField[] { BaseDic.BASE_DIC.ID }, true);
public static final UniqueKey<BaseDicTypeRecord> KEY_BASE_DIC_TYPE_PRIMARY = Internal.createUniqueKey(BaseDicType.BASE_DIC_TYPE, DSL.name("KEY_base_dic_type_PRIMARY"), new TableField[] { BaseDicType.BASE_DIC_TYPE.ID }, true);
public static final UniqueKey<BaseOrganizationsRecord> KEY_BASE_ORGANIZATIONS_PRIMARY = Internal.createUniqueKey(BaseOrganizations.BASE_ORGANIZATIONS, DSL.name("KEY_base_organizations_PRIMARY"), new TableField[] { BaseOrganizations.BASE_ORGANIZATIONS.ID }, true);
public static final UniqueKey<BaseSysConfigRecord> KEY_BASE_SYS_CONFIG_PRIMARY = Internal.createUniqueKey(BaseSysConfig.BASE_SYS_CONFIG, DSL.name("KEY_base_sys_config_PRIMARY"), new TableField[] { BaseSysConfig.BASE_SYS_CONFIG.ID }, true);
public static final UniqueKey<BaseUserRecord> KEY_BASE_USER_PRIMARY = Internal.createUniqueKey(BaseUser.BASE_USER, DSL.name("KEY_base_user_PRIMARY"), new TableField[] { BaseUser.BASE_USER.ID }, true);
public static final UniqueKey<BaseUserOrgsRecord> KEY_BASE_USER_ORGS_PRIMARY = Internal.createUniqueKey(BaseUserOrgs.BASE_USER_ORGS, DSL.name("KEY_base_user_orgs_PRIMARY"), new TableField[] { BaseUserOrgs.BASE_USER_ORGS.ID }, true);
}

View File

@ -7,10 +7,14 @@ package com.cecilia.pojo.entity;
import com.cecilia.pojo.entity.tables.BaseDataHoliday;
import com.cecilia.pojo.entity.tables.BaseDic;
import com.cecilia.pojo.entity.tables.BaseDicType;
import com.cecilia.pojo.entity.tables.BaseOrganizations;
import com.cecilia.pojo.entity.tables.BaseSysConfig;
import com.cecilia.pojo.entity.tables.BaseUser;
import com.cecilia.pojo.entity.tables.BaseUserOrgs;
/**
* Convenience access to all tables in darkness.
* Convenience access to all tables in cecilia.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Tables {
@ -29,4 +33,24 @@ public class Tables {
* 字典类型表
*/
public static final BaseDicType BASE_DIC_TYPE = BaseDicType.BASE_DIC_TYPE;
/**
* The table <code>cecilia.base_organizations</code>.
*/
public static final BaseOrganizations BASE_ORGANIZATIONS = BaseOrganizations.BASE_ORGANIZATIONS;
/**
* The table <code>cecilia.base_sys_config</code>.
*/
public static final BaseSysConfig BASE_SYS_CONFIG = BaseSysConfig.BASE_SYS_CONFIG;
/**
* 系统用户表
*/
public static final BaseUser BASE_USER = BaseUser.BASE_USER;
/**
* The table <code>cecilia.base_user_orgs</code>.
*/
public static final BaseUserOrgs BASE_USER_ORGS = BaseUserOrgs.BASE_USER_ORGS;
}

View File

@ -4,7 +4,7 @@
package com.cecilia.pojo.entity.tables;
import com.cecilia.pojo.entity.Darkness;
import com.cecilia.pojo.entity.Cecilia;
import com.cecilia.pojo.entity.Indexes;
import com.cecilia.pojo.entity.Keys;
import com.cecilia.pojo.entity.tables.records.BaseDataHolidayRecord;
@ -39,7 +39,7 @@ public class BaseDataHoliday extends TableImpl<BaseDataHolidayRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>darkness.base_data_holiday</code>
* The reference instance of <code>cecilia.base_data_holiday</code>
*/
public static final BaseDataHoliday BASE_DATA_HOLIDAY = new BaseDataHoliday();
@ -52,77 +52,77 @@ public class BaseDataHoliday extends TableImpl<BaseDataHolidayRecord> {
}
/**
* The column <code>darkness.base_data_holiday.id</code>. 唯一id
* The column <code>cecilia.base_data_holiday.id</code>. 唯一id
*/
public final TableField<BaseDataHolidayRecord, Integer> ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false).identity(true), this, "唯一id");
/**
* The column <code>darkness.base_data_holiday.date</code>. 日期
* The column <code>cecilia.base_data_holiday.date</code>. 日期
*/
public final TableField<BaseDataHolidayRecord, LocalDate> DATE = createField(DSL.name("date"), SQLDataType.LOCALDATE, this, "日期");
/**
* The column <code>darkness.base_data_holiday.week</code>. 周几
* The column <code>cecilia.base_data_holiday.week</code>. 周几
*/
public final TableField<BaseDataHolidayRecord, String> WEEK = createField(DSL.name("week"), SQLDataType.VARCHAR(255), this, "周几");
/**
* The column <code>darkness.base_data_holiday.nonglinian</code>. 农历年份
* The column <code>cecilia.base_data_holiday.nonglinian</code>. 农历年份
*/
public final TableField<BaseDataHolidayRecord, Integer> NONGLINIAN = createField(DSL.name("nonglinian"), SQLDataType.INTEGER, this, "农历年份");
/**
* The column <code>darkness.base_data_holiday.nongliyue</code>. 农历月
* The column <code>cecilia.base_data_holiday.nongliyue</code>. 农历月
*/
public final TableField<BaseDataHolidayRecord, String> NONGLIYUE = createField(DSL.name("nongliyue"), SQLDataType.VARCHAR(255), this, "农历月");
/**
* The column <code>darkness.base_data_holiday.nongliri</code>. 农历日
* The column <code>cecilia.base_data_holiday.nongliri</code>. 农历日
*/
public final TableField<BaseDataHolidayRecord, String> NONGLIRI = createField(DSL.name("nongliri"), SQLDataType.VARCHAR(255), this, "农历日");
/**
* The column <code>darkness.base_data_holiday.nianganzhi</code>.
* The column <code>cecilia.base_data_holiday.nianganzhi</code>.
*/
public final TableField<BaseDataHolidayRecord, String> NIANGANZHI = createField(DSL.name("nianganzhi"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>darkness.base_data_holiday.shuxiang</code>. 生肖
* The column <code>cecilia.base_data_holiday.shuxiang</code>. 生肖
*/
public final TableField<BaseDataHolidayRecord, String> SHUXIANG = createField(DSL.name("shuxiang"), SQLDataType.VARCHAR(255), this, "生肖");
/**
* The column <code>darkness.base_data_holiday.str_descrip</code>. 描述
* The column <code>cecilia.base_data_holiday.str_descrip</code>. 描述
*/
public final TableField<BaseDataHolidayRecord, String> STR_DESCRIP = createField(DSL.name("str_descrip"), SQLDataType.VARCHAR(255), this, "描述");
/**
* The column <code>darkness.base_data_holiday.towork</code>. 调休0 正常上班 1放假 2周末调休
* The column <code>cecilia.base_data_holiday.towork</code>. 调休0 正常上班 1放假 2周末调休
*/
public final TableField<BaseDataHolidayRecord, Integer> TOWORK = createField(DSL.name("towork"), SQLDataType.INTEGER.defaultValue(DSL.inline("0", SQLDataType.INTEGER)), this, "调休0 正常上班 1放假 2周末调休");
/**
* The column <code>darkness.base_data_holiday.gonglijieri</code>. 公历节日
* The column <code>cecilia.base_data_holiday.gonglijieri</code>. 公历节日
*/
public final TableField<BaseDataHolidayRecord, String> GONGLIJIERI = createField(DSL.name("gonglijieri"), SQLDataType.VARCHAR(255), this, "公历节日");
/**
* The column <code>darkness.base_data_holiday.nonglijieri</code>. 农历节日
* The column <code>cecilia.base_data_holiday.nonglijieri</code>. 农历节日
*/
public final TableField<BaseDataHolidayRecord, String> NONGLIJIERI = createField(DSL.name("nonglijieri"), SQLDataType.VARCHAR(255), this, "农历节日");
/**
* The column <code>darkness.base_data_holiday.jieqi</code>. 节气
* The column <code>cecilia.base_data_holiday.jieqi</code>. 节气
*/
public final TableField<BaseDataHolidayRecord, String> JIEQI = createField(DSL.name("jieqi"), SQLDataType.VARCHAR(255), this, "节气");
/**
* The column <code>darkness.base_data_holiday.teshujieri</code>. 特殊节日
* The column <code>cecilia.base_data_holiday.teshujieri</code>. 特殊节日
*/
public final TableField<BaseDataHolidayRecord, String> TESHUJIERI = createField(DSL.name("teshujieri"), SQLDataType.VARCHAR(10), this, "特殊节日");
/**
* The column <code>darkness.base_data_holiday.runyue</code>. 润月
* The column <code>cecilia.base_data_holiday.runyue</code>. 润月
*/
public final TableField<BaseDataHolidayRecord, Integer> RUNYUE = createField(DSL.name("runyue"), SQLDataType.INTEGER, this, "润月");
@ -135,21 +135,21 @@ public class BaseDataHoliday extends TableImpl<BaseDataHolidayRecord> {
}
/**
* Create an aliased <code>darkness.base_data_holiday</code> table reference
* Create an aliased <code>cecilia.base_data_holiday</code> table reference
*/
public BaseDataHoliday(String alias) {
this(DSL.name(alias), BASE_DATA_HOLIDAY);
}
/**
* Create an aliased <code>darkness.base_data_holiday</code> table reference
* Create an aliased <code>cecilia.base_data_holiday</code> table reference
*/
public BaseDataHoliday(Name alias) {
this(alias, BASE_DATA_HOLIDAY);
}
/**
* Create a <code>darkness.base_data_holiday</code> table reference
* Create a <code>cecilia.base_data_holiday</code> table reference
*/
public BaseDataHoliday() {
this(DSL.name("base_data_holiday"), null);
@ -161,7 +161,7 @@ public class BaseDataHoliday extends TableImpl<BaseDataHolidayRecord> {
@Override
public Schema getSchema() {
return Darkness.DARKNESS;
return Cecilia.CECILIA;
}
@Override

View File

@ -4,7 +4,7 @@
package com.cecilia.pojo.entity.tables;
import com.cecilia.pojo.entity.Darkness;
import com.cecilia.pojo.entity.Cecilia;
import com.cecilia.pojo.entity.Keys;
import com.cecilia.pojo.entity.tables.records.BaseDicRecord;
@ -17,7 +17,7 @@ import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row18;
import org.jooq.Row16;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
@ -37,7 +37,7 @@ public class BaseDic extends TableImpl<BaseDicRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>darkness.base_dic</code>
* The reference instance of <code>cecilia.base_dic</code>
*/
public static final BaseDic BASE_DIC = new BaseDic();
@ -50,94 +50,84 @@ public class BaseDic extends TableImpl<BaseDicRecord> {
}
/**
* The column <code>darkness.base_dic.id</code>. 主键
* The column <code>cecilia.base_dic.id</code>. 主键
*/
public final TableField<BaseDicRecord, Long> ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "主键");
/**
* The column <code>darkness.base_dic.type_code</code>. 类型编码
* The column <code>cecilia.base_dic.type_code</code>. 类型编码
*/
public final TableField<BaseDicRecord, String> TYPE_CODE = createField(DSL.name("type_code"), SQLDataType.VARCHAR(50), this, "类型编码");
/**
* The column <code>darkness.base_dic.code</code>. 编码
* The column <code>cecilia.base_dic.code</code>. 编码
*/
public final TableField<BaseDicRecord, Integer> CODE = createField(DSL.name("code"), SQLDataType.INTEGER, this, "编码");
public final TableField<BaseDicRecord, String> CODE = createField(DSL.name("code"), SQLDataType.VARCHAR(10), this, "编码");
/**
* The column <code>darkness.base_dic.name</code>. 名称
* The column <code>cecilia.base_dic.name</code>. 名称
*/
public final TableField<BaseDicRecord, String> NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(255), this, "名称");
/**
* The column <code>darkness.base_dic.parenet_code</code>. 父编码
* The column <code>cecilia.base_dic.parent_code</code>. 父编码
*/
public final TableField<BaseDicRecord, Integer> PARENET_CODE = createField(DSL.name("parenet_code"), SQLDataType.INTEGER, this, "父编码");
public final TableField<BaseDicRecord, Integer> PARENT_CODE = createField(DSL.name("parent_code"), SQLDataType.INTEGER, this, "父编码");
/**
* The column <code>darkness.base_dic.tree_code</code>. 树编码
* The column <code>cecilia.base_dic.tree_code</code>. 树编码
*/
public final TableField<BaseDicRecord, String> TREE_CODE = createField(DSL.name("tree_code"), SQLDataType.VARCHAR(200), this, "树编码");
/**
* The column <code>darkness.base_dic.order</code>. 排序正序
* The column <code>cecilia.base_dic.order</code>. 排序正序
*/
public final TableField<BaseDicRecord, Integer> ORDER = createField(DSL.name("order"), SQLDataType.INTEGER, this, "排序(正序)");
/**
* The column <code>darkness.base_dic.level</code>. 级别
* The column <code>cecilia.base_dic.level</code>. 级别
*/
public final TableField<BaseDicRecord, Integer> LEVEL = createField(DSL.name("level"), SQLDataType.INTEGER, this, "级别");
/**
* The column <code>darkness.base_dic.business_value</code>. 业务数据
* The column <code>cecilia.base_dic.business_value</code>. 业务数据
*/
public final TableField<BaseDicRecord, String> BUSINESS_VALUE = createField(DSL.name("business_value"), SQLDataType.VARCHAR(255), this, "业务数据");
/**
* The column <code>darkness.base_dic.filter_item</code>. 过滤项
*/
public final TableField<BaseDicRecord, String> FILTER_ITEM = createField(DSL.name("filter_item"), SQLDataType.VARCHAR(255), this, "过滤项");
/**
* The column <code>darkness.base_dic.creator_uid</code>. 创建者用户id
*/
public final TableField<BaseDicRecord, Long> CREATOR_UID = createField(DSL.name("creator_uid"), SQLDataType.BIGINT, this, "创建者用户id");
/**
* The column <code>darkness.base_dic.create_time</code>. 记录创建时间
* The column <code>cecilia.base_dic.create_time</code>. 记录创建时间
*/
public final TableField<BaseDicRecord, LocalDateTime> CREATE_TIME = createField(DSL.name("create_time"), SQLDataType.LOCALDATETIME(0), this, "记录创建时间");
/**
* The column <code>darkness.base_dic.operator_uid</code>. 更新人用户id
* The column <code>cecilia.base_dic.create_uid</code>. 创建者用户id
*/
public final TableField<BaseDicRecord, Long> OPERATOR_UID = createField(DSL.name("operator_uid"), SQLDataType.BIGINT, this, "更新人用户id");
public final TableField<BaseDicRecord, Long> CREATE_UID = createField(DSL.name("create_uid"), SQLDataType.BIGINT, this, "创建者用户id");
/**
* The column <code>darkness.base_dic.update_time</code>. 记录更新时间
* The column <code>cecilia.base_dic.update_time</code>. 记录更新时间
*/
public final TableField<BaseDicRecord, LocalDateTime> UPDATE_TIME = createField(DSL.name("update_time"), SQLDataType.LOCALDATETIME(0), this, "记录更新时间");
/**
* The column <code>darkness.base_dic.delete_flag</code>. 是否删除标识位(0未删除1已删除)
* The column <code>cecilia.base_dic.update_uid</code>. 更新人用户id
*/
public final TableField<BaseDicRecord, Long> UPDATE_UID = createField(DSL.name("update_uid"), SQLDataType.BIGINT, this, "更新人用户id");
/**
* The column <code>cecilia.base_dic.delete_flag</code>. 是否删除标识位(0未删除1已删除)
*/
public final TableField<BaseDicRecord, Byte> DELETE_FLAG = createField(DSL.name("delete_flag"), SQLDataType.TINYINT, this, "是否删除标识位(0未删除1已删除)");
/**
* The column <code>darkness.base_dic.is_enable</code>. 是否启用
* The column <code>cecilia.base_dic.is_enable</code>. 是否启用
*/
public final TableField<BaseDicRecord, Integer> IS_ENABLE = createField(DSL.name("is_enable"), SQLDataType.INTEGER, this, "是否启用");
public final TableField<BaseDicRecord, Byte> IS_ENABLE = createField(DSL.name("is_enable"), SQLDataType.TINYINT, this, "是否启用");
/**
* The column <code>darkness.base_dic.app_id</code>. 多应用的应用id
* The column <code>cecilia.base_dic.namespace_id</code>. 域空间id
*/
public final TableField<BaseDicRecord, String> APP_ID = createField(DSL.name("app_id"), SQLDataType.VARCHAR(255), this, "多应用的应用id");
/**
* The column <code>darkness.base_dic.namespace_id</code>. 域空间id
*/
public final TableField<BaseDicRecord, Integer> NAMESPACE_ID = createField(DSL.name("namespace_id"), SQLDataType.INTEGER, this, "域空间id");
public final TableField<BaseDicRecord, Long> NAMESPACE_ID = createField(DSL.name("namespace_id"), SQLDataType.BIGINT, this, "域空间id");
private BaseDic(Name alias, Table<BaseDicRecord> aliased) {
this(alias, aliased, null);
@ -148,21 +138,21 @@ public class BaseDic extends TableImpl<BaseDicRecord> {
}
/**
* Create an aliased <code>darkness.base_dic</code> table reference
* Create an aliased <code>cecilia.base_dic</code> table reference
*/
public BaseDic(String alias) {
this(DSL.name(alias), BASE_DIC);
}
/**
* Create an aliased <code>darkness.base_dic</code> table reference
* Create an aliased <code>cecilia.base_dic</code> table reference
*/
public BaseDic(Name alias) {
this(alias, BASE_DIC);
}
/**
* Create a <code>darkness.base_dic</code> table reference
* Create a <code>cecilia.base_dic</code> table reference
*/
public BaseDic() {
this(DSL.name("base_dic"), null);
@ -174,7 +164,7 @@ public class BaseDic extends TableImpl<BaseDicRecord> {
@Override
public Schema getSchema() {
return Darkness.DARKNESS;
return Cecilia.CECILIA;
}
@Override
@ -219,11 +209,11 @@ public class BaseDic extends TableImpl<BaseDicRecord> {
}
// -------------------------------------------------------------------------
// Row18 type methods
// Row16 type methods
// -------------------------------------------------------------------------
@Override
public Row18<Long, String, Integer, String, Integer, String, Integer, Integer, String, String, Long, LocalDateTime, Long, LocalDateTime, Byte, Integer, String, Integer> fieldsRow() {
return (Row18) super.fieldsRow();
public Row16<Long, String, String, String, Integer, String, Integer, Integer, String, LocalDateTime, Long, LocalDateTime, Long, Byte, Byte, Long> fieldsRow() {
return (Row16) super.fieldsRow();
}
}

View File

@ -4,7 +4,7 @@
package com.cecilia.pojo.entity.tables;
import com.cecilia.pojo.entity.Darkness;
import com.cecilia.pojo.entity.Cecilia;
import com.cecilia.pojo.entity.Keys;
import com.cecilia.pojo.entity.tables.records.BaseDicTypeRecord;
@ -17,7 +17,7 @@ import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row11;
import org.jooq.Row10;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
@ -37,7 +37,7 @@ public class BaseDicType extends TableImpl<BaseDicTypeRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>darkness.base_dic_type</code>
* The reference instance of <code>cecilia.base_dic_type</code>
*/
public static final BaseDicType BASE_DIC_TYPE = new BaseDicType();
@ -50,59 +50,54 @@ public class BaseDicType extends TableImpl<BaseDicTypeRecord> {
}
/**
* The column <code>darkness.base_dic_type.id</code>. 主键
* The column <code>cecilia.base_dic_type.id</code>. 主键
*/
public final TableField<BaseDicTypeRecord, Long> ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "主键");
/**
* The column <code>darkness.base_dic_type.type_code</code>. 类型编码
* The column <code>cecilia.base_dic_type.type_code</code>. 类型编码
*/
public final TableField<BaseDicTypeRecord, String> TYPE_CODE = createField(DSL.name("type_code"), SQLDataType.VARCHAR(50), this, "类型编码");
/**
* The column <code>darkness.base_dic_type.type_name</code>. 名称
* The column <code>cecilia.base_dic_type.type_name</code>. 名称
*/
public final TableField<BaseDicTypeRecord, String> TYPE_NAME = createField(DSL.name("type_name"), SQLDataType.VARCHAR(20), this, "名称");
/**
* The column <code>darkness.base_dic_type.order</code>. 排序
* The column <code>cecilia.base_dic_type.order</code>. 排序
*/
public final TableField<BaseDicTypeRecord, Integer> ORDER = createField(DSL.name("order"), SQLDataType.INTEGER, this, "排序");
/**
* The column <code>darkness.base_dic_type.creator_uid</code>. 创建者用户id
*/
public final TableField<BaseDicTypeRecord, Long> CREATOR_UID = createField(DSL.name("creator_uid"), SQLDataType.BIGINT, this, "创建者用户id");
/**
* The column <code>darkness.base_dic_type.create_time</code>. 记录创建时间
* The column <code>cecilia.base_dic_type.create_time</code>. 记录创建时间
*/
public final TableField<BaseDicTypeRecord, LocalDateTime> CREATE_TIME = createField(DSL.name("create_time"), SQLDataType.LOCALDATETIME(0), this, "记录创建时间");
/**
* The column <code>darkness.base_dic_type.operator_uid</code>. 更新人用户id
* The column <code>cecilia.base_dic_type.create_uid</code>. 创建者用户id
*/
public final TableField<BaseDicTypeRecord, Long> OPERATOR_UID = createField(DSL.name("operator_uid"), SQLDataType.BIGINT, this, "更新人用户id");
public final TableField<BaseDicTypeRecord, Long> CREATE_UID = createField(DSL.name("create_uid"), SQLDataType.BIGINT, this, "创建者用户id");
/**
* The column <code>darkness.base_dic_type.update_time</code>. 记录更新时间
* The column <code>cecilia.base_dic_type.update_time</code>. 记录更新时间
*/
public final TableField<BaseDicTypeRecord, LocalDateTime> UPDATE_TIME = createField(DSL.name("update_time"), SQLDataType.LOCALDATETIME(0), this, "记录更新时间");
/**
* The column <code>darkness.base_dic_type.delete_flag</code>. 是否删除标识位(0未删除1已删除)
* The column <code>cecilia.base_dic_type.update_uid</code>. 更新人用户id
*/
public final TableField<BaseDicTypeRecord, Long> UPDATE_UID = createField(DSL.name("update_uid"), SQLDataType.BIGINT, this, "更新人用户id");
/**
* The column <code>cecilia.base_dic_type.delete_flag</code>. 是否删除标识位(0未删除1已删除)
*/
public final TableField<BaseDicTypeRecord, Byte> DELETE_FLAG = createField(DSL.name("delete_flag"), SQLDataType.TINYINT, this, "是否删除标识位(0未删除1已删除)");
/**
* The column <code>darkness.base_dic_type.app_id</code>. 多应用的应用id
* The column <code>cecilia.base_dic_type.namespace_id</code>. 域空间id
*/
public final TableField<BaseDicTypeRecord, String> APP_ID = createField(DSL.name("app_id"), SQLDataType.VARCHAR(255), this, "多应用的应用id");
/**
* The column <code>darkness.base_dic_type.namespace_id</code>. 域空间id
*/
public final TableField<BaseDicTypeRecord, Integer> NAMESPACE_ID = createField(DSL.name("namespace_id"), SQLDataType.INTEGER, this, "域空间id");
public final TableField<BaseDicTypeRecord, Long> NAMESPACE_ID = createField(DSL.name("namespace_id"), SQLDataType.BIGINT, this, "域空间id");
private BaseDicType(Name alias, Table<BaseDicTypeRecord> aliased) {
this(alias, aliased, null);
@ -113,21 +108,21 @@ public class BaseDicType extends TableImpl<BaseDicTypeRecord> {
}
/**
* Create an aliased <code>darkness.base_dic_type</code> table reference
* Create an aliased <code>cecilia.base_dic_type</code> table reference
*/
public BaseDicType(String alias) {
this(DSL.name(alias), BASE_DIC_TYPE);
}
/**
* Create an aliased <code>darkness.base_dic_type</code> table reference
* Create an aliased <code>cecilia.base_dic_type</code> table reference
*/
public BaseDicType(Name alias) {
this(alias, BASE_DIC_TYPE);
}
/**
* Create a <code>darkness.base_dic_type</code> table reference
* Create a <code>cecilia.base_dic_type</code> table reference
*/
public BaseDicType() {
this(DSL.name("base_dic_type"), null);
@ -139,7 +134,7 @@ public class BaseDicType extends TableImpl<BaseDicTypeRecord> {
@Override
public Schema getSchema() {
return Darkness.DARKNESS;
return Cecilia.CECILIA;
}
@Override
@ -184,11 +179,11 @@ public class BaseDicType extends TableImpl<BaseDicTypeRecord> {
}
// -------------------------------------------------------------------------
// Row11 type methods
// Row10 type methods
// -------------------------------------------------------------------------
@Override
public Row11<Long, String, String, Integer, Long, LocalDateTime, Long, LocalDateTime, Byte, String, Integer> fieldsRow() {
return (Row11) super.fieldsRow();
public Row10<Long, String, String, Integer, LocalDateTime, Long, LocalDateTime, Long, Byte, Long> fieldsRow() {
return (Row10) super.fieldsRow();
}
}

View File

@ -0,0 +1,216 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables;
import com.cecilia.pojo.entity.Cecilia;
import com.cecilia.pojo.entity.Indexes;
import com.cecilia.pojo.entity.Keys;
import com.cecilia.pojo.entity.tables.records.BaseOrganizationsRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row14;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseOrganizations extends TableImpl<BaseOrganizationsRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>cecilia.base_organizations</code>
*/
public static final BaseOrganizations BASE_ORGANIZATIONS = new BaseOrganizations();
/**
* The class holding records for this type
*/
@Override
public Class<BaseOrganizationsRecord> getRecordType() {
return BaseOrganizationsRecord.class;
}
/**
* The column <code>cecilia.base_organizations.id</code>.
*/
public final TableField<BaseOrganizationsRecord, Long> ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column <code>cecilia.base_organizations.parent_id</code>.
*/
public final TableField<BaseOrganizationsRecord, Long> PARENT_ID = createField(DSL.name("parent_id"), SQLDataType.BIGINT, this, "");
/**
* The column <code>cecilia.base_organizations.org_name</code>.
*/
public final TableField<BaseOrganizationsRecord, String> ORG_NAME = createField(DSL.name("org_name"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>cecilia.base_organizations.org_no</code>. 部门编号(仅group_type=DEPARTMENT才有)
*/
public final TableField<BaseOrganizationsRecord, String> ORG_NO = createField(DSL.name("org_no"), SQLDataType.VARCHAR(512), this, "部门编号(仅group_type=DEPARTMENT才有)");
/**
* The column <code>cecilia.base_organizations.path</code>.
*/
public final TableField<BaseOrganizationsRecord, String> PATH = createField(DSL.name("path"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>cecilia.base_organizations.level</code>.
*/
public final TableField<BaseOrganizationsRecord, Integer> LEVEL = createField(DSL.name("level"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.inline("0", SQLDataType.INTEGER)), this, "");
/**
* The column <code>cecilia.base_organizations.status</code>. 1: inactive, 2: active, 3: locked, 4: mark as deleted
*/
public final TableField<BaseOrganizationsRecord, Byte> STATUS = createField(DSL.name("status"), SQLDataType.TINYINT.nullable(false).defaultValue(DSL.inline("1", SQLDataType.TINYINT)), this, "1: inactive, 2: active, 3: locked, 4: mark as deleted");
/**
* The column <code>cecilia.base_organizations.group_type</code>. ENTERPRISE, DEPARTMENT, GROUP, JOB_POSITION, JOB_LEVEL, MANAGER
*/
public final TableField<BaseOrganizationsRecord, String> GROUP_TYPE = createField(DSL.name("group_type"), SQLDataType.VARCHAR(64), this, "ENTERPRISE, DEPARTMENT, GROUP, JOB_POSITION, JOB_LEVEL, MANAGER");
/**
* The column <code>cecilia.base_organizations.order</code>.
*/
public final TableField<BaseOrganizationsRecord, Integer> ORDER = createField(DSL.name("order"), SQLDataType.INTEGER.defaultValue(DSL.inline("0", SQLDataType.INTEGER)), this, "");
/**
* The column <code>cecilia.base_organizations.create_time</code>.
*/
public final TableField<BaseOrganizationsRecord, LocalDateTime> CREATE_TIME = createField(DSL.name("create_time"), SQLDataType.LOCALDATETIME(0), this, "");
/**
* The column <code>cecilia.base_organizations.create_uid</code>.
*/
public final TableField<BaseOrganizationsRecord, Long> CREATE_UID = createField(DSL.name("create_uid"), SQLDataType.BIGINT, this, "");
/**
* The column <code>cecilia.base_organizations.update_time</code>.
*/
public final TableField<BaseOrganizationsRecord, LocalDateTime> UPDATE_TIME = createField(DSL.name("update_time"), SQLDataType.LOCALDATETIME(0), this, "");
/**
* The column <code>cecilia.base_organizations.update_uid</code>.
*/
public final TableField<BaseOrganizationsRecord, Long> UPDATE_UID = createField(DSL.name("update_uid"), SQLDataType.BIGINT, this, "");
/**
* The column <code>cecilia.base_organizations.namespace_id</code>.
*/
public final TableField<BaseOrganizationsRecord, Long> NAMESPACE_ID = createField(DSL.name("namespace_id"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.inline("0", SQLDataType.BIGINT)), this, "");
private BaseOrganizations(Name alias, Table<BaseOrganizationsRecord> aliased) {
this(alias, aliased, null);
}
private BaseOrganizations(Name alias, Table<BaseOrganizationsRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>cecilia.base_organizations</code> table reference
*/
public BaseOrganizations(String alias) {
this(DSL.name(alias), BASE_ORGANIZATIONS);
}
/**
* Create an aliased <code>cecilia.base_organizations</code> table reference
*/
public BaseOrganizations(Name alias) {
this(alias, BASE_ORGANIZATIONS);
}
/**
* Create a <code>cecilia.base_organizations</code> table reference
*/
public BaseOrganizations() {
this(DSL.name("base_organizations"), null);
}
public <O extends Record> BaseOrganizations(Table<O> child, ForeignKey<O, BaseOrganizationsRecord> key) {
super(child, key, BASE_ORGANIZATIONS);
}
@Override
public Schema getSchema() {
return Cecilia.CECILIA;
}
@Override
public List<Index> getIndexes() {
return Arrays.<Index>asList(Indexes.BASE_ORGANIZATIONS_IDX_ORG_NO, Indexes.BASE_ORGANIZATIONS_IDX_ORG_PARENT, Indexes.BASE_ORGANIZATIONS_IDX_ORG_PATH);
}
@Override
public Identity<BaseOrganizationsRecord, Long> getIdentity() {
return (Identity<BaseOrganizationsRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<BaseOrganizationsRecord> getPrimaryKey() {
return Keys.KEY_BASE_ORGANIZATIONS_PRIMARY;
}
@Override
public List<UniqueKey<BaseOrganizationsRecord>> getKeys() {
return Arrays.<UniqueKey<BaseOrganizationsRecord>>asList(Keys.KEY_BASE_ORGANIZATIONS_PRIMARY);
}
@Override
public BaseOrganizations as(String alias) {
return new BaseOrganizations(DSL.name(alias), this);
}
@Override
public BaseOrganizations as(Name alias) {
return new BaseOrganizations(alias, this);
}
/**
* Rename this table
*/
@Override
public BaseOrganizations rename(String name) {
return new BaseOrganizations(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public BaseOrganizations rename(Name name) {
return new BaseOrganizations(name, null);
}
// -------------------------------------------------------------------------
// Row14 type methods
// -------------------------------------------------------------------------
@Override
public Row14<Long, Long, String, String, String, Integer, Byte, String, Integer, LocalDateTime, Long, LocalDateTime, Long, Long> fieldsRow() {
return (Row14) super.fieldsRow();
}
}

View File

@ -0,0 +1,173 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables;
import com.cecilia.pojo.entity.Cecilia;
import com.cecilia.pojo.entity.Keys;
import com.cecilia.pojo.entity.tables.records.BaseSysConfigRecord;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row7;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseSysConfig extends TableImpl<BaseSysConfigRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>cecilia.base_sys_config</code>
*/
public static final BaseSysConfig BASE_SYS_CONFIG = new BaseSysConfig();
/**
* The class holding records for this type
*/
@Override
public Class<BaseSysConfigRecord> getRecordType() {
return BaseSysConfigRecord.class;
}
/**
* The column <code>cecilia.base_sys_config.id</code>.
*/
public final TableField<BaseSysConfigRecord, Long> ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column <code>cecilia.base_sys_config.name</code>.
*/
public final TableField<BaseSysConfigRecord, String> NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column <code>cecilia.base_sys_config.value</code>.
*/
public final TableField<BaseSysConfigRecord, String> VALUE = createField(DSL.name("value"), SQLDataType.CLOB, this, "");
/**
* The column <code>cecilia.base_sys_config.description</code>.
*/
public final TableField<BaseSysConfigRecord, String> DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>cecilia.base_sys_config.display_name</code>.
*/
public final TableField<BaseSysConfigRecord, String> DISPLAY_NAME = createField(DSL.name("display_name"), SQLDataType.VARCHAR(128), this, "");
/**
* The column <code>cecilia.base_sys_config.is_readonly</code>. 是否只读0 1是
*/
public final TableField<BaseSysConfigRecord, Byte> IS_READONLY = createField(DSL.name("is_readonly"), SQLDataType.TINYINT, this, "是否只读0 否1是");
/**
* The column <code>cecilia.base_sys_config.namespace_id</code>.
*/
public final TableField<BaseSysConfigRecord, Long> NAMESPACE_ID = createField(DSL.name("namespace_id"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.inline("0", SQLDataType.BIGINT)), this, "");
private BaseSysConfig(Name alias, Table<BaseSysConfigRecord> aliased) {
this(alias, aliased, null);
}
private BaseSysConfig(Name alias, Table<BaseSysConfigRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>cecilia.base_sys_config</code> table reference
*/
public BaseSysConfig(String alias) {
this(DSL.name(alias), BASE_SYS_CONFIG);
}
/**
* Create an aliased <code>cecilia.base_sys_config</code> table reference
*/
public BaseSysConfig(Name alias) {
this(alias, BASE_SYS_CONFIG);
}
/**
* Create a <code>cecilia.base_sys_config</code> table reference
*/
public BaseSysConfig() {
this(DSL.name("base_sys_config"), null);
}
public <O extends Record> BaseSysConfig(Table<O> child, ForeignKey<O, BaseSysConfigRecord> key) {
super(child, key, BASE_SYS_CONFIG);
}
@Override
public Schema getSchema() {
return Cecilia.CECILIA;
}
@Override
public Identity<BaseSysConfigRecord, Long> getIdentity() {
return (Identity<BaseSysConfigRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<BaseSysConfigRecord> getPrimaryKey() {
return Keys.KEY_BASE_SYS_CONFIG_PRIMARY;
}
@Override
public List<UniqueKey<BaseSysConfigRecord>> getKeys() {
return Arrays.<UniqueKey<BaseSysConfigRecord>>asList(Keys.KEY_BASE_SYS_CONFIG_PRIMARY);
}
@Override
public BaseSysConfig as(String alias) {
return new BaseSysConfig(DSL.name(alias), this);
}
@Override
public BaseSysConfig as(Name alias) {
return new BaseSysConfig(alias, this);
}
/**
* Rename this table
*/
@Override
public BaseSysConfig rename(String name) {
return new BaseSysConfig(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public BaseSysConfig rename(Name name) {
return new BaseSysConfig(name, null);
}
// -------------------------------------------------------------------------
// Row7 type methods
// -------------------------------------------------------------------------
@Override
public Row7<Long, String, String, String, String, Byte, Long> fieldsRow() {
return (Row7) super.fieldsRow();
}
}

View File

@ -0,0 +1,205 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables;
import com.cecilia.pojo.entity.Cecilia;
import com.cecilia.pojo.entity.Indexes;
import com.cecilia.pojo.entity.Keys;
import com.cecilia.pojo.entity.tables.records.BaseUserRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row13;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* 系统用户表
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseUser extends TableImpl<BaseUserRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>cecilia.base_user</code>
*/
public static final BaseUser BASE_USER = new BaseUser();
/**
* The class holding records for this type
*/
@Override
public Class<BaseUserRecord> getRecordType() {
return BaseUserRecord.class;
}
/**
* The column <code>cecilia.base_user.id</code>.
*/
public final TableField<BaseUserRecord, Long> ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>cecilia.base_user.user_name</code>.
*/
public final TableField<BaseUserRecord, String> USER_NAME = createField(DSL.name("user_name"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>cecilia.base_user.nick_name</code>.
*/
public final TableField<BaseUserRecord, String> NICK_NAME = createField(DSL.name("nick_name"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>cecilia.base_user.identifier_account</code>.
*/
public final TableField<BaseUserRecord, String> IDENTIFIER_ACCOUNT = createField(DSL.name("identifier_account"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>cecilia.base_user.password_hash</code>.
*/
public final TableField<BaseUserRecord, String> PASSWORD_HASH = createField(DSL.name("password_hash"), SQLDataType.VARCHAR(255).defaultValue(DSL.inline("", SQLDataType.VARCHAR)), this, "");
/**
* The column <code>cecilia.base_user.identifier_token</code>.
*/
public final TableField<BaseUserRecord, String> IDENTIFIER_TOKEN = createField(DSL.name("identifier_token"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>cecilia.base_user.status</code>. 0 未激活1 可登录 2 3 禁止登录 4 已注销 5
*/
public final TableField<BaseUserRecord, Byte> STATUS = createField(DSL.name("status"), SQLDataType.TINYINT.nullable(false).defaultValue(DSL.inline("1", SQLDataType.TINYINT)), this, "0 未激活1 可登录, 2 3 禁止登录, 4 已注销, 5");
/**
* The column <code>cecilia.base_user.create_time</code>. 创建时间
*/
public final TableField<BaseUserRecord, LocalDateTime> CREATE_TIME = createField(DSL.name("create_time"), SQLDataType.LOCALDATETIME(0), this, "创建时间");
/**
* The column <code>cecilia.base_user.create_uid</code>. 创建人
*/
public final TableField<BaseUserRecord, Long> CREATE_UID = createField(DSL.name("create_uid"), SQLDataType.BIGINT, this, "创建人");
/**
* The column <code>cecilia.base_user.update_time</code>. 修改时间
*/
public final TableField<BaseUserRecord, LocalDateTime> UPDATE_TIME = createField(DSL.name("update_time"), SQLDataType.LOCALDATETIME(0), this, "修改时间");
/**
* The column <code>cecilia.base_user.update_uid</code>. 修改人
*/
public final TableField<BaseUserRecord, Long> UPDATE_UID = createField(DSL.name("update_uid"), SQLDataType.BIGINT, this, "修改人");
/**
* The column <code>cecilia.base_user.cancel_time</code>. 注销时间
*/
public final TableField<BaseUserRecord, LocalDateTime> CANCEL_TIME = createField(DSL.name("cancel_time"), SQLDataType.LOCALDATETIME(0), this, "注销时间");
/**
* The column <code>cecilia.base_user.namespace_id</code>.
*/
public final TableField<BaseUserRecord, Long> NAMESPACE_ID = createField(DSL.name("namespace_id"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.inline("0", SQLDataType.BIGINT)), this, "");
private BaseUser(Name alias, Table<BaseUserRecord> aliased) {
this(alias, aliased, null);
}
private BaseUser(Name alias, Table<BaseUserRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment("系统用户表"), TableOptions.table());
}
/**
* Create an aliased <code>cecilia.base_user</code> table reference
*/
public BaseUser(String alias) {
this(DSL.name(alias), BASE_USER);
}
/**
* Create an aliased <code>cecilia.base_user</code> table reference
*/
public BaseUser(Name alias) {
this(alias, BASE_USER);
}
/**
* Create a <code>cecilia.base_user</code> table reference
*/
public BaseUser() {
this(DSL.name("base_user"), null);
}
public <O extends Record> BaseUser(Table<O> child, ForeignKey<O, BaseUserRecord> key) {
super(child, key, BASE_USER);
}
@Override
public Schema getSchema() {
return Cecilia.CECILIA;
}
@Override
public List<Index> getIndexes() {
return Arrays.<Index>asList(Indexes.BASE_USER_IDX_SALT_PASSWORD_HASH);
}
@Override
public UniqueKey<BaseUserRecord> getPrimaryKey() {
return Keys.KEY_BASE_USER_PRIMARY;
}
@Override
public List<UniqueKey<BaseUserRecord>> getKeys() {
return Arrays.<UniqueKey<BaseUserRecord>>asList(Keys.KEY_BASE_USER_PRIMARY);
}
@Override
public BaseUser as(String alias) {
return new BaseUser(DSL.name(alias), this);
}
@Override
public BaseUser as(Name alias) {
return new BaseUser(alias, this);
}
/**
* Rename this table
*/
@Override
public BaseUser rename(String name) {
return new BaseUser(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public BaseUser rename(Name name) {
return new BaseUser(name, null);
}
// -------------------------------------------------------------------------
// Row13 type methods
// -------------------------------------------------------------------------
@Override
public Row13<Long, String, String, String, String, String, Byte, LocalDateTime, Long, LocalDateTime, Long, LocalDateTime, Long> fieldsRow() {
return (Row13) super.fieldsRow();
}
}

View File

@ -0,0 +1,194 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables;
import com.cecilia.pojo.entity.Cecilia;
import com.cecilia.pojo.entity.Keys;
import com.cecilia.pojo.entity.tables.records.BaseUserOrgsRecord;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row11;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseUserOrgs extends TableImpl<BaseUserOrgsRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>cecilia.base_user_orgs</code>
*/
public static final BaseUserOrgs BASE_USER_ORGS = new BaseUserOrgs();
/**
* The class holding records for this type
*/
@Override
public Class<BaseUserOrgsRecord> getRecordType() {
return BaseUserOrgsRecord.class;
}
/**
* The column <code>cecilia.base_user_orgs.id</code>.
*/
public final TableField<BaseUserOrgsRecord, Long> ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column <code>cecilia.base_user_orgs.user_id</code>.
*/
public final TableField<BaseUserOrgsRecord, Long> USER_ID = createField(DSL.name("user_id"), SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>cecilia.base_user_orgs.organization_id</code>.
*/
public final TableField<BaseUserOrgsRecord, Long> ORGANIZATION_ID = createField(DSL.name("organization_id"), SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column <code>cecilia.base_user_orgs.detail_id</code>.
*/
public final TableField<BaseUserOrgsRecord, Long> DETAIL_ID = createField(DSL.name("detail_id"), SQLDataType.BIGINT, this, "");
/**
* The column <code>cecilia.base_user_orgs.primary_department_flag</code>. 是否主部门0-1-
*/
public final TableField<BaseUserOrgsRecord, Byte> PRIMARY_DEPARTMENT_FLAG = createField(DSL.name("primary_department_flag"), SQLDataType.TINYINT.nullable(false).defaultValue(DSL.inline("1", SQLDataType.TINYINT)), this, "是否主部门0-否1-是");
/**
* The column <code>cecilia.base_user_orgs.delete_flag</code>.
*/
public final TableField<BaseUserOrgsRecord, Byte> DELETE_FLAG = createField(DSL.name("delete_flag"), SQLDataType.TINYINT.nullable(false).defaultValue(DSL.inline("1", SQLDataType.TINYINT)), this, "");
/**
* The column <code>cecilia.base_user_orgs.create_time</code>.
*/
public final TableField<BaseUserOrgsRecord, LocalDateTime> CREATE_TIME = createField(DSL.name("create_time"), SQLDataType.LOCALDATETIME(0), this, "");
/**
* The column <code>cecilia.base_user_orgs.create_uid</code>.
*/
public final TableField<BaseUserOrgsRecord, Long> CREATE_UID = createField(DSL.name("create_uid"), SQLDataType.BIGINT, this, "");
/**
* The column <code>cecilia.base_user_orgs.update_time</code>.
*/
public final TableField<BaseUserOrgsRecord, LocalDateTime> UPDATE_TIME = createField(DSL.name("update_time"), SQLDataType.LOCALDATETIME(0), this, "");
/**
* The column <code>cecilia.base_user_orgs.update_uid</code>.
*/
public final TableField<BaseUserOrgsRecord, Long> UPDATE_UID = createField(DSL.name("update_uid"), SQLDataType.BIGINT, this, "");
/**
* The column <code>cecilia.base_user_orgs.namespace_id</code>.
*/
public final TableField<BaseUserOrgsRecord, Long> NAMESPACE_ID = createField(DSL.name("namespace_id"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.inline("0", SQLDataType.BIGINT)), this, "");
private BaseUserOrgs(Name alias, Table<BaseUserOrgsRecord> aliased) {
this(alias, aliased, null);
}
private BaseUserOrgs(Name alias, Table<BaseUserOrgsRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>cecilia.base_user_orgs</code> table reference
*/
public BaseUserOrgs(String alias) {
this(DSL.name(alias), BASE_USER_ORGS);
}
/**
* Create an aliased <code>cecilia.base_user_orgs</code> table reference
*/
public BaseUserOrgs(Name alias) {
this(alias, BASE_USER_ORGS);
}
/**
* Create a <code>cecilia.base_user_orgs</code> table reference
*/
public BaseUserOrgs() {
this(DSL.name("base_user_orgs"), null);
}
public <O extends Record> BaseUserOrgs(Table<O> child, ForeignKey<O, BaseUserOrgsRecord> key) {
super(child, key, BASE_USER_ORGS);
}
@Override
public Schema getSchema() {
return Cecilia.CECILIA;
}
@Override
public Identity<BaseUserOrgsRecord, Long> getIdentity() {
return (Identity<BaseUserOrgsRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<BaseUserOrgsRecord> getPrimaryKey() {
return Keys.KEY_BASE_USER_ORGS_PRIMARY;
}
@Override
public List<UniqueKey<BaseUserOrgsRecord>> getKeys() {
return Arrays.<UniqueKey<BaseUserOrgsRecord>>asList(Keys.KEY_BASE_USER_ORGS_PRIMARY);
}
@Override
public BaseUserOrgs as(String alias) {
return new BaseUserOrgs(DSL.name(alias), this);
}
@Override
public BaseUserOrgs as(Name alias) {
return new BaseUserOrgs(alias, this);
}
/**
* Rename this table
*/
@Override
public BaseUserOrgs rename(String name) {
return new BaseUserOrgs(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public BaseUserOrgs rename(Name name) {
return new BaseUserOrgs(name, null);
}
// -------------------------------------------------------------------------
// Row11 type methods
// -------------------------------------------------------------------------
@Override
public Row11<Long, Long, Long, Long, Byte, Byte, LocalDateTime, Long, LocalDateTime, Long, Long> fieldsRow() {
return (Row11) super.fieldsRow();
}
}

View File

@ -81,14 +81,14 @@ public class BaseDicDao extends DAOImpl<BaseDicRecord, com.cecilia.pojo.entity.t
/**
* Fetch records that have <code>code BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfCode(Integer lowerInclusive, Integer upperInclusive) {
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfCode(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseDic.BASE_DIC.CODE, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>code IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByCode(Integer... values) {
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByCode(String... values) {
return fetch(BaseDic.BASE_DIC.CODE, values);
}
@ -107,17 +107,17 @@ public class BaseDicDao extends DAOImpl<BaseDicRecord, com.cecilia.pojo.entity.t
}
/**
* Fetch records that have <code>parenet_code BETWEEN lowerInclusive AND upperInclusive</code>
* Fetch records that have <code>parent_code BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfParenetCode(Integer lowerInclusive, Integer upperInclusive) {
return fetchRange(BaseDic.BASE_DIC.PARENET_CODE, lowerInclusive, upperInclusive);
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfParentCode(Integer lowerInclusive, Integer upperInclusive) {
return fetchRange(BaseDic.BASE_DIC.PARENT_CODE, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>parenet_code IN (values)</code>
* Fetch records that have <code>parent_code IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByParenetCode(Integer... values) {
return fetch(BaseDic.BASE_DIC.PARENET_CODE, values);
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByParentCode(Integer... values) {
return fetch(BaseDic.BASE_DIC.PARENT_CODE, values);
}
/**
@ -176,34 +176,6 @@ public class BaseDicDao extends DAOImpl<BaseDicRecord, com.cecilia.pojo.entity.t
return fetch(BaseDic.BASE_DIC.BUSINESS_VALUE, values);
}
/**
* Fetch records that have <code>filter_item BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfFilterItem(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseDic.BASE_DIC.FILTER_ITEM, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>filter_item IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByFilterItem(String... values) {
return fetch(BaseDic.BASE_DIC.FILTER_ITEM, values);
}
/**
* Fetch records that have <code>creator_uid BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfCreatorUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseDic.BASE_DIC.CREATOR_UID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>creator_uid IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByCreatorUid(Long... values) {
return fetch(BaseDic.BASE_DIC.CREATOR_UID, values);
}
/**
* Fetch records that have <code>create_time BETWEEN lowerInclusive AND upperInclusive</code>
*/
@ -219,17 +191,17 @@ public class BaseDicDao extends DAOImpl<BaseDicRecord, com.cecilia.pojo.entity.t
}
/**
* Fetch records that have <code>operator_uid BETWEEN lowerInclusive AND upperInclusive</code>
* Fetch records that have <code>create_uid BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfOperatorUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseDic.BASE_DIC.OPERATOR_UID, lowerInclusive, upperInclusive);
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfCreateUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseDic.BASE_DIC.CREATE_UID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>operator_uid IN (values)</code>
* Fetch records that have <code>create_uid IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByOperatorUid(Long... values) {
return fetch(BaseDic.BASE_DIC.OPERATOR_UID, values);
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByCreateUid(Long... values) {
return fetch(BaseDic.BASE_DIC.CREATE_UID, values);
}
/**
@ -246,6 +218,20 @@ public class BaseDicDao extends DAOImpl<BaseDicRecord, com.cecilia.pojo.entity.t
return fetch(BaseDic.BASE_DIC.UPDATE_TIME, values);
}
/**
* Fetch records that have <code>update_uid BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfUpdateUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseDic.BASE_DIC.UPDATE_UID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>update_uid IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByUpdateUid(Long... values) {
return fetch(BaseDic.BASE_DIC.UPDATE_UID, values);
}
/**
* Fetch records that have <code>delete_flag BETWEEN lowerInclusive AND upperInclusive</code>
*/
@ -263,42 +249,28 @@ public class BaseDicDao extends DAOImpl<BaseDicRecord, com.cecilia.pojo.entity.t
/**
* Fetch records that have <code>is_enable BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfIsEnable(Integer lowerInclusive, Integer upperInclusive) {
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfIsEnable(Byte lowerInclusive, Byte upperInclusive) {
return fetchRange(BaseDic.BASE_DIC.IS_ENABLE, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>is_enable IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByIsEnable(Integer... values) {
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByIsEnable(Byte... values) {
return fetch(BaseDic.BASE_DIC.IS_ENABLE, values);
}
/**
* Fetch records that have <code>app_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfAppId(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseDic.BASE_DIC.APP_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>app_id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByAppId(String... values) {
return fetch(BaseDic.BASE_DIC.APP_ID, values);
}
/**
* Fetch records that have <code>namespace_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfNamespaceId(Integer lowerInclusive, Integer upperInclusive) {
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchRangeOfNamespaceId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseDic.BASE_DIC.NAMESPACE_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>namespace_id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByNamespaceId(Integer... values) {
public List<com.cecilia.pojo.entity.tables.pojos.BaseDic> fetchByNamespaceId(Long... values) {
return fetch(BaseDic.BASE_DIC.NAMESPACE_ID, values);
}
}

View File

@ -106,20 +106,6 @@ public class BaseDicTypeDao extends DAOImpl<BaseDicTypeRecord, com.cecilia.pojo.
return fetch(BaseDicType.BASE_DIC_TYPE.ORDER, values);
}
/**
* Fetch records that have <code>creator_uid BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchRangeOfCreatorUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseDicType.BASE_DIC_TYPE.CREATOR_UID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>creator_uid IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchByCreatorUid(Long... values) {
return fetch(BaseDicType.BASE_DIC_TYPE.CREATOR_UID, values);
}
/**
* Fetch records that have <code>create_time BETWEEN lowerInclusive AND upperInclusive</code>
*/
@ -135,17 +121,17 @@ public class BaseDicTypeDao extends DAOImpl<BaseDicTypeRecord, com.cecilia.pojo.
}
/**
* Fetch records that have <code>operator_uid BETWEEN lowerInclusive AND upperInclusive</code>
* Fetch records that have <code>create_uid BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchRangeOfOperatorUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseDicType.BASE_DIC_TYPE.OPERATOR_UID, lowerInclusive, upperInclusive);
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchRangeOfCreateUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseDicType.BASE_DIC_TYPE.CREATE_UID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>operator_uid IN (values)</code>
* Fetch records that have <code>create_uid IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchByOperatorUid(Long... values) {
return fetch(BaseDicType.BASE_DIC_TYPE.OPERATOR_UID, values);
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchByCreateUid(Long... values) {
return fetch(BaseDicType.BASE_DIC_TYPE.CREATE_UID, values);
}
/**
@ -162,6 +148,20 @@ public class BaseDicTypeDao extends DAOImpl<BaseDicTypeRecord, com.cecilia.pojo.
return fetch(BaseDicType.BASE_DIC_TYPE.UPDATE_TIME, values);
}
/**
* Fetch records that have <code>update_uid BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchRangeOfUpdateUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseDicType.BASE_DIC_TYPE.UPDATE_UID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>update_uid IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchByUpdateUid(Long... values) {
return fetch(BaseDicType.BASE_DIC_TYPE.UPDATE_UID, values);
}
/**
* Fetch records that have <code>delete_flag BETWEEN lowerInclusive AND upperInclusive</code>
*/
@ -176,31 +176,17 @@ public class BaseDicTypeDao extends DAOImpl<BaseDicTypeRecord, com.cecilia.pojo.
return fetch(BaseDicType.BASE_DIC_TYPE.DELETE_FLAG, values);
}
/**
* Fetch records that have <code>app_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchRangeOfAppId(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseDicType.BASE_DIC_TYPE.APP_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>app_id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchByAppId(String... values) {
return fetch(BaseDicType.BASE_DIC_TYPE.APP_ID, values);
}
/**
* Fetch records that have <code>namespace_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchRangeOfNamespaceId(Integer lowerInclusive, Integer upperInclusive) {
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchRangeOfNamespaceId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseDicType.BASE_DIC_TYPE.NAMESPACE_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>namespace_id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchByNamespaceId(Integer... values) {
public List<com.cecilia.pojo.entity.tables.pojos.BaseDicType> fetchByNamespaceId(Long... values) {
return fetch(BaseDicType.BASE_DIC_TYPE.NAMESPACE_ID, values);
}
}

View File

@ -0,0 +1,248 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables.daos;
import com.cecilia.pojo.entity.tables.BaseOrganizations;
import com.cecilia.pojo.entity.tables.records.BaseOrganizationsRecord;
import java.time.LocalDateTime;
import java.util.List;
import org.jooq.Configuration;
import org.jooq.impl.DAOImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@Repository
public class BaseOrganizationsDao extends DAOImpl<BaseOrganizationsRecord, com.cecilia.pojo.entity.tables.pojos.BaseOrganizations, Long> {
/**
* Create a new BaseOrganizationsDao without any configuration
*/
public BaseOrganizationsDao() {
super(BaseOrganizations.BASE_ORGANIZATIONS, com.cecilia.pojo.entity.tables.pojos.BaseOrganizations.class);
}
/**
* Create a new BaseOrganizationsDao with an attached configuration
*/
@Autowired
public BaseOrganizationsDao(Configuration configuration) {
super(BaseOrganizations.BASE_ORGANIZATIONS, com.cecilia.pojo.entity.tables.pojos.BaseOrganizations.class, configuration);
}
@Override
public Long getId(com.cecilia.pojo.entity.tables.pojos.BaseOrganizations object) {
return object.getId();
}
/**
* Fetch records that have <code>id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchById(Long... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.ID, values);
}
/**
* Fetch a unique record that has <code>id = value</code>
*/
public com.cecilia.pojo.entity.tables.pojos.BaseOrganizations fetchOneById(Long value) {
return fetchOne(BaseOrganizations.BASE_ORGANIZATIONS.ID, value);
}
/**
* Fetch records that have <code>parent_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfParentId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.PARENT_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>parent_id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByParentId(Long... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.PARENT_ID, values);
}
/**
* Fetch records that have <code>org_name BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfOrgName(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.ORG_NAME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>org_name IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByOrgName(String... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.ORG_NAME, values);
}
/**
* Fetch records that have <code>org_no BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfOrgNo(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.ORG_NO, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>org_no IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByOrgNo(String... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.ORG_NO, values);
}
/**
* Fetch records that have <code>path BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfPath(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.PATH, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>path IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByPath(String... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.PATH, values);
}
/**
* Fetch records that have <code>level BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfLevel(Integer lowerInclusive, Integer upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.LEVEL, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>level IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByLevel(Integer... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.LEVEL, values);
}
/**
* Fetch records that have <code>status BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfStatus(Byte lowerInclusive, Byte upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.STATUS, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>status IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByStatus(Byte... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.STATUS, values);
}
/**
* Fetch records that have <code>group_type BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfGroupType(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.GROUP_TYPE, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>group_type IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByGroupType(String... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.GROUP_TYPE, values);
}
/**
* Fetch records that have <code>order BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfOrder(Integer lowerInclusive, Integer upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.ORDER, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>order IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByOrder(Integer... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.ORDER, values);
}
/**
* Fetch records that have <code>create_time BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.CREATE_TIME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>create_time IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByCreateTime(LocalDateTime... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.CREATE_TIME, values);
}
/**
* Fetch records that have <code>create_uid BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfCreateUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.CREATE_UID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>create_uid IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByCreateUid(Long... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.CREATE_UID, values);
}
/**
* Fetch records that have <code>update_time BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfUpdateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.UPDATE_TIME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>update_time IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByUpdateTime(LocalDateTime... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.UPDATE_TIME, values);
}
/**
* Fetch records that have <code>update_uid BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfUpdateUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.UPDATE_UID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>update_uid IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByUpdateUid(Long... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.UPDATE_UID, values);
}
/**
* Fetch records that have <code>namespace_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchRangeOfNamespaceId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseOrganizations.BASE_ORGANIZATIONS.NAMESPACE_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>namespace_id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseOrganizations> fetchByNamespaceId(Long... values) {
return fetch(BaseOrganizations.BASE_ORGANIZATIONS.NAMESPACE_ID, values);
}
}

View File

@ -0,0 +1,149 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables.daos;
import com.cecilia.pojo.entity.tables.BaseSysConfig;
import com.cecilia.pojo.entity.tables.records.BaseSysConfigRecord;
import java.util.List;
import org.jooq.Configuration;
import org.jooq.impl.DAOImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@Repository
public class BaseSysConfigDao extends DAOImpl<BaseSysConfigRecord, com.cecilia.pojo.entity.tables.pojos.BaseSysConfig, Long> {
/**
* Create a new BaseSysConfigDao without any configuration
*/
public BaseSysConfigDao() {
super(BaseSysConfig.BASE_SYS_CONFIG, com.cecilia.pojo.entity.tables.pojos.BaseSysConfig.class);
}
/**
* Create a new BaseSysConfigDao with an attached configuration
*/
@Autowired
public BaseSysConfigDao(Configuration configuration) {
super(BaseSysConfig.BASE_SYS_CONFIG, com.cecilia.pojo.entity.tables.pojos.BaseSysConfig.class, configuration);
}
@Override
public Long getId(com.cecilia.pojo.entity.tables.pojos.BaseSysConfig object) {
return object.getId();
}
/**
* Fetch records that have <code>id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchRangeOfId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseSysConfig.BASE_SYS_CONFIG.ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchById(Long... values) {
return fetch(BaseSysConfig.BASE_SYS_CONFIG.ID, values);
}
/**
* Fetch a unique record that has <code>id = value</code>
*/
public com.cecilia.pojo.entity.tables.pojos.BaseSysConfig fetchOneById(Long value) {
return fetchOne(BaseSysConfig.BASE_SYS_CONFIG.ID, value);
}
/**
* Fetch records that have <code>name BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchRangeOfName(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseSysConfig.BASE_SYS_CONFIG.NAME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>name IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchByName(String... values) {
return fetch(BaseSysConfig.BASE_SYS_CONFIG.NAME, values);
}
/**
* Fetch records that have <code>value BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchRangeOfValue(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseSysConfig.BASE_SYS_CONFIG.VALUE, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>value IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchByValue(String... values) {
return fetch(BaseSysConfig.BASE_SYS_CONFIG.VALUE, values);
}
/**
* Fetch records that have <code>description BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchRangeOfDescription(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseSysConfig.BASE_SYS_CONFIG.DESCRIPTION, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>description IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchByDescription(String... values) {
return fetch(BaseSysConfig.BASE_SYS_CONFIG.DESCRIPTION, values);
}
/**
* Fetch records that have <code>display_name BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchRangeOfDisplayName(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseSysConfig.BASE_SYS_CONFIG.DISPLAY_NAME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>display_name IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchByDisplayName(String... values) {
return fetch(BaseSysConfig.BASE_SYS_CONFIG.DISPLAY_NAME, values);
}
/**
* Fetch records that have <code>is_readonly BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchRangeOfIsReadonly(Byte lowerInclusive, Byte upperInclusive) {
return fetchRange(BaseSysConfig.BASE_SYS_CONFIG.IS_READONLY, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>is_readonly IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchByIsReadonly(Byte... values) {
return fetch(BaseSysConfig.BASE_SYS_CONFIG.IS_READONLY, values);
}
/**
* Fetch records that have <code>namespace_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchRangeOfNamespaceId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseSysConfig.BASE_SYS_CONFIG.NAMESPACE_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>namespace_id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseSysConfig> fetchByNamespaceId(Long... values) {
return fetch(BaseSysConfig.BASE_SYS_CONFIG.NAMESPACE_ID, values);
}
}

View File

@ -0,0 +1,234 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables.daos;
import com.cecilia.pojo.entity.tables.BaseUser;
import com.cecilia.pojo.entity.tables.records.BaseUserRecord;
import java.time.LocalDateTime;
import java.util.List;
import org.jooq.Configuration;
import org.jooq.impl.DAOImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
/**
* 系统用户表
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@Repository
public class BaseUserDao extends DAOImpl<BaseUserRecord, com.cecilia.pojo.entity.tables.pojos.BaseUser, Long> {
/**
* Create a new BaseUserDao without any configuration
*/
public BaseUserDao() {
super(BaseUser.BASE_USER, com.cecilia.pojo.entity.tables.pojos.BaseUser.class);
}
/**
* Create a new BaseUserDao with an attached configuration
*/
@Autowired
public BaseUserDao(Configuration configuration) {
super(BaseUser.BASE_USER, com.cecilia.pojo.entity.tables.pojos.BaseUser.class, configuration);
}
@Override
public Long getId(com.cecilia.pojo.entity.tables.pojos.BaseUser object) {
return object.getId();
}
/**
* Fetch records that have <code>id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseUser.BASE_USER.ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchById(Long... values) {
return fetch(BaseUser.BASE_USER.ID, values);
}
/**
* Fetch a unique record that has <code>id = value</code>
*/
public com.cecilia.pojo.entity.tables.pojos.BaseUser fetchOneById(Long value) {
return fetchOne(BaseUser.BASE_USER.ID, value);
}
/**
* Fetch records that have <code>user_name BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfUserName(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseUser.BASE_USER.USER_NAME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>user_name IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchByUserName(String... values) {
return fetch(BaseUser.BASE_USER.USER_NAME, values);
}
/**
* Fetch records that have <code>nick_name BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfNickName(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseUser.BASE_USER.NICK_NAME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>nick_name IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchByNickName(String... values) {
return fetch(BaseUser.BASE_USER.NICK_NAME, values);
}
/**
* Fetch records that have <code>identifier_account BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfIdentifierAccount(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseUser.BASE_USER.IDENTIFIER_ACCOUNT, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>identifier_account IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchByIdentifierAccount(String... values) {
return fetch(BaseUser.BASE_USER.IDENTIFIER_ACCOUNT, values);
}
/**
* Fetch records that have <code>password_hash BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfPasswordHash(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseUser.BASE_USER.PASSWORD_HASH, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>password_hash IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchByPasswordHash(String... values) {
return fetch(BaseUser.BASE_USER.PASSWORD_HASH, values);
}
/**
* Fetch records that have <code>identifier_token BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfIdentifierToken(String lowerInclusive, String upperInclusive) {
return fetchRange(BaseUser.BASE_USER.IDENTIFIER_TOKEN, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>identifier_token IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchByIdentifierToken(String... values) {
return fetch(BaseUser.BASE_USER.IDENTIFIER_TOKEN, values);
}
/**
* Fetch records that have <code>status BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfStatus(Byte lowerInclusive, Byte upperInclusive) {
return fetchRange(BaseUser.BASE_USER.STATUS, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>status IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchByStatus(Byte... values) {
return fetch(BaseUser.BASE_USER.STATUS, values);
}
/**
* Fetch records that have <code>create_time BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
return fetchRange(BaseUser.BASE_USER.CREATE_TIME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>create_time IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchByCreateTime(LocalDateTime... values) {
return fetch(BaseUser.BASE_USER.CREATE_TIME, values);
}
/**
* Fetch records that have <code>create_uid BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfCreateUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseUser.BASE_USER.CREATE_UID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>create_uid IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchByCreateUid(Long... values) {
return fetch(BaseUser.BASE_USER.CREATE_UID, values);
}
/**
* Fetch records that have <code>update_time BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfUpdateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
return fetchRange(BaseUser.BASE_USER.UPDATE_TIME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>update_time IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchByUpdateTime(LocalDateTime... values) {
return fetch(BaseUser.BASE_USER.UPDATE_TIME, values);
}
/**
* Fetch records that have <code>update_uid BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfUpdateUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseUser.BASE_USER.UPDATE_UID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>update_uid IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchByUpdateUid(Long... values) {
return fetch(BaseUser.BASE_USER.UPDATE_UID, values);
}
/**
* Fetch records that have <code>cancel_time BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfCancelTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
return fetchRange(BaseUser.BASE_USER.CANCEL_TIME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>cancel_time IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchByCancelTime(LocalDateTime... values) {
return fetch(BaseUser.BASE_USER.CANCEL_TIME, values);
}
/**
* Fetch records that have <code>namespace_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchRangeOfNamespaceId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseUser.BASE_USER.NAMESPACE_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>namespace_id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUser> fetchByNamespaceId(Long... values) {
return fetch(BaseUser.BASE_USER.NAMESPACE_ID, values);
}
}

View File

@ -0,0 +1,206 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables.daos;
import com.cecilia.pojo.entity.tables.BaseUserOrgs;
import com.cecilia.pojo.entity.tables.records.BaseUserOrgsRecord;
import java.time.LocalDateTime;
import java.util.List;
import org.jooq.Configuration;
import org.jooq.impl.DAOImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@Repository
public class BaseUserOrgsDao extends DAOImpl<BaseUserOrgsRecord, com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs, Long> {
/**
* Create a new BaseUserOrgsDao without any configuration
*/
public BaseUserOrgsDao() {
super(BaseUserOrgs.BASE_USER_ORGS, com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs.class);
}
/**
* Create a new BaseUserOrgsDao with an attached configuration
*/
@Autowired
public BaseUserOrgsDao(Configuration configuration) {
super(BaseUserOrgs.BASE_USER_ORGS, com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs.class, configuration);
}
@Override
public Long getId(com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs object) {
return object.getId();
}
/**
* Fetch records that have <code>id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchRangeOfId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseUserOrgs.BASE_USER_ORGS.ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchById(Long... values) {
return fetch(BaseUserOrgs.BASE_USER_ORGS.ID, values);
}
/**
* Fetch a unique record that has <code>id = value</code>
*/
public com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs fetchOneById(Long value) {
return fetchOne(BaseUserOrgs.BASE_USER_ORGS.ID, value);
}
/**
* Fetch records that have <code>user_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchRangeOfUserId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseUserOrgs.BASE_USER_ORGS.USER_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>user_id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchByUserId(Long... values) {
return fetch(BaseUserOrgs.BASE_USER_ORGS.USER_ID, values);
}
/**
* Fetch records that have <code>organization_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchRangeOfOrganizationId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseUserOrgs.BASE_USER_ORGS.ORGANIZATION_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>organization_id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchByOrganizationId(Long... values) {
return fetch(BaseUserOrgs.BASE_USER_ORGS.ORGANIZATION_ID, values);
}
/**
* Fetch records that have <code>detail_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchRangeOfDetailId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseUserOrgs.BASE_USER_ORGS.DETAIL_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>detail_id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchByDetailId(Long... values) {
return fetch(BaseUserOrgs.BASE_USER_ORGS.DETAIL_ID, values);
}
/**
* Fetch records that have <code>primary_department_flag BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchRangeOfPrimaryDepartmentFlag(Byte lowerInclusive, Byte upperInclusive) {
return fetchRange(BaseUserOrgs.BASE_USER_ORGS.PRIMARY_DEPARTMENT_FLAG, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>primary_department_flag IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchByPrimaryDepartmentFlag(Byte... values) {
return fetch(BaseUserOrgs.BASE_USER_ORGS.PRIMARY_DEPARTMENT_FLAG, values);
}
/**
* Fetch records that have <code>delete_flag BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchRangeOfDeleteFlag(Byte lowerInclusive, Byte upperInclusive) {
return fetchRange(BaseUserOrgs.BASE_USER_ORGS.DELETE_FLAG, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>delete_flag IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchByDeleteFlag(Byte... values) {
return fetch(BaseUserOrgs.BASE_USER_ORGS.DELETE_FLAG, values);
}
/**
* Fetch records that have <code>create_time BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
return fetchRange(BaseUserOrgs.BASE_USER_ORGS.CREATE_TIME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>create_time IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchByCreateTime(LocalDateTime... values) {
return fetch(BaseUserOrgs.BASE_USER_ORGS.CREATE_TIME, values);
}
/**
* Fetch records that have <code>create_uid BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchRangeOfCreateUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseUserOrgs.BASE_USER_ORGS.CREATE_UID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>create_uid IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchByCreateUid(Long... values) {
return fetch(BaseUserOrgs.BASE_USER_ORGS.CREATE_UID, values);
}
/**
* Fetch records that have <code>update_time BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchRangeOfUpdateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
return fetchRange(BaseUserOrgs.BASE_USER_ORGS.UPDATE_TIME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>update_time IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchByUpdateTime(LocalDateTime... values) {
return fetch(BaseUserOrgs.BASE_USER_ORGS.UPDATE_TIME, values);
}
/**
* Fetch records that have <code>update_uid BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchRangeOfUpdateUid(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseUserOrgs.BASE_USER_ORGS.UPDATE_UID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>update_uid IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchByUpdateUid(Long... values) {
return fetch(BaseUserOrgs.BASE_USER_ORGS.UPDATE_UID, values);
}
/**
* Fetch records that have <code>namespace_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchRangeOfNamespaceId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(BaseUserOrgs.BASE_USER_ORGS.NAMESPACE_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>namespace_id IN (values)</code>
*/
public List<com.cecilia.pojo.entity.tables.pojos.BaseUserOrgs> fetchByNamespaceId(Long... values) {
return fetch(BaseUserOrgs.BASE_USER_ORGS.NAMESPACE_ID, values);
}
}

View File

@ -89,35 +89,35 @@ public class BaseDataHoliday implements Serializable {
}
/**
* Getter for <code>darkness.base_data_holiday.id</code>. 唯一id
* Getter for <code>cecilia.base_data_holiday.id</code>. 唯一id
*/
public Integer getId() {
return this.id;
}
/**
* Setter for <code>darkness.base_data_holiday.id</code>. 唯一id
* Setter for <code>cecilia.base_data_holiday.id</code>. 唯一id
*/
public void setId(Integer id) {
this.id = id;
}
/**
* Getter for <code>darkness.base_data_holiday.date</code>. 日期
* Getter for <code>cecilia.base_data_holiday.date</code>. 日期
*/
public LocalDate getDate() {
return this.date;
}
/**
* Setter for <code>darkness.base_data_holiday.date</code>. 日期
* Setter for <code>cecilia.base_data_holiday.date</code>. 日期
*/
public void setDate(LocalDate date) {
this.date = date;
}
/**
* Getter for <code>darkness.base_data_holiday.week</code>. 周几
* Getter for <code>cecilia.base_data_holiday.week</code>. 周几
*/
@Size(max = 255)
public String getWeek() {
@ -125,28 +125,28 @@ public class BaseDataHoliday implements Serializable {
}
/**
* Setter for <code>darkness.base_data_holiday.week</code>. 周几
* Setter for <code>cecilia.base_data_holiday.week</code>. 周几
*/
public void setWeek(String week) {
this.week = week;
}
/**
* Getter for <code>darkness.base_data_holiday.nonglinian</code>. 农历年份
* Getter for <code>cecilia.base_data_holiday.nonglinian</code>. 农历年份
*/
public Integer getNonglinian() {
return this.nonglinian;
}
/**
* Setter for <code>darkness.base_data_holiday.nonglinian</code>. 农历年份
* Setter for <code>cecilia.base_data_holiday.nonglinian</code>. 农历年份
*/
public void setNonglinian(Integer nonglinian) {
this.nonglinian = nonglinian;
}
/**
* Getter for <code>darkness.base_data_holiday.nongliyue</code>. 农历月
* Getter for <code>cecilia.base_data_holiday.nongliyue</code>. 农历月
*/
@Size(max = 255)
public String getNongliyue() {
@ -154,14 +154,14 @@ public class BaseDataHoliday implements Serializable {
}
/**
* Setter for <code>darkness.base_data_holiday.nongliyue</code>. 农历月
* Setter for <code>cecilia.base_data_holiday.nongliyue</code>. 农历月
*/
public void setNongliyue(String nongliyue) {
this.nongliyue = nongliyue;
}
/**
* Getter for <code>darkness.base_data_holiday.nongliri</code>. 农历日
* Getter for <code>cecilia.base_data_holiday.nongliri</code>. 农历日
*/
@Size(max = 255)
public String getNongliri() {
@ -169,14 +169,14 @@ public class BaseDataHoliday implements Serializable {
}
/**
* Setter for <code>darkness.base_data_holiday.nongliri</code>. 农历日
* Setter for <code>cecilia.base_data_holiday.nongliri</code>. 农历日
*/
public void setNongliri(String nongliri) {
this.nongliri = nongliri;
}
/**
* Getter for <code>darkness.base_data_holiday.nianganzhi</code>.
* Getter for <code>cecilia.base_data_holiday.nianganzhi</code>.
*/
@Size(max = 255)
public String getNianganzhi() {
@ -184,14 +184,14 @@ public class BaseDataHoliday implements Serializable {
}
/**
* Setter for <code>darkness.base_data_holiday.nianganzhi</code>.
* Setter for <code>cecilia.base_data_holiday.nianganzhi</code>.
*/
public void setNianganzhi(String nianganzhi) {
this.nianganzhi = nianganzhi;
}
/**
* Getter for <code>darkness.base_data_holiday.shuxiang</code>. 生肖
* Getter for <code>cecilia.base_data_holiday.shuxiang</code>. 生肖
*/
@Size(max = 255)
public String getShuxiang() {
@ -199,14 +199,14 @@ public class BaseDataHoliday implements Serializable {
}
/**
* Setter for <code>darkness.base_data_holiday.shuxiang</code>. 生肖
* Setter for <code>cecilia.base_data_holiday.shuxiang</code>. 生肖
*/
public void setShuxiang(String shuxiang) {
this.shuxiang = shuxiang;
}
/**
* Getter for <code>darkness.base_data_holiday.str_descrip</code>. 描述
* Getter for <code>cecilia.base_data_holiday.str_descrip</code>. 描述
*/
@Size(max = 255)
public String getStrDescrip() {
@ -214,28 +214,28 @@ public class BaseDataHoliday implements Serializable {
}
/**
* Setter for <code>darkness.base_data_holiday.str_descrip</code>. 描述
* Setter for <code>cecilia.base_data_holiday.str_descrip</code>. 描述
*/
public void setStrDescrip(String strDescrip) {
this.strDescrip = strDescrip;
}
/**
* Getter for <code>darkness.base_data_holiday.towork</code>. 调休0 正常上班 1放假 2周末调休
* Getter for <code>cecilia.base_data_holiday.towork</code>. 调休0 正常上班 1放假 2周末调休
*/
public Integer getTowork() {
return this.towork;
}
/**
* Setter for <code>darkness.base_data_holiday.towork</code>. 调休0 正常上班 1放假 2周末调休
* Setter for <code>cecilia.base_data_holiday.towork</code>. 调休0 正常上班 1放假 2周末调休
*/
public void setTowork(Integer towork) {
this.towork = towork;
}
/**
* Getter for <code>darkness.base_data_holiday.gonglijieri</code>. 公历节日
* Getter for <code>cecilia.base_data_holiday.gonglijieri</code>. 公历节日
*/
@Size(max = 255)
public String getGonglijieri() {
@ -243,14 +243,14 @@ public class BaseDataHoliday implements Serializable {
}
/**
* Setter for <code>darkness.base_data_holiday.gonglijieri</code>. 公历节日
* Setter for <code>cecilia.base_data_holiday.gonglijieri</code>. 公历节日
*/
public void setGonglijieri(String gonglijieri) {
this.gonglijieri = gonglijieri;
}
/**
* Getter for <code>darkness.base_data_holiday.nonglijieri</code>. 农历节日
* Getter for <code>cecilia.base_data_holiday.nonglijieri</code>. 农历节日
*/
@Size(max = 255)
public String getNonglijieri() {
@ -258,14 +258,14 @@ public class BaseDataHoliday implements Serializable {
}
/**
* Setter for <code>darkness.base_data_holiday.nonglijieri</code>. 农历节日
* Setter for <code>cecilia.base_data_holiday.nonglijieri</code>. 农历节日
*/
public void setNonglijieri(String nonglijieri) {
this.nonglijieri = nonglijieri;
}
/**
* Getter for <code>darkness.base_data_holiday.jieqi</code>. 节气
* Getter for <code>cecilia.base_data_holiday.jieqi</code>. 节气
*/
@Size(max = 255)
public String getJieqi() {
@ -273,14 +273,14 @@ public class BaseDataHoliday implements Serializable {
}
/**
* Setter for <code>darkness.base_data_holiday.jieqi</code>. 节气
* Setter for <code>cecilia.base_data_holiday.jieqi</code>. 节气
*/
public void setJieqi(String jieqi) {
this.jieqi = jieqi;
}
/**
* Getter for <code>darkness.base_data_holiday.teshujieri</code>. 特殊节日
* Getter for <code>cecilia.base_data_holiday.teshujieri</code>. 特殊节日
*/
@Size(max = 10)
public String getTeshujieri() {
@ -288,21 +288,21 @@ public class BaseDataHoliday implements Serializable {
}
/**
* Setter for <code>darkness.base_data_holiday.teshujieri</code>. 特殊节日
* Setter for <code>cecilia.base_data_holiday.teshujieri</code>. 特殊节日
*/
public void setTeshujieri(String teshujieri) {
this.teshujieri = teshujieri;
}
/**
* Getter for <code>darkness.base_data_holiday.runyue</code>. 润月
* Getter for <code>cecilia.base_data_holiday.runyue</code>. 润月
*/
public Integer getRunyue() {
return this.runyue;
}
/**
* Setter for <code>darkness.base_data_holiday.runyue</code>. 润月
* Setter for <code>cecilia.base_data_holiday.runyue</code>. 润月
*/
public void setRunyue(Integer runyue) {
this.runyue = runyue;

View File

@ -20,22 +20,20 @@ public class BaseDic implements Serializable {
private Long id;
private String typeCode;
private Integer code;
private String code;
private String name;
private Integer parenetCode;
private Integer parentCode;
private String treeCode;
private Integer order;
private Integer level;
private String businessValue;
private String filterItem;
private Long creatorUid;
private LocalDateTime createTime;
private Long operatorUid;
private Long createUid;
private LocalDateTime updateTime;
private Long updateUid;
private Byte deleteFlag;
private Integer isEnable;
private String appId;
private Integer namespaceId;
private Byte isEnable;
private Long namespaceId;
public BaseDic() {}
@ -44,78 +42,72 @@ public class BaseDic implements Serializable {
this.typeCode = value.typeCode;
this.code = value.code;
this.name = value.name;
this.parenetCode = value.parenetCode;
this.parentCode = value.parentCode;
this.treeCode = value.treeCode;
this.order = value.order;
this.level = value.level;
this.businessValue = value.businessValue;
this.filterItem = value.filterItem;
this.creatorUid = value.creatorUid;
this.createTime = value.createTime;
this.operatorUid = value.operatorUid;
this.createUid = value.createUid;
this.updateTime = value.updateTime;
this.updateUid = value.updateUid;
this.deleteFlag = value.deleteFlag;
this.isEnable = value.isEnable;
this.appId = value.appId;
this.namespaceId = value.namespaceId;
}
public BaseDic(
Long id,
String typeCode,
Integer code,
String code,
String name,
Integer parenetCode,
Integer parentCode,
String treeCode,
Integer order,
Integer level,
String businessValue,
String filterItem,
Long creatorUid,
LocalDateTime createTime,
Long operatorUid,
Long createUid,
LocalDateTime updateTime,
Long updateUid,
Byte deleteFlag,
Integer isEnable,
String appId,
Integer namespaceId
Byte isEnable,
Long namespaceId
) {
this.id = id;
this.typeCode = typeCode;
this.code = code;
this.name = name;
this.parenetCode = parenetCode;
this.parentCode = parentCode;
this.treeCode = treeCode;
this.order = order;
this.level = level;
this.businessValue = businessValue;
this.filterItem = filterItem;
this.creatorUid = creatorUid;
this.createTime = createTime;
this.operatorUid = operatorUid;
this.createUid = createUid;
this.updateTime = updateTime;
this.updateUid = updateUid;
this.deleteFlag = deleteFlag;
this.isEnable = isEnable;
this.appId = appId;
this.namespaceId = namespaceId;
}
/**
* Getter for <code>darkness.base_dic.id</code>. 主键
* Getter for <code>cecilia.base_dic.id</code>. 主键
*/
public Long getId() {
return this.id;
}
/**
* Setter for <code>darkness.base_dic.id</code>. 主键
* Setter for <code>cecilia.base_dic.id</code>. 主键
*/
public void setId(Long id) {
this.id = id;
}
/**
* Getter for <code>darkness.base_dic.type_code</code>. 类型编码
* Getter for <code>cecilia.base_dic.type_code</code>. 类型编码
*/
@Size(max = 50)
public String getTypeCode() {
@ -123,28 +115,29 @@ public class BaseDic implements Serializable {
}
/**
* Setter for <code>darkness.base_dic.type_code</code>. 类型编码
* Setter for <code>cecilia.base_dic.type_code</code>. 类型编码
*/
public void setTypeCode(String typeCode) {
this.typeCode = typeCode;
}
/**
* Getter for <code>darkness.base_dic.code</code>. 编码
* Getter for <code>cecilia.base_dic.code</code>. 编码
*/
public Integer getCode() {
@Size(max = 10)
public String getCode() {
return this.code;
}
/**
* Setter for <code>darkness.base_dic.code</code>. 编码
* Setter for <code>cecilia.base_dic.code</code>. 编码
*/
public void setCode(Integer code) {
public void setCode(String code) {
this.code = code;
}
/**
* Getter for <code>darkness.base_dic.name</code>. 名称
* Getter for <code>cecilia.base_dic.name</code>. 名称
*/
@Size(max = 255)
public String getName() {
@ -152,28 +145,28 @@ public class BaseDic implements Serializable {
}
/**
* Setter for <code>darkness.base_dic.name</code>. 名称
* Setter for <code>cecilia.base_dic.name</code>. 名称
*/
public void setName(String name) {
this.name = name;
}
/**
* Getter for <code>darkness.base_dic.parenet_code</code>. 父编码
* Getter for <code>cecilia.base_dic.parent_code</code>. 父编码
*/
public Integer getParenetCode() {
return this.parenetCode;
public Integer getParentCode() {
return this.parentCode;
}
/**
* Setter for <code>darkness.base_dic.parenet_code</code>. 父编码
* Setter for <code>cecilia.base_dic.parent_code</code>. 父编码
*/
public void setParenetCode(Integer parenetCode) {
this.parenetCode = parenetCode;
public void setParentCode(Integer parentCode) {
this.parentCode = parentCode;
}
/**
* Getter for <code>darkness.base_dic.tree_code</code>. 树编码
* Getter for <code>cecilia.base_dic.tree_code</code>. 树编码
*/
@Size(max = 200)
public String getTreeCode() {
@ -181,42 +174,42 @@ public class BaseDic implements Serializable {
}
/**
* Setter for <code>darkness.base_dic.tree_code</code>. 树编码
* Setter for <code>cecilia.base_dic.tree_code</code>. 树编码
*/
public void setTreeCode(String treeCode) {
this.treeCode = treeCode;
}
/**
* Getter for <code>darkness.base_dic.order</code>. 排序正序
* Getter for <code>cecilia.base_dic.order</code>. 排序正序
*/
public Integer getOrder() {
return this.order;
}
/**
* Setter for <code>darkness.base_dic.order</code>. 排序正序
* Setter for <code>cecilia.base_dic.order</code>. 排序正序
*/
public void setOrder(Integer order) {
this.order = order;
}
/**
* Getter for <code>darkness.base_dic.level</code>. 级别
* Getter for <code>cecilia.base_dic.level</code>. 级别
*/
public Integer getLevel() {
return this.level;
}
/**
* Setter for <code>darkness.base_dic.level</code>. 级别
* Setter for <code>cecilia.base_dic.level</code>. 级别
*/
public void setLevel(Integer level) {
this.level = level;
}
/**
* Getter for <code>darkness.base_dic.business_value</code>. 业务数据
* Getter for <code>cecilia.base_dic.business_value</code>. 业务数据
*/
@Size(max = 255)
public String getBusinessValue() {
@ -224,137 +217,107 @@ public class BaseDic implements Serializable {
}
/**
* Setter for <code>darkness.base_dic.business_value</code>. 业务数据
* Setter for <code>cecilia.base_dic.business_value</code>. 业务数据
*/
public void setBusinessValue(String businessValue) {
this.businessValue = businessValue;
}
/**
* Getter for <code>darkness.base_dic.filter_item</code>. 过滤项
*/
@Size(max = 255)
public String getFilterItem() {
return this.filterItem;
}
/**
* Setter for <code>darkness.base_dic.filter_item</code>. 过滤项
*/
public void setFilterItem(String filterItem) {
this.filterItem = filterItem;
}
/**
* Getter for <code>darkness.base_dic.creator_uid</code>. 创建者用户id
*/
public Long getCreatorUid() {
return this.creatorUid;
}
/**
* Setter for <code>darkness.base_dic.creator_uid</code>. 创建者用户id
*/
public void setCreatorUid(Long creatorUid) {
this.creatorUid = creatorUid;
}
/**
* Getter for <code>darkness.base_dic.create_time</code>. 记录创建时间
* Getter for <code>cecilia.base_dic.create_time</code>. 记录创建时间
*/
public LocalDateTime getCreateTime() {
return this.createTime;
}
/**
* Setter for <code>darkness.base_dic.create_time</code>. 记录创建时间
* Setter for <code>cecilia.base_dic.create_time</code>. 记录创建时间
*/
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
/**
* Getter for <code>darkness.base_dic.operator_uid</code>. 更新人用户id
* Getter for <code>cecilia.base_dic.create_uid</code>. 创建者用户id
*/
public Long getOperatorUid() {
return this.operatorUid;
public Long getCreateUid() {
return this.createUid;
}
/**
* Setter for <code>darkness.base_dic.operator_uid</code>. 更新人用户id
* Setter for <code>cecilia.base_dic.create_uid</code>. 创建者用户id
*/
public void setOperatorUid(Long operatorUid) {
this.operatorUid = operatorUid;
public void setCreateUid(Long createUid) {
this.createUid = createUid;
}
/**
* Getter for <code>darkness.base_dic.update_time</code>. 记录更新时间
* Getter for <code>cecilia.base_dic.update_time</code>. 记录更新时间
*/
public LocalDateTime getUpdateTime() {
return this.updateTime;
}
/**
* Setter for <code>darkness.base_dic.update_time</code>. 记录更新时间
* Setter for <code>cecilia.base_dic.update_time</code>. 记录更新时间
*/
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
/**
* Getter for <code>darkness.base_dic.delete_flag</code>. 是否删除标识位(0未删除1已删除)
* Getter for <code>cecilia.base_dic.update_uid</code>. 更新人用户id
*/
public Long getUpdateUid() {
return this.updateUid;
}
/**
* Setter for <code>cecilia.base_dic.update_uid</code>. 更新人用户id
*/
public void setUpdateUid(Long updateUid) {
this.updateUid = updateUid;
}
/**
* Getter for <code>cecilia.base_dic.delete_flag</code>. 是否删除标识位(0未删除1已删除)
*/
public Byte getDeleteFlag() {
return this.deleteFlag;
}
/**
* Setter for <code>darkness.base_dic.delete_flag</code>. 是否删除标识位(0未删除1已删除)
* Setter for <code>cecilia.base_dic.delete_flag</code>. 是否删除标识位(0未删除1已删除)
*/
public void setDeleteFlag(Byte deleteFlag) {
this.deleteFlag = deleteFlag;
}
/**
* Getter for <code>darkness.base_dic.is_enable</code>. 是否启用
* Getter for <code>cecilia.base_dic.is_enable</code>. 是否启用
*/
public Integer getIsEnable() {
public Byte getIsEnable() {
return this.isEnable;
}
/**
* Setter for <code>darkness.base_dic.is_enable</code>. 是否启用
* Setter for <code>cecilia.base_dic.is_enable</code>. 是否启用
*/
public void setIsEnable(Integer isEnable) {
public void setIsEnable(Byte isEnable) {
this.isEnable = isEnable;
}
/**
* Getter for <code>darkness.base_dic.app_id</code>. 多应用的应用id
* Getter for <code>cecilia.base_dic.namespace_id</code>. 域空间id
*/
@Size(max = 255)
public String getAppId() {
return this.appId;
}
/**
* Setter for <code>darkness.base_dic.app_id</code>. 多应用的应用id
*/
public void setAppId(String appId) {
this.appId = appId;
}
/**
* Getter for <code>darkness.base_dic.namespace_id</code>. 域空间id
*/
public Integer getNamespaceId() {
public Long getNamespaceId() {
return this.namespaceId;
}
/**
* Setter for <code>darkness.base_dic.namespace_id</code>. 域空间id
* Setter for <code>cecilia.base_dic.namespace_id</code>. 域空间id
*/
public void setNamespaceId(Integer namespaceId) {
public void setNamespaceId(Long namespaceId) {
this.namespaceId = namespaceId;
}
@ -366,19 +329,17 @@ public class BaseDic implements Serializable {
sb.append(", ").append(typeCode);
sb.append(", ").append(code);
sb.append(", ").append(name);
sb.append(", ").append(parenetCode);
sb.append(", ").append(parentCode);
sb.append(", ").append(treeCode);
sb.append(", ").append(order);
sb.append(", ").append(level);
sb.append(", ").append(businessValue);
sb.append(", ").append(filterItem);
sb.append(", ").append(creatorUid);
sb.append(", ").append(createTime);
sb.append(", ").append(operatorUid);
sb.append(", ").append(createUid);
sb.append(", ").append(updateTime);
sb.append(", ").append(updateUid);
sb.append(", ").append(deleteFlag);
sb.append(", ").append(isEnable);
sb.append(", ").append(appId);
sb.append(", ").append(namespaceId);
sb.append(")");

View File

@ -22,13 +22,12 @@ public class BaseDicType implements Serializable {
private String typeCode;
private String typeName;
private Integer order;
private Long creatorUid;
private LocalDateTime createTime;
private Long operatorUid;
private Long createUid;
private LocalDateTime updateTime;
private Long updateUid;
private Byte deleteFlag;
private String appId;
private Integer namespaceId;
private Long namespaceId;
public BaseDicType() {}
@ -37,12 +36,11 @@ public class BaseDicType implements Serializable {
this.typeCode = value.typeCode;
this.typeName = value.typeName;
this.order = value.order;
this.creatorUid = value.creatorUid;
this.createTime = value.createTime;
this.operatorUid = value.operatorUid;
this.createUid = value.createUid;
this.updateTime = value.updateTime;
this.updateUid = value.updateUid;
this.deleteFlag = value.deleteFlag;
this.appId = value.appId;
this.namespaceId = value.namespaceId;
}
@ -51,43 +49,41 @@ public class BaseDicType implements Serializable {
String typeCode,
String typeName,
Integer order,
Long creatorUid,
LocalDateTime createTime,
Long operatorUid,
Long createUid,
LocalDateTime updateTime,
Long updateUid,
Byte deleteFlag,
String appId,
Integer namespaceId
Long namespaceId
) {
this.id = id;
this.typeCode = typeCode;
this.typeName = typeName;
this.order = order;
this.creatorUid = creatorUid;
this.createTime = createTime;
this.operatorUid = operatorUid;
this.createUid = createUid;
this.updateTime = updateTime;
this.updateUid = updateUid;
this.deleteFlag = deleteFlag;
this.appId = appId;
this.namespaceId = namespaceId;
}
/**
* Getter for <code>darkness.base_dic_type.id</code>. 主键
* Getter for <code>cecilia.base_dic_type.id</code>. 主键
*/
public Long getId() {
return this.id;
}
/**
* Setter for <code>darkness.base_dic_type.id</code>. 主键
* Setter for <code>cecilia.base_dic_type.id</code>. 主键
*/
public void setId(Long id) {
this.id = id;
}
/**
* Getter for <code>darkness.base_dic_type.type_code</code>. 类型编码
* Getter for <code>cecilia.base_dic_type.type_code</code>. 类型编码
*/
@Size(max = 50)
public String getTypeCode() {
@ -95,14 +91,14 @@ public class BaseDicType implements Serializable {
}
/**
* Setter for <code>darkness.base_dic_type.type_code</code>. 类型编码
* Setter for <code>cecilia.base_dic_type.type_code</code>. 类型编码
*/
public void setTypeCode(String typeCode) {
this.typeCode = typeCode;
}
/**
* Getter for <code>darkness.base_dic_type.type_name</code>. 名称
* Getter for <code>cecilia.base_dic_type.type_name</code>. 名称
*/
@Size(max = 20)
public String getTypeName() {
@ -110,122 +106,107 @@ public class BaseDicType implements Serializable {
}
/**
* Setter for <code>darkness.base_dic_type.type_name</code>. 名称
* Setter for <code>cecilia.base_dic_type.type_name</code>. 名称
*/
public void setTypeName(String typeName) {
this.typeName = typeName;
}
/**
* Getter for <code>darkness.base_dic_type.order</code>. 排序
* Getter for <code>cecilia.base_dic_type.order</code>. 排序
*/
public Integer getOrder() {
return this.order;
}
/**
* Setter for <code>darkness.base_dic_type.order</code>. 排序
* Setter for <code>cecilia.base_dic_type.order</code>. 排序
*/
public void setOrder(Integer order) {
this.order = order;
}
/**
* Getter for <code>darkness.base_dic_type.creator_uid</code>. 创建者用户id
*/
public Long getCreatorUid() {
return this.creatorUid;
}
/**
* Setter for <code>darkness.base_dic_type.creator_uid</code>. 创建者用户id
*/
public void setCreatorUid(Long creatorUid) {
this.creatorUid = creatorUid;
}
/**
* Getter for <code>darkness.base_dic_type.create_time</code>. 记录创建时间
* Getter for <code>cecilia.base_dic_type.create_time</code>. 记录创建时间
*/
public LocalDateTime getCreateTime() {
return this.createTime;
}
/**
* Setter for <code>darkness.base_dic_type.create_time</code>. 记录创建时间
* Setter for <code>cecilia.base_dic_type.create_time</code>. 记录创建时间
*/
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
/**
* Getter for <code>darkness.base_dic_type.operator_uid</code>. 更新人用户id
* Getter for <code>cecilia.base_dic_type.create_uid</code>. 创建者用户id
*/
public Long getOperatorUid() {
return this.operatorUid;
public Long getCreateUid() {
return this.createUid;
}
/**
* Setter for <code>darkness.base_dic_type.operator_uid</code>. 更新人用户id
* Setter for <code>cecilia.base_dic_type.create_uid</code>. 创建者用户id
*/
public void setOperatorUid(Long operatorUid) {
this.operatorUid = operatorUid;
public void setCreateUid(Long createUid) {
this.createUid = createUid;
}
/**
* Getter for <code>darkness.base_dic_type.update_time</code>. 记录更新时间
* Getter for <code>cecilia.base_dic_type.update_time</code>. 记录更新时间
*/
public LocalDateTime getUpdateTime() {
return this.updateTime;
}
/**
* Setter for <code>darkness.base_dic_type.update_time</code>. 记录更新时间
* Setter for <code>cecilia.base_dic_type.update_time</code>. 记录更新时间
*/
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
/**
* Getter for <code>darkness.base_dic_type.delete_flag</code>. 是否删除标识位(0未删除1已删除)
* Getter for <code>cecilia.base_dic_type.update_uid</code>. 更新人用户id
*/
public Long getUpdateUid() {
return this.updateUid;
}
/**
* Setter for <code>cecilia.base_dic_type.update_uid</code>. 更新人用户id
*/
public void setUpdateUid(Long updateUid) {
this.updateUid = updateUid;
}
/**
* Getter for <code>cecilia.base_dic_type.delete_flag</code>. 是否删除标识位(0未删除1已删除)
*/
public Byte getDeleteFlag() {
return this.deleteFlag;
}
/**
* Setter for <code>darkness.base_dic_type.delete_flag</code>. 是否删除标识位(0未删除1已删除)
* Setter for <code>cecilia.base_dic_type.delete_flag</code>. 是否删除标识位(0未删除1已删除)
*/
public void setDeleteFlag(Byte deleteFlag) {
this.deleteFlag = deleteFlag;
}
/**
* Getter for <code>darkness.base_dic_type.app_id</code>. 多应用的应用id
* Getter for <code>cecilia.base_dic_type.namespace_id</code>. 域空间id
*/
@Size(max = 255)
public String getAppId() {
return this.appId;
}
/**
* Setter for <code>darkness.base_dic_type.app_id</code>. 多应用的应用id
*/
public void setAppId(String appId) {
this.appId = appId;
}
/**
* Getter for <code>darkness.base_dic_type.namespace_id</code>. 域空间id
*/
public Integer getNamespaceId() {
public Long getNamespaceId() {
return this.namespaceId;
}
/**
* Setter for <code>darkness.base_dic_type.namespace_id</code>. 域空间id
* Setter for <code>cecilia.base_dic_type.namespace_id</code>. 域空间id
*/
public void setNamespaceId(Integer namespaceId) {
public void setNamespaceId(Long namespaceId) {
this.namespaceId = namespaceId;
}
@ -237,12 +218,11 @@ public class BaseDicType implements Serializable {
sb.append(", ").append(typeCode);
sb.append(", ").append(typeName);
sb.append(", ").append(order);
sb.append(", ").append(creatorUid);
sb.append(", ").append(createTime);
sb.append(", ").append(operatorUid);
sb.append(", ").append(createUid);
sb.append(", ").append(updateTime);
sb.append(", ").append(updateUid);
sb.append(", ").append(deleteFlag);
sb.append(", ").append(appId);
sb.append(", ").append(namespaceId);
sb.append(")");

View File

@ -0,0 +1,309 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables.pojos;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.validation.constraints.Size;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseOrganizations implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
private Long parentId;
private String orgName;
private String orgNo;
private String path;
private Integer level;
private Byte status;
private String groupType;
private Integer order;
private LocalDateTime createTime;
private Long createUid;
private LocalDateTime updateTime;
private Long updateUid;
private Long namespaceId;
public BaseOrganizations() {}
public BaseOrganizations(BaseOrganizations value) {
this.id = value.id;
this.parentId = value.parentId;
this.orgName = value.orgName;
this.orgNo = value.orgNo;
this.path = value.path;
this.level = value.level;
this.status = value.status;
this.groupType = value.groupType;
this.order = value.order;
this.createTime = value.createTime;
this.createUid = value.createUid;
this.updateTime = value.updateTime;
this.updateUid = value.updateUid;
this.namespaceId = value.namespaceId;
}
public BaseOrganizations(
Long id,
Long parentId,
String orgName,
String orgNo,
String path,
Integer level,
Byte status,
String groupType,
Integer order,
LocalDateTime createTime,
Long createUid,
LocalDateTime updateTime,
Long updateUid,
Long namespaceId
) {
this.id = id;
this.parentId = parentId;
this.orgName = orgName;
this.orgNo = orgNo;
this.path = path;
this.level = level;
this.status = status;
this.groupType = groupType;
this.order = order;
this.createTime = createTime;
this.createUid = createUid;
this.updateTime = updateTime;
this.updateUid = updateUid;
this.namespaceId = namespaceId;
}
/**
* Getter for <code>cecilia.base_organizations.id</code>.
*/
public Long getId() {
return this.id;
}
/**
* Setter for <code>cecilia.base_organizations.id</code>.
*/
public void setId(Long id) {
this.id = id;
}
/**
* Getter for <code>cecilia.base_organizations.parent_id</code>.
*/
public Long getParentId() {
return this.parentId;
}
/**
* Setter for <code>cecilia.base_organizations.parent_id</code>.
*/
public void setParentId(Long parentId) {
this.parentId = parentId;
}
/**
* Getter for <code>cecilia.base_organizations.org_name</code>.
*/
@Size(max = 255)
public String getOrgName() {
return this.orgName;
}
/**
* Setter for <code>cecilia.base_organizations.org_name</code>.
*/
public void setOrgName(String orgName) {
this.orgName = orgName;
}
/**
* Getter for <code>cecilia.base_organizations.org_no</code>. 部门编号(仅group_type=DEPARTMENT才有)
*/
@Size(max = 512)
public String getOrgNo() {
return this.orgNo;
}
/**
* Setter for <code>cecilia.base_organizations.org_no</code>. 部门编号(仅group_type=DEPARTMENT才有)
*/
public void setOrgNo(String orgNo) {
this.orgNo = orgNo;
}
/**
* Getter for <code>cecilia.base_organizations.path</code>.
*/
@Size(max = 255)
public String getPath() {
return this.path;
}
/**
* Setter for <code>cecilia.base_organizations.path</code>.
*/
public void setPath(String path) {
this.path = path;
}
/**
* Getter for <code>cecilia.base_organizations.level</code>.
*/
public Integer getLevel() {
return this.level;
}
/**
* Setter for <code>cecilia.base_organizations.level</code>.
*/
public void setLevel(Integer level) {
this.level = level;
}
/**
* Getter for <code>cecilia.base_organizations.status</code>. 1: inactive, 2: active, 3: locked, 4: mark as deleted
*/
public Byte getStatus() {
return this.status;
}
/**
* Setter for <code>cecilia.base_organizations.status</code>. 1: inactive, 2: active, 3: locked, 4: mark as deleted
*/
public void setStatus(Byte status) {
this.status = status;
}
/**
* Getter for <code>cecilia.base_organizations.group_type</code>. ENTERPRISE, DEPARTMENT, GROUP, JOB_POSITION, JOB_LEVEL, MANAGER
*/
@Size(max = 64)
public String getGroupType() {
return this.groupType;
}
/**
* Setter for <code>cecilia.base_organizations.group_type</code>. ENTERPRISE, DEPARTMENT, GROUP, JOB_POSITION, JOB_LEVEL, MANAGER
*/
public void setGroupType(String groupType) {
this.groupType = groupType;
}
/**
* Getter for <code>cecilia.base_organizations.order</code>.
*/
public Integer getOrder() {
return this.order;
}
/**
* Setter for <code>cecilia.base_organizations.order</code>.
*/
public void setOrder(Integer order) {
this.order = order;
}
/**
* Getter for <code>cecilia.base_organizations.create_time</code>.
*/
public LocalDateTime getCreateTime() {
return this.createTime;
}
/**
* Setter for <code>cecilia.base_organizations.create_time</code>.
*/
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
/**
* Getter for <code>cecilia.base_organizations.create_uid</code>.
*/
public Long getCreateUid() {
return this.createUid;
}
/**
* Setter for <code>cecilia.base_organizations.create_uid</code>.
*/
public void setCreateUid(Long createUid) {
this.createUid = createUid;
}
/**
* Getter for <code>cecilia.base_organizations.update_time</code>.
*/
public LocalDateTime getUpdateTime() {
return this.updateTime;
}
/**
* Setter for <code>cecilia.base_organizations.update_time</code>.
*/
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
/**
* Getter for <code>cecilia.base_organizations.update_uid</code>.
*/
public Long getUpdateUid() {
return this.updateUid;
}
/**
* Setter for <code>cecilia.base_organizations.update_uid</code>.
*/
public void setUpdateUid(Long updateUid) {
this.updateUid = updateUid;
}
/**
* Getter for <code>cecilia.base_organizations.namespace_id</code>.
*/
public Long getNamespaceId() {
return this.namespaceId;
}
/**
* Setter for <code>cecilia.base_organizations.namespace_id</code>.
*/
public void setNamespaceId(Long namespaceId) {
this.namespaceId = namespaceId;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("BaseOrganizations (");
sb.append(id);
sb.append(", ").append(parentId);
sb.append(", ").append(orgName);
sb.append(", ").append(orgNo);
sb.append(", ").append(path);
sb.append(", ").append(level);
sb.append(", ").append(status);
sb.append(", ").append(groupType);
sb.append(", ").append(order);
sb.append(", ").append(createTime);
sb.append(", ").append(createUid);
sb.append(", ").append(updateTime);
sb.append(", ").append(updateUid);
sb.append(", ").append(namespaceId);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,177 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables.pojos;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseSysConfig implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
private String name;
private String value;
private String description;
private String displayName;
private Byte isReadonly;
private Long namespaceId;
public BaseSysConfig() {}
public BaseSysConfig(BaseSysConfig value) {
this.id = value.id;
this.name = value.name;
this.value = value.value;
this.description = value.description;
this.displayName = value.displayName;
this.isReadonly = value.isReadonly;
this.namespaceId = value.namespaceId;
}
public BaseSysConfig(
Long id,
String name,
String value,
String description,
String displayName,
Byte isReadonly,
Long namespaceId
) {
this.id = id;
this.name = name;
this.value = value;
this.description = description;
this.displayName = displayName;
this.isReadonly = isReadonly;
this.namespaceId = namespaceId;
}
/**
* Getter for <code>cecilia.base_sys_config.id</code>.
*/
public Long getId() {
return this.id;
}
/**
* Setter for <code>cecilia.base_sys_config.id</code>.
*/
public void setId(Long id) {
this.id = id;
}
/**
* Getter for <code>cecilia.base_sys_config.name</code>.
*/
@NotNull
@Size(max = 255)
public String getName() {
return this.name;
}
/**
* Setter for <code>cecilia.base_sys_config.name</code>.
*/
public void setName(String name) {
this.name = name;
}
/**
* Getter for <code>cecilia.base_sys_config.value</code>.
*/
@Size(max = 65535)
public String getValue() {
return this.value;
}
/**
* Setter for <code>cecilia.base_sys_config.value</code>.
*/
public void setValue(String value) {
this.value = value;
}
/**
* Getter for <code>cecilia.base_sys_config.description</code>.
*/
@Size(max = 255)
public String getDescription() {
return this.description;
}
/**
* Setter for <code>cecilia.base_sys_config.description</code>.
*/
public void setDescription(String description) {
this.description = description;
}
/**
* Getter for <code>cecilia.base_sys_config.display_name</code>.
*/
@Size(max = 128)
public String getDisplayName() {
return this.displayName;
}
/**
* Setter for <code>cecilia.base_sys_config.display_name</code>.
*/
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
/**
* Getter for <code>cecilia.base_sys_config.is_readonly</code>. 是否只读0 1是
*/
public Byte getIsReadonly() {
return this.isReadonly;
}
/**
* Setter for <code>cecilia.base_sys_config.is_readonly</code>. 是否只读0 1是
*/
public void setIsReadonly(Byte isReadonly) {
this.isReadonly = isReadonly;
}
/**
* Getter for <code>cecilia.base_sys_config.namespace_id</code>.
*/
public Long getNamespaceId() {
return this.namespaceId;
}
/**
* Setter for <code>cecilia.base_sys_config.namespace_id</code>.
*/
public void setNamespaceId(Long namespaceId) {
this.namespaceId = namespaceId;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("BaseSysConfig (");
sb.append(id);
sb.append(", ").append(name);
sb.append(", ").append(value);
sb.append(", ").append(description);
sb.append(", ").append(displayName);
sb.append(", ").append(isReadonly);
sb.append(", ").append(namespaceId);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,293 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables.pojos;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* 系统用户表
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseUser implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
private String userName;
private String nickName;
private String identifierAccount;
private String passwordHash;
private String identifierToken;
private Byte status;
private LocalDateTime createTime;
private Long createUid;
private LocalDateTime updateTime;
private Long updateUid;
private LocalDateTime cancelTime;
private Long namespaceId;
public BaseUser() {}
public BaseUser(BaseUser value) {
this.id = value.id;
this.userName = value.userName;
this.nickName = value.nickName;
this.identifierAccount = value.identifierAccount;
this.passwordHash = value.passwordHash;
this.identifierToken = value.identifierToken;
this.status = value.status;
this.createTime = value.createTime;
this.createUid = value.createUid;
this.updateTime = value.updateTime;
this.updateUid = value.updateUid;
this.cancelTime = value.cancelTime;
this.namespaceId = value.namespaceId;
}
public BaseUser(
Long id,
String userName,
String nickName,
String identifierAccount,
String passwordHash,
String identifierToken,
Byte status,
LocalDateTime createTime,
Long createUid,
LocalDateTime updateTime,
Long updateUid,
LocalDateTime cancelTime,
Long namespaceId
) {
this.id = id;
this.userName = userName;
this.nickName = nickName;
this.identifierAccount = identifierAccount;
this.passwordHash = passwordHash;
this.identifierToken = identifierToken;
this.status = status;
this.createTime = createTime;
this.createUid = createUid;
this.updateTime = updateTime;
this.updateUid = updateUid;
this.cancelTime = cancelTime;
this.namespaceId = namespaceId;
}
/**
* Getter for <code>cecilia.base_user.id</code>.
*/
@NotNull
public Long getId() {
return this.id;
}
/**
* Setter for <code>cecilia.base_user.id</code>.
*/
public void setId(Long id) {
this.id = id;
}
/**
* Getter for <code>cecilia.base_user.user_name</code>.
*/
@Size(max = 255)
public String getUserName() {
return this.userName;
}
/**
* Setter for <code>cecilia.base_user.user_name</code>.
*/
public void setUserName(String userName) {
this.userName = userName;
}
/**
* Getter for <code>cecilia.base_user.nick_name</code>.
*/
@Size(max = 255)
public String getNickName() {
return this.nickName;
}
/**
* Setter for <code>cecilia.base_user.nick_name</code>.
*/
public void setNickName(String nickName) {
this.nickName = nickName;
}
/**
* Getter for <code>cecilia.base_user.identifier_account</code>.
*/
@Size(max = 255)
public String getIdentifierAccount() {
return this.identifierAccount;
}
/**
* Setter for <code>cecilia.base_user.identifier_account</code>.
*/
public void setIdentifierAccount(String identifierAccount) {
this.identifierAccount = identifierAccount;
}
/**
* Getter for <code>cecilia.base_user.password_hash</code>.
*/
@Size(max = 255)
public String getPasswordHash() {
return this.passwordHash;
}
/**
* Setter for <code>cecilia.base_user.password_hash</code>.
*/
public void setPasswordHash(String passwordHash) {
this.passwordHash = passwordHash;
}
/**
* Getter for <code>cecilia.base_user.identifier_token</code>.
*/
@Size(max = 255)
public String getIdentifierToken() {
return this.identifierToken;
}
/**
* Setter for <code>cecilia.base_user.identifier_token</code>.
*/
public void setIdentifierToken(String identifierToken) {
this.identifierToken = identifierToken;
}
/**
* Getter for <code>cecilia.base_user.status</code>. 0 未激活1 可登录 2 3 禁止登录 4 已注销 5
*/
public Byte getStatus() {
return this.status;
}
/**
* Setter for <code>cecilia.base_user.status</code>. 0 未激活1 可登录 2 3 禁止登录 4 已注销 5
*/
public void setStatus(Byte status) {
this.status = status;
}
/**
* Getter for <code>cecilia.base_user.create_time</code>. 创建时间
*/
public LocalDateTime getCreateTime() {
return this.createTime;
}
/**
* Setter for <code>cecilia.base_user.create_time</code>. 创建时间
*/
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
/**
* Getter for <code>cecilia.base_user.create_uid</code>. 创建人
*/
public Long getCreateUid() {
return this.createUid;
}
/**
* Setter for <code>cecilia.base_user.create_uid</code>. 创建人
*/
public void setCreateUid(Long createUid) {
this.createUid = createUid;
}
/**
* Getter for <code>cecilia.base_user.update_time</code>. 修改时间
*/
public LocalDateTime getUpdateTime() {
return this.updateTime;
}
/**
* Setter for <code>cecilia.base_user.update_time</code>. 修改时间
*/
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
/**
* Getter for <code>cecilia.base_user.update_uid</code>. 修改人
*/
public Long getUpdateUid() {
return this.updateUid;
}
/**
* Setter for <code>cecilia.base_user.update_uid</code>. 修改人
*/
public void setUpdateUid(Long updateUid) {
this.updateUid = updateUid;
}
/**
* Getter for <code>cecilia.base_user.cancel_time</code>. 注销时间
*/
public LocalDateTime getCancelTime() {
return this.cancelTime;
}
/**
* Setter for <code>cecilia.base_user.cancel_time</code>. 注销时间
*/
public void setCancelTime(LocalDateTime cancelTime) {
this.cancelTime = cancelTime;
}
/**
* Getter for <code>cecilia.base_user.namespace_id</code>.
*/
public Long getNamespaceId() {
return this.namespaceId;
}
/**
* Setter for <code>cecilia.base_user.namespace_id</code>.
*/
public void setNamespaceId(Long namespaceId) {
this.namespaceId = namespaceId;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("BaseUser (");
sb.append(id);
sb.append(", ").append(userName);
sb.append(", ").append(nickName);
sb.append(", ").append(identifierAccount);
sb.append(", ").append(passwordHash);
sb.append(", ").append(identifierToken);
sb.append(", ").append(status);
sb.append(", ").append(createTime);
sb.append(", ").append(createUid);
sb.append(", ").append(updateTime);
sb.append(", ").append(updateUid);
sb.append(", ").append(cancelTime);
sb.append(", ").append(namespaceId);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,250 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables.pojos;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.validation.constraints.NotNull;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseUserOrgs implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
private Long userId;
private Long organizationId;
private Long detailId;
private Byte primaryDepartmentFlag;
private Byte deleteFlag;
private LocalDateTime createTime;
private Long createUid;
private LocalDateTime updateTime;
private Long updateUid;
private Long namespaceId;
public BaseUserOrgs() {}
public BaseUserOrgs(BaseUserOrgs value) {
this.id = value.id;
this.userId = value.userId;
this.organizationId = value.organizationId;
this.detailId = value.detailId;
this.primaryDepartmentFlag = value.primaryDepartmentFlag;
this.deleteFlag = value.deleteFlag;
this.createTime = value.createTime;
this.createUid = value.createUid;
this.updateTime = value.updateTime;
this.updateUid = value.updateUid;
this.namespaceId = value.namespaceId;
}
public BaseUserOrgs(
Long id,
Long userId,
Long organizationId,
Long detailId,
Byte primaryDepartmentFlag,
Byte deleteFlag,
LocalDateTime createTime,
Long createUid,
LocalDateTime updateTime,
Long updateUid,
Long namespaceId
) {
this.id = id;
this.userId = userId;
this.organizationId = organizationId;
this.detailId = detailId;
this.primaryDepartmentFlag = primaryDepartmentFlag;
this.deleteFlag = deleteFlag;
this.createTime = createTime;
this.createUid = createUid;
this.updateTime = updateTime;
this.updateUid = updateUid;
this.namespaceId = namespaceId;
}
/**
* Getter for <code>cecilia.base_user_orgs.id</code>.
*/
public Long getId() {
return this.id;
}
/**
* Setter for <code>cecilia.base_user_orgs.id</code>.
*/
public void setId(Long id) {
this.id = id;
}
/**
* Getter for <code>cecilia.base_user_orgs.user_id</code>.
*/
@NotNull
public Long getUserId() {
return this.userId;
}
/**
* Setter for <code>cecilia.base_user_orgs.user_id</code>.
*/
public void setUserId(Long userId) {
this.userId = userId;
}
/**
* Getter for <code>cecilia.base_user_orgs.organization_id</code>.
*/
@NotNull
public Long getOrganizationId() {
return this.organizationId;
}
/**
* Setter for <code>cecilia.base_user_orgs.organization_id</code>.
*/
public void setOrganizationId(Long organizationId) {
this.organizationId = organizationId;
}
/**
* Getter for <code>cecilia.base_user_orgs.detail_id</code>.
*/
public Long getDetailId() {
return this.detailId;
}
/**
* Setter for <code>cecilia.base_user_orgs.detail_id</code>.
*/
public void setDetailId(Long detailId) {
this.detailId = detailId;
}
/**
* Getter for <code>cecilia.base_user_orgs.primary_department_flag</code>. 是否主部门0-1-
*/
public Byte getPrimaryDepartmentFlag() {
return this.primaryDepartmentFlag;
}
/**
* Setter for <code>cecilia.base_user_orgs.primary_department_flag</code>. 是否主部门0-1-
*/
public void setPrimaryDepartmentFlag(Byte primaryDepartmentFlag) {
this.primaryDepartmentFlag = primaryDepartmentFlag;
}
/**
* Getter for <code>cecilia.base_user_orgs.delete_flag</code>.
*/
public Byte getDeleteFlag() {
return this.deleteFlag;
}
/**
* Setter for <code>cecilia.base_user_orgs.delete_flag</code>.
*/
public void setDeleteFlag(Byte deleteFlag) {
this.deleteFlag = deleteFlag;
}
/**
* Getter for <code>cecilia.base_user_orgs.create_time</code>.
*/
public LocalDateTime getCreateTime() {
return this.createTime;
}
/**
* Setter for <code>cecilia.base_user_orgs.create_time</code>.
*/
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
/**
* Getter for <code>cecilia.base_user_orgs.create_uid</code>.
*/
public Long getCreateUid() {
return this.createUid;
}
/**
* Setter for <code>cecilia.base_user_orgs.create_uid</code>.
*/
public void setCreateUid(Long createUid) {
this.createUid = createUid;
}
/**
* Getter for <code>cecilia.base_user_orgs.update_time</code>.
*/
public LocalDateTime getUpdateTime() {
return this.updateTime;
}
/**
* Setter for <code>cecilia.base_user_orgs.update_time</code>.
*/
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
/**
* Getter for <code>cecilia.base_user_orgs.update_uid</code>.
*/
public Long getUpdateUid() {
return this.updateUid;
}
/**
* Setter for <code>cecilia.base_user_orgs.update_uid</code>.
*/
public void setUpdateUid(Long updateUid) {
this.updateUid = updateUid;
}
/**
* Getter for <code>cecilia.base_user_orgs.namespace_id</code>.
*/
public Long getNamespaceId() {
return this.namespaceId;
}
/**
* Setter for <code>cecilia.base_user_orgs.namespace_id</code>.
*/
public void setNamespaceId(Long namespaceId) {
this.namespaceId = namespaceId;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("BaseUserOrgs (");
sb.append(id);
sb.append(", ").append(userId);
sb.append(", ").append(organizationId);
sb.append(", ").append(detailId);
sb.append(", ").append(primaryDepartmentFlag);
sb.append(", ").append(deleteFlag);
sb.append(", ").append(createTime);
sb.append(", ").append(createUid);
sb.append(", ").append(updateTime);
sb.append(", ").append(updateUid);
sb.append(", ").append(namespaceId);
sb.append(")");
return sb.toString();
}
}

View File

@ -26,42 +26,42 @@ public class BaseDataHolidayRecord extends UpdatableRecordImpl<BaseDataHolidayRe
private static final long serialVersionUID = 1L;
/**
* Setter for <code>darkness.base_data_holiday.id</code>. 唯一id
* Setter for <code>cecilia.base_data_holiday.id</code>. 唯一id
*/
public void setId(Integer value) {
set(0, value);
}
/**
* Getter for <code>darkness.base_data_holiday.id</code>. 唯一id
* Getter for <code>cecilia.base_data_holiday.id</code>. 唯一id
*/
public Integer getId() {
return (Integer) get(0);
}
/**
* Setter for <code>darkness.base_data_holiday.date</code>. 日期
* Setter for <code>cecilia.base_data_holiday.date</code>. 日期
*/
public void setDate(LocalDate value) {
set(1, value);
}
/**
* Getter for <code>darkness.base_data_holiday.date</code>. 日期
* Getter for <code>cecilia.base_data_holiday.date</code>. 日期
*/
public LocalDate getDate() {
return (LocalDate) get(1);
}
/**
* Setter for <code>darkness.base_data_holiday.week</code>. 周几
* Setter for <code>cecilia.base_data_holiday.week</code>. 周几
*/
public void setWeek(String value) {
set(2, value);
}
/**
* Getter for <code>darkness.base_data_holiday.week</code>. 周几
* Getter for <code>cecilia.base_data_holiday.week</code>. 周几
*/
@Size(max = 255)
public String getWeek() {
@ -69,28 +69,28 @@ public class BaseDataHolidayRecord extends UpdatableRecordImpl<BaseDataHolidayRe
}
/**
* Setter for <code>darkness.base_data_holiday.nonglinian</code>. 农历年份
* Setter for <code>cecilia.base_data_holiday.nonglinian</code>. 农历年份
*/
public void setNonglinian(Integer value) {
set(3, value);
}
/**
* Getter for <code>darkness.base_data_holiday.nonglinian</code>. 农历年份
* Getter for <code>cecilia.base_data_holiday.nonglinian</code>. 农历年份
*/
public Integer getNonglinian() {
return (Integer) get(3);
}
/**
* Setter for <code>darkness.base_data_holiday.nongliyue</code>. 农历月
* Setter for <code>cecilia.base_data_holiday.nongliyue</code>. 农历月
*/
public void setNongliyue(String value) {
set(4, value);
}
/**
* Getter for <code>darkness.base_data_holiday.nongliyue</code>. 农历月
* Getter for <code>cecilia.base_data_holiday.nongliyue</code>. 农历月
*/
@Size(max = 255)
public String getNongliyue() {
@ -98,14 +98,14 @@ public class BaseDataHolidayRecord extends UpdatableRecordImpl<BaseDataHolidayRe
}
/**
* Setter for <code>darkness.base_data_holiday.nongliri</code>. 农历日
* Setter for <code>cecilia.base_data_holiday.nongliri</code>. 农历日
*/
public void setNongliri(String value) {
set(5, value);
}
/**
* Getter for <code>darkness.base_data_holiday.nongliri</code>. 农历日
* Getter for <code>cecilia.base_data_holiday.nongliri</code>. 农历日
*/
@Size(max = 255)
public String getNongliri() {
@ -113,14 +113,14 @@ public class BaseDataHolidayRecord extends UpdatableRecordImpl<BaseDataHolidayRe
}
/**
* Setter for <code>darkness.base_data_holiday.nianganzhi</code>.
* Setter for <code>cecilia.base_data_holiday.nianganzhi</code>.
*/
public void setNianganzhi(String value) {
set(6, value);
}
/**
* Getter for <code>darkness.base_data_holiday.nianganzhi</code>.
* Getter for <code>cecilia.base_data_holiday.nianganzhi</code>.
*/
@Size(max = 255)
public String getNianganzhi() {
@ -128,14 +128,14 @@ public class BaseDataHolidayRecord extends UpdatableRecordImpl<BaseDataHolidayRe
}
/**
* Setter for <code>darkness.base_data_holiday.shuxiang</code>. 生肖
* Setter for <code>cecilia.base_data_holiday.shuxiang</code>. 生肖
*/
public void setShuxiang(String value) {
set(7, value);
}
/**
* Getter for <code>darkness.base_data_holiday.shuxiang</code>. 生肖
* Getter for <code>cecilia.base_data_holiday.shuxiang</code>. 生肖
*/
@Size(max = 255)
public String getShuxiang() {
@ -143,14 +143,14 @@ public class BaseDataHolidayRecord extends UpdatableRecordImpl<BaseDataHolidayRe
}
/**
* Setter for <code>darkness.base_data_holiday.str_descrip</code>. 描述
* Setter for <code>cecilia.base_data_holiday.str_descrip</code>. 描述
*/
public void setStrDescrip(String value) {
set(8, value);
}
/**
* Getter for <code>darkness.base_data_holiday.str_descrip</code>. 描述
* Getter for <code>cecilia.base_data_holiday.str_descrip</code>. 描述
*/
@Size(max = 255)
public String getStrDescrip() {
@ -158,28 +158,28 @@ public class BaseDataHolidayRecord extends UpdatableRecordImpl<BaseDataHolidayRe
}
/**
* Setter for <code>darkness.base_data_holiday.towork</code>. 调休0 正常上班 1放假 2周末调休
* Setter for <code>cecilia.base_data_holiday.towork</code>. 调休0 正常上班 1放假 2周末调休
*/
public void setTowork(Integer value) {
set(9, value);
}
/**
* Getter for <code>darkness.base_data_holiday.towork</code>. 调休0 正常上班 1放假 2周末调休
* Getter for <code>cecilia.base_data_holiday.towork</code>. 调休0 正常上班 1放假 2周末调休
*/
public Integer getTowork() {
return (Integer) get(9);
}
/**
* Setter for <code>darkness.base_data_holiday.gonglijieri</code>. 公历节日
* Setter for <code>cecilia.base_data_holiday.gonglijieri</code>. 公历节日
*/
public void setGonglijieri(String value) {
set(10, value);
}
/**
* Getter for <code>darkness.base_data_holiday.gonglijieri</code>. 公历节日
* Getter for <code>cecilia.base_data_holiday.gonglijieri</code>. 公历节日
*/
@Size(max = 255)
public String getGonglijieri() {
@ -187,14 +187,14 @@ public class BaseDataHolidayRecord extends UpdatableRecordImpl<BaseDataHolidayRe
}
/**
* Setter for <code>darkness.base_data_holiday.nonglijieri</code>. 农历节日
* Setter for <code>cecilia.base_data_holiday.nonglijieri</code>. 农历节日
*/
public void setNonglijieri(String value) {
set(11, value);
}
/**
* Getter for <code>darkness.base_data_holiday.nonglijieri</code>. 农历节日
* Getter for <code>cecilia.base_data_holiday.nonglijieri</code>. 农历节日
*/
@Size(max = 255)
public String getNonglijieri() {
@ -202,14 +202,14 @@ public class BaseDataHolidayRecord extends UpdatableRecordImpl<BaseDataHolidayRe
}
/**
* Setter for <code>darkness.base_data_holiday.jieqi</code>. 节气
* Setter for <code>cecilia.base_data_holiday.jieqi</code>. 节气
*/
public void setJieqi(String value) {
set(12, value);
}
/**
* Getter for <code>darkness.base_data_holiday.jieqi</code>. 节气
* Getter for <code>cecilia.base_data_holiday.jieqi</code>. 节气
*/
@Size(max = 255)
public String getJieqi() {
@ -217,14 +217,14 @@ public class BaseDataHolidayRecord extends UpdatableRecordImpl<BaseDataHolidayRe
}
/**
* Setter for <code>darkness.base_data_holiday.teshujieri</code>. 特殊节日
* Setter for <code>cecilia.base_data_holiday.teshujieri</code>. 特殊节日
*/
public void setTeshujieri(String value) {
set(13, value);
}
/**
* Getter for <code>darkness.base_data_holiday.teshujieri</code>. 特殊节日
* Getter for <code>cecilia.base_data_holiday.teshujieri</code>. 特殊节日
*/
@Size(max = 10)
public String getTeshujieri() {
@ -232,14 +232,14 @@ public class BaseDataHolidayRecord extends UpdatableRecordImpl<BaseDataHolidayRe
}
/**
* Setter for <code>darkness.base_data_holiday.runyue</code>. 润月
* Setter for <code>cecilia.base_data_holiday.runyue</code>. 润月
*/
public void setRunyue(Integer value) {
set(14, value);
}
/**
* Getter for <code>darkness.base_data_holiday.runyue</code>. 润月
* Getter for <code>cecilia.base_data_holiday.runyue</code>. 润月
*/
public Integer getRunyue() {
return (Integer) get(14);

View File

@ -12,8 +12,8 @@ import javax.validation.constraints.Size;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record18;
import org.jooq.Row18;
import org.jooq.Record16;
import org.jooq.Row16;
import org.jooq.impl.UpdatableRecordImpl;
@ -21,33 +21,33 @@ import org.jooq.impl.UpdatableRecordImpl;
* 字典表
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements Record18<Long, String, Integer, String, Integer, String, Integer, Integer, String, String, Long, LocalDateTime, Long, LocalDateTime, Byte, Integer, String, Integer> {
public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements Record16<Long, String, String, String, Integer, String, Integer, Integer, String, LocalDateTime, Long, LocalDateTime, Long, Byte, Byte, Long> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>darkness.base_dic.id</code>. 主键
* Setter for <code>cecilia.base_dic.id</code>. 主键
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>darkness.base_dic.id</code>. 主键
* Getter for <code>cecilia.base_dic.id</code>. 主键
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>darkness.base_dic.type_code</code>. 类型编码
* Setter for <code>cecilia.base_dic.type_code</code>. 类型编码
*/
public void setTypeCode(String value) {
set(1, value);
}
/**
* Getter for <code>darkness.base_dic.type_code</code>. 类型编码
* Getter for <code>cecilia.base_dic.type_code</code>. 类型编码
*/
@Size(max = 50)
public String getTypeCode() {
@ -55,28 +55,29 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
/**
* Setter for <code>darkness.base_dic.code</code>. 编码
* Setter for <code>cecilia.base_dic.code</code>. 编码
*/
public void setCode(Integer value) {
public void setCode(String value) {
set(2, value);
}
/**
* Getter for <code>darkness.base_dic.code</code>. 编码
* Getter for <code>cecilia.base_dic.code</code>. 编码
*/
public Integer getCode() {
return (Integer) get(2);
@Size(max = 10)
public String getCode() {
return (String) get(2);
}
/**
* Setter for <code>darkness.base_dic.name</code>. 名称
* Setter for <code>cecilia.base_dic.name</code>. 名称
*/
public void setName(String value) {
set(3, value);
}
/**
* Getter for <code>darkness.base_dic.name</code>. 名称
* Getter for <code>cecilia.base_dic.name</code>. 名称
*/
@Size(max = 255)
public String getName() {
@ -84,28 +85,28 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
/**
* Setter for <code>darkness.base_dic.parenet_code</code>. 父编码
* Setter for <code>cecilia.base_dic.parent_code</code>. 父编码
*/
public void setParenetCode(Integer value) {
public void setParentCode(Integer value) {
set(4, value);
}
/**
* Getter for <code>darkness.base_dic.parenet_code</code>. 父编码
* Getter for <code>cecilia.base_dic.parent_code</code>. 父编码
*/
public Integer getParenetCode() {
public Integer getParentCode() {
return (Integer) get(4);
}
/**
* Setter for <code>darkness.base_dic.tree_code</code>. 树编码
* Setter for <code>cecilia.base_dic.tree_code</code>. 树编码
*/
public void setTreeCode(String value) {
set(5, value);
}
/**
* Getter for <code>darkness.base_dic.tree_code</code>. 树编码
* Getter for <code>cecilia.base_dic.tree_code</code>. 树编码
*/
@Size(max = 200)
public String getTreeCode() {
@ -113,42 +114,42 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
/**
* Setter for <code>darkness.base_dic.order</code>. 排序正序
* Setter for <code>cecilia.base_dic.order</code>. 排序正序
*/
public void setOrder(Integer value) {
set(6, value);
}
/**
* Getter for <code>darkness.base_dic.order</code>. 排序正序
* Getter for <code>cecilia.base_dic.order</code>. 排序正序
*/
public Integer getOrder() {
return (Integer) get(6);
}
/**
* Setter for <code>darkness.base_dic.level</code>. 级别
* Setter for <code>cecilia.base_dic.level</code>. 级别
*/
public void setLevel(Integer value) {
set(7, value);
}
/**
* Getter for <code>darkness.base_dic.level</code>. 级别
* Getter for <code>cecilia.base_dic.level</code>. 级别
*/
public Integer getLevel() {
return (Integer) get(7);
}
/**
* Setter for <code>darkness.base_dic.business_value</code>. 业务数据
* Setter for <code>cecilia.base_dic.business_value</code>. 业务数据
*/
public void setBusinessValue(String value) {
set(8, value);
}
/**
* Getter for <code>darkness.base_dic.business_value</code>. 业务数据
* Getter for <code>cecilia.base_dic.business_value</code>. 业务数据
*/
@Size(max = 255)
public String getBusinessValue() {
@ -156,131 +157,101 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
/**
* Setter for <code>darkness.base_dic.filter_item</code>. 过滤项
* Setter for <code>cecilia.base_dic.create_time</code>. 记录创建时间
*/
public void setFilterItem(String value) {
public void setCreateTime(LocalDateTime value) {
set(9, value);
}
/**
* Getter for <code>darkness.base_dic.filter_item</code>. 过滤项
* Getter for <code>cecilia.base_dic.create_time</code>. 记录创建时间
*/
@Size(max = 255)
public String getFilterItem() {
return (String) get(9);
public LocalDateTime getCreateTime() {
return (LocalDateTime) get(9);
}
/**
* Setter for <code>darkness.base_dic.creator_uid</code>. 创建者用户id
* Setter for <code>cecilia.base_dic.create_uid</code>. 创建者用户id
*/
public void setCreatorUid(Long value) {
public void setCreateUid(Long value) {
set(10, value);
}
/**
* Getter for <code>darkness.base_dic.creator_uid</code>. 创建者用户id
* Getter for <code>cecilia.base_dic.create_uid</code>. 创建者用户id
*/
public Long getCreatorUid() {
public Long getCreateUid() {
return (Long) get(10);
}
/**
* Setter for <code>darkness.base_dic.create_time</code>. 记录创建时间
* Setter for <code>cecilia.base_dic.update_time</code>. 记录更新时间
*/
public void setCreateTime(LocalDateTime value) {
public void setUpdateTime(LocalDateTime value) {
set(11, value);
}
/**
* Getter for <code>darkness.base_dic.create_time</code>. 记录创建时间
* Getter for <code>cecilia.base_dic.update_time</code>. 记录更新时间
*/
public LocalDateTime getCreateTime() {
public LocalDateTime getUpdateTime() {
return (LocalDateTime) get(11);
}
/**
* Setter for <code>darkness.base_dic.operator_uid</code>. 更新人用户id
* Setter for <code>cecilia.base_dic.update_uid</code>. 更新人用户id
*/
public void setOperatorUid(Long value) {
public void setUpdateUid(Long value) {
set(12, value);
}
/**
* Getter for <code>darkness.base_dic.operator_uid</code>. 更新人用户id
* Getter for <code>cecilia.base_dic.update_uid</code>. 更新人用户id
*/
public Long getOperatorUid() {
public Long getUpdateUid() {
return (Long) get(12);
}
/**
* Setter for <code>darkness.base_dic.update_time</code>. 记录更新时间
* Setter for <code>cecilia.base_dic.delete_flag</code>. 是否删除标识位(0未删除1已删除)
*/
public void setUpdateTime(LocalDateTime value) {
public void setDeleteFlag(Byte value) {
set(13, value);
}
/**
* Getter for <code>darkness.base_dic.update_time</code>. 记录更新时间
* Getter for <code>cecilia.base_dic.delete_flag</code>. 是否删除标识位(0未删除1已删除)
*/
public LocalDateTime getUpdateTime() {
return (LocalDateTime) get(13);
public Byte getDeleteFlag() {
return (Byte) get(13);
}
/**
* Setter for <code>darkness.base_dic.delete_flag</code>. 是否删除标识位(0未删除1已删除)
* Setter for <code>cecilia.base_dic.is_enable</code>. 是否启用
*/
public void setDeleteFlag(Byte value) {
public void setIsEnable(Byte value) {
set(14, value);
}
/**
* Getter for <code>darkness.base_dic.delete_flag</code>. 是否删除标识位(0未删除1已删除)
* Getter for <code>cecilia.base_dic.is_enable</code>. 是否启用
*/
public Byte getDeleteFlag() {
public Byte getIsEnable() {
return (Byte) get(14);
}
/**
* Setter for <code>darkness.base_dic.is_enable</code>. 是否启用
* Setter for <code>cecilia.base_dic.namespace_id</code>. 域空间id
*/
public void setIsEnable(Integer value) {
public void setNamespaceId(Long value) {
set(15, value);
}
/**
* Getter for <code>darkness.base_dic.is_enable</code>. 是否启用
* Getter for <code>cecilia.base_dic.namespace_id</code>. 域空间id
*/
public Integer getIsEnable() {
return (Integer) get(15);
}
/**
* Setter for <code>darkness.base_dic.app_id</code>. 多应用的应用id
*/
public void setAppId(String value) {
set(16, value);
}
/**
* Getter for <code>darkness.base_dic.app_id</code>. 多应用的应用id
*/
@Size(max = 255)
public String getAppId() {
return (String) get(16);
}
/**
* Setter for <code>darkness.base_dic.namespace_id</code>. 域空间id
*/
public void setNamespaceId(Integer value) {
set(17, value);
}
/**
* Getter for <code>darkness.base_dic.namespace_id</code>. 域空间id
*/
public Integer getNamespaceId() {
return (Integer) get(17);
public Long getNamespaceId() {
return (Long) get(15);
}
// -------------------------------------------------------------------------
@ -293,17 +264,17 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
// -------------------------------------------------------------------------
// Record18 type implementation
// Record16 type implementation
// -------------------------------------------------------------------------
@Override
public Row18<Long, String, Integer, String, Integer, String, Integer, Integer, String, String, Long, LocalDateTime, Long, LocalDateTime, Byte, Integer, String, Integer> fieldsRow() {
return (Row18) super.fieldsRow();
public Row16<Long, String, String, String, Integer, String, Integer, Integer, String, LocalDateTime, Long, LocalDateTime, Long, Byte, Byte, Long> fieldsRow() {
return (Row16) super.fieldsRow();
}
@Override
public Row18<Long, String, Integer, String, Integer, String, Integer, Integer, String, String, Long, LocalDateTime, Long, LocalDateTime, Byte, Integer, String, Integer> valuesRow() {
return (Row18) super.valuesRow();
public Row16<Long, String, String, String, Integer, String, Integer, Integer, String, LocalDateTime, Long, LocalDateTime, Long, Byte, Byte, Long> valuesRow() {
return (Row16) super.valuesRow();
}
@Override
@ -317,7 +288,7 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
@Override
public Field<Integer> field3() {
public Field<String> field3() {
return BaseDic.BASE_DIC.CODE;
}
@ -328,7 +299,7 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
@Override
public Field<Integer> field5() {
return BaseDic.BASE_DIC.PARENET_CODE;
return BaseDic.BASE_DIC.PARENT_CODE;
}
@Override
@ -352,47 +323,37 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
@Override
public Field<String> field10() {
return BaseDic.BASE_DIC.FILTER_ITEM;
}
@Override
public Field<Long> field11() {
return BaseDic.BASE_DIC.CREATOR_UID;
}
@Override
public Field<LocalDateTime> field12() {
public Field<LocalDateTime> field10() {
return BaseDic.BASE_DIC.CREATE_TIME;
}
@Override
public Field<Long> field13() {
return BaseDic.BASE_DIC.OPERATOR_UID;
public Field<Long> field11() {
return BaseDic.BASE_DIC.CREATE_UID;
}
@Override
public Field<LocalDateTime> field14() {
public Field<LocalDateTime> field12() {
return BaseDic.BASE_DIC.UPDATE_TIME;
}
@Override
public Field<Byte> field15() {
public Field<Long> field13() {
return BaseDic.BASE_DIC.UPDATE_UID;
}
@Override
public Field<Byte> field14() {
return BaseDic.BASE_DIC.DELETE_FLAG;
}
@Override
public Field<Integer> field16() {
public Field<Byte> field15() {
return BaseDic.BASE_DIC.IS_ENABLE;
}
@Override
public Field<String> field17() {
return BaseDic.BASE_DIC.APP_ID;
}
@Override
public Field<Integer> field18() {
public Field<Long> field16() {
return BaseDic.BASE_DIC.NAMESPACE_ID;
}
@ -407,7 +368,7 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
@Override
public Integer component3() {
public String component3() {
return getCode();
}
@ -418,7 +379,7 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
@Override
public Integer component5() {
return getParenetCode();
return getParentCode();
}
@Override
@ -442,47 +403,37 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
@Override
public String component10() {
return getFilterItem();
}
@Override
public Long component11() {
return getCreatorUid();
}
@Override
public LocalDateTime component12() {
public LocalDateTime component10() {
return getCreateTime();
}
@Override
public Long component13() {
return getOperatorUid();
public Long component11() {
return getCreateUid();
}
@Override
public LocalDateTime component14() {
public LocalDateTime component12() {
return getUpdateTime();
}
@Override
public Byte component15() {
public Long component13() {
return getUpdateUid();
}
@Override
public Byte component14() {
return getDeleteFlag();
}
@Override
public Integer component16() {
public Byte component15() {
return getIsEnable();
}
@Override
public String component17() {
return getAppId();
}
@Override
public Integer component18() {
public Long component16() {
return getNamespaceId();
}
@ -497,7 +448,7 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
@Override
public Integer value3() {
public String value3() {
return getCode();
}
@ -508,7 +459,7 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
@Override
public Integer value5() {
return getParenetCode();
return getParentCode();
}
@Override
@ -532,47 +483,37 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
@Override
public String value10() {
return getFilterItem();
}
@Override
public Long value11() {
return getCreatorUid();
}
@Override
public LocalDateTime value12() {
public LocalDateTime value10() {
return getCreateTime();
}
@Override
public Long value13() {
return getOperatorUid();
public Long value11() {
return getCreateUid();
}
@Override
public LocalDateTime value14() {
public LocalDateTime value12() {
return getUpdateTime();
}
@Override
public Byte value15() {
public Long value13() {
return getUpdateUid();
}
@Override
public Byte value14() {
return getDeleteFlag();
}
@Override
public Integer value16() {
public Byte value15() {
return getIsEnable();
}
@Override
public String value17() {
return getAppId();
}
@Override
public Integer value18() {
public Long value16() {
return getNamespaceId();
}
@ -589,7 +530,7 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
@Override
public BaseDicRecord value3(Integer value) {
public BaseDicRecord value3(String value) {
setCode(value);
return this;
}
@ -602,7 +543,7 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
@Override
public BaseDicRecord value5(Integer value) {
setParenetCode(value);
setParentCode(value);
return this;
}
@ -631,61 +572,49 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
}
@Override
public BaseDicRecord value10(String value) {
setFilterItem(value);
return this;
}
@Override
public BaseDicRecord value11(Long value) {
setCreatorUid(value);
return this;
}
@Override
public BaseDicRecord value12(LocalDateTime value) {
public BaseDicRecord value10(LocalDateTime value) {
setCreateTime(value);
return this;
}
@Override
public BaseDicRecord value13(Long value) {
setOperatorUid(value);
public BaseDicRecord value11(Long value) {
setCreateUid(value);
return this;
}
@Override
public BaseDicRecord value14(LocalDateTime value) {
public BaseDicRecord value12(LocalDateTime value) {
setUpdateTime(value);
return this;
}
@Override
public BaseDicRecord value15(Byte value) {
public BaseDicRecord value13(Long value) {
setUpdateUid(value);
return this;
}
@Override
public BaseDicRecord value14(Byte value) {
setDeleteFlag(value);
return this;
}
@Override
public BaseDicRecord value16(Integer value) {
public BaseDicRecord value15(Byte value) {
setIsEnable(value);
return this;
}
@Override
public BaseDicRecord value17(String value) {
setAppId(value);
return this;
}
@Override
public BaseDicRecord value18(Integer value) {
public BaseDicRecord value16(Long value) {
setNamespaceId(value);
return this;
}
@Override
public BaseDicRecord values(Long value1, String value2, Integer value3, String value4, Integer value5, String value6, Integer value7, Integer value8, String value9, String value10, Long value11, LocalDateTime value12, Long value13, LocalDateTime value14, Byte value15, Integer value16, String value17, Integer value18) {
public BaseDicRecord values(Long value1, String value2, String value3, String value4, Integer value5, String value6, Integer value7, Integer value8, String value9, LocalDateTime value10, Long value11, LocalDateTime value12, Long value13, Byte value14, Byte value15, Long value16) {
value1(value1);
value2(value2);
value3(value3);
@ -702,8 +631,6 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
value14(value14);
value15(value15);
value16(value16);
value17(value17);
value18(value18);
return this;
}
@ -721,26 +648,24 @@ public class BaseDicRecord extends UpdatableRecordImpl<BaseDicRecord> implements
/**
* Create a detached, initialised BaseDicRecord
*/
public BaseDicRecord(Long id, String typeCode, Integer code, String name, Integer parenetCode, String treeCode, Integer order, Integer level, String businessValue, String filterItem, Long creatorUid, LocalDateTime createTime, Long operatorUid, LocalDateTime updateTime, Byte deleteFlag, Integer isEnable, String appId, Integer namespaceId) {
public BaseDicRecord(Long id, String typeCode, String code, String name, Integer parentCode, String treeCode, Integer order, Integer level, String businessValue, LocalDateTime createTime, Long createUid, LocalDateTime updateTime, Long updateUid, Byte deleteFlag, Byte isEnable, Long namespaceId) {
super(BaseDic.BASE_DIC);
setId(id);
setTypeCode(typeCode);
setCode(code);
setName(name);
setParenetCode(parenetCode);
setParentCode(parentCode);
setTreeCode(treeCode);
setOrder(order);
setLevel(level);
setBusinessValue(businessValue);
setFilterItem(filterItem);
setCreatorUid(creatorUid);
setCreateTime(createTime);
setOperatorUid(operatorUid);
setCreateUid(createUid);
setUpdateTime(updateTime);
setUpdateUid(updateUid);
setDeleteFlag(deleteFlag);
setIsEnable(isEnable);
setAppId(appId);
setNamespaceId(namespaceId);
}
}

View File

@ -12,8 +12,8 @@ import javax.validation.constraints.Size;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record11;
import org.jooq.Row11;
import org.jooq.Record10;
import org.jooq.Row10;
import org.jooq.impl.UpdatableRecordImpl;
@ -21,33 +21,33 @@ import org.jooq.impl.UpdatableRecordImpl;
* 字典类型表
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseDicTypeRecord extends UpdatableRecordImpl<BaseDicTypeRecord> implements Record11<Long, String, String, Integer, Long, LocalDateTime, Long, LocalDateTime, Byte, String, Integer> {
public class BaseDicTypeRecord extends UpdatableRecordImpl<BaseDicTypeRecord> implements Record10<Long, String, String, Integer, LocalDateTime, Long, LocalDateTime, Long, Byte, Long> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>darkness.base_dic_type.id</code>. 主键
* Setter for <code>cecilia.base_dic_type.id</code>. 主键
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>darkness.base_dic_type.id</code>. 主键
* Getter for <code>cecilia.base_dic_type.id</code>. 主键
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>darkness.base_dic_type.type_code</code>. 类型编码
* Setter for <code>cecilia.base_dic_type.type_code</code>. 类型编码
*/
public void setTypeCode(String value) {
set(1, value);
}
/**
* Getter for <code>darkness.base_dic_type.type_code</code>. 类型编码
* Getter for <code>cecilia.base_dic_type.type_code</code>. 类型编码
*/
@Size(max = 50)
public String getTypeCode() {
@ -55,14 +55,14 @@ public class BaseDicTypeRecord extends UpdatableRecordImpl<BaseDicTypeRecord> im
}
/**
* Setter for <code>darkness.base_dic_type.type_name</code>. 名称
* Setter for <code>cecilia.base_dic_type.type_name</code>. 名称
*/
public void setTypeName(String value) {
set(2, value);
}
/**
* Getter for <code>darkness.base_dic_type.type_name</code>. 名称
* Getter for <code>cecilia.base_dic_type.type_name</code>. 名称
*/
@Size(max = 20)
public String getTypeName() {
@ -70,116 +70,101 @@ public class BaseDicTypeRecord extends UpdatableRecordImpl<BaseDicTypeRecord> im
}
/**
* Setter for <code>darkness.base_dic_type.order</code>. 排序
* Setter for <code>cecilia.base_dic_type.order</code>. 排序
*/
public void setOrder(Integer value) {
set(3, value);
}
/**
* Getter for <code>darkness.base_dic_type.order</code>. 排序
* Getter for <code>cecilia.base_dic_type.order</code>. 排序
*/
public Integer getOrder() {
return (Integer) get(3);
}
/**
* Setter for <code>darkness.base_dic_type.creator_uid</code>. 创建者用户id
* Setter for <code>cecilia.base_dic_type.create_time</code>. 记录创建时间
*/
public void setCreatorUid(Long value) {
public void setCreateTime(LocalDateTime value) {
set(4, value);
}
/**
* Getter for <code>darkness.base_dic_type.creator_uid</code>. 创建者用户id
* Getter for <code>cecilia.base_dic_type.create_time</code>. 记录创建时间
*/
public Long getCreatorUid() {
return (Long) get(4);
public LocalDateTime getCreateTime() {
return (LocalDateTime) get(4);
}
/**
* Setter for <code>darkness.base_dic_type.create_time</code>. 记录创建时间
* Setter for <code>cecilia.base_dic_type.create_uid</code>. 创建者用户id
*/
public void setCreateTime(LocalDateTime value) {
public void setCreateUid(Long value) {
set(5, value);
}
/**
* Getter for <code>darkness.base_dic_type.create_time</code>. 记录创建时间
* Getter for <code>cecilia.base_dic_type.create_uid</code>. 创建者用户id
*/
public LocalDateTime getCreateTime() {
return (LocalDateTime) get(5);
public Long getCreateUid() {
return (Long) get(5);
}
/**
* Setter for <code>darkness.base_dic_type.operator_uid</code>. 更新人用户id
* Setter for <code>cecilia.base_dic_type.update_time</code>. 记录更新时间
*/
public void setOperatorUid(Long value) {
public void setUpdateTime(LocalDateTime value) {
set(6, value);
}
/**
* Getter for <code>darkness.base_dic_type.operator_uid</code>. 更新人用户id
* Getter for <code>cecilia.base_dic_type.update_time</code>. 记录更新时间
*/
public Long getOperatorUid() {
return (Long) get(6);
public LocalDateTime getUpdateTime() {
return (LocalDateTime) get(6);
}
/**
* Setter for <code>darkness.base_dic_type.update_time</code>. 记录更新时间
* Setter for <code>cecilia.base_dic_type.update_uid</code>. 更新人用户id
*/
public void setUpdateTime(LocalDateTime value) {
public void setUpdateUid(Long value) {
set(7, value);
}
/**
* Getter for <code>darkness.base_dic_type.update_time</code>. 记录更新时间
* Getter for <code>cecilia.base_dic_type.update_uid</code>. 更新人用户id
*/
public LocalDateTime getUpdateTime() {
return (LocalDateTime) get(7);
public Long getUpdateUid() {
return (Long) get(7);
}
/**
* Setter for <code>darkness.base_dic_type.delete_flag</code>. 是否删除标识位(0未删除1已删除)
* Setter for <code>cecilia.base_dic_type.delete_flag</code>. 是否删除标识位(0未删除1已删除)
*/
public void setDeleteFlag(Byte value) {
set(8, value);
}
/**
* Getter for <code>darkness.base_dic_type.delete_flag</code>. 是否删除标识位(0未删除1已删除)
* Getter for <code>cecilia.base_dic_type.delete_flag</code>. 是否删除标识位(0未删除1已删除)
*/
public Byte getDeleteFlag() {
return (Byte) get(8);
}
/**
* Setter for <code>darkness.base_dic_type.app_id</code>. 多应用的应用id
* Setter for <code>cecilia.base_dic_type.namespace_id</code>. 域空间id
*/
public void setAppId(String value) {
public void setNamespaceId(Long value) {
set(9, value);
}
/**
* Getter for <code>darkness.base_dic_type.app_id</code>. 多应用的应用id
* Getter for <code>cecilia.base_dic_type.namespace_id</code>. 域空间id
*/
@Size(max = 255)
public String getAppId() {
return (String) get(9);
}
/**
* Setter for <code>darkness.base_dic_type.namespace_id</code>. 域空间id
*/
public void setNamespaceId(Integer value) {
set(10, value);
}
/**
* Getter for <code>darkness.base_dic_type.namespace_id</code>. 域空间id
*/
public Integer getNamespaceId() {
return (Integer) get(10);
public Long getNamespaceId() {
return (Long) get(9);
}
// -------------------------------------------------------------------------
@ -192,17 +177,17 @@ public class BaseDicTypeRecord extends UpdatableRecordImpl<BaseDicTypeRecord> im
}
// -------------------------------------------------------------------------
// Record11 type implementation
// Record10 type implementation
// -------------------------------------------------------------------------
@Override
public Row11<Long, String, String, Integer, Long, LocalDateTime, Long, LocalDateTime, Byte, String, Integer> fieldsRow() {
return (Row11) super.fieldsRow();
public Row10<Long, String, String, Integer, LocalDateTime, Long, LocalDateTime, Long, Byte, Long> fieldsRow() {
return (Row10) super.fieldsRow();
}
@Override
public Row11<Long, String, String, Integer, Long, LocalDateTime, Long, LocalDateTime, Byte, String, Integer> valuesRow() {
return (Row11) super.valuesRow();
public Row10<Long, String, String, Integer, LocalDateTime, Long, LocalDateTime, Long, Byte, Long> valuesRow() {
return (Row10) super.valuesRow();
}
@Override
@ -226,37 +211,32 @@ public class BaseDicTypeRecord extends UpdatableRecordImpl<BaseDicTypeRecord> im
}
@Override
public Field<Long> field5() {
return BaseDicType.BASE_DIC_TYPE.CREATOR_UID;
}
@Override
public Field<LocalDateTime> field6() {
public Field<LocalDateTime> field5() {
return BaseDicType.BASE_DIC_TYPE.CREATE_TIME;
}
@Override
public Field<Long> field7() {
return BaseDicType.BASE_DIC_TYPE.OPERATOR_UID;
public Field<Long> field6() {
return BaseDicType.BASE_DIC_TYPE.CREATE_UID;
}
@Override
public Field<LocalDateTime> field8() {
public Field<LocalDateTime> field7() {
return BaseDicType.BASE_DIC_TYPE.UPDATE_TIME;
}
@Override
public Field<Long> field8() {
return BaseDicType.BASE_DIC_TYPE.UPDATE_UID;
}
@Override
public Field<Byte> field9() {
return BaseDicType.BASE_DIC_TYPE.DELETE_FLAG;
}
@Override
public Field<String> field10() {
return BaseDicType.BASE_DIC_TYPE.APP_ID;
}
@Override
public Field<Integer> field11() {
public Field<Long> field10() {
return BaseDicType.BASE_DIC_TYPE.NAMESPACE_ID;
}
@ -281,37 +261,32 @@ public class BaseDicTypeRecord extends UpdatableRecordImpl<BaseDicTypeRecord> im
}
@Override
public Long component5() {
return getCreatorUid();
}
@Override
public LocalDateTime component6() {
public LocalDateTime component5() {
return getCreateTime();
}
@Override
public Long component7() {
return getOperatorUid();
public Long component6() {
return getCreateUid();
}
@Override
public LocalDateTime component8() {
public LocalDateTime component7() {
return getUpdateTime();
}
@Override
public Long component8() {
return getUpdateUid();
}
@Override
public Byte component9() {
return getDeleteFlag();
}
@Override
public String component10() {
return getAppId();
}
@Override
public Integer component11() {
public Long component10() {
return getNamespaceId();
}
@ -336,37 +311,32 @@ public class BaseDicTypeRecord extends UpdatableRecordImpl<BaseDicTypeRecord> im
}
@Override
public Long value5() {
return getCreatorUid();
}
@Override
public LocalDateTime value6() {
public LocalDateTime value5() {
return getCreateTime();
}
@Override
public Long value7() {
return getOperatorUid();
public Long value6() {
return getCreateUid();
}
@Override
public LocalDateTime value8() {
public LocalDateTime value7() {
return getUpdateTime();
}
@Override
public Long value8() {
return getUpdateUid();
}
@Override
public Byte value9() {
return getDeleteFlag();
}
@Override
public String value10() {
return getAppId();
}
@Override
public Integer value11() {
public Long value10() {
return getNamespaceId();
}
@ -395,29 +365,29 @@ public class BaseDicTypeRecord extends UpdatableRecordImpl<BaseDicTypeRecord> im
}
@Override
public BaseDicTypeRecord value5(Long value) {
setCreatorUid(value);
return this;
}
@Override
public BaseDicTypeRecord value6(LocalDateTime value) {
public BaseDicTypeRecord value5(LocalDateTime value) {
setCreateTime(value);
return this;
}
@Override
public BaseDicTypeRecord value7(Long value) {
setOperatorUid(value);
public BaseDicTypeRecord value6(Long value) {
setCreateUid(value);
return this;
}
@Override
public BaseDicTypeRecord value8(LocalDateTime value) {
public BaseDicTypeRecord value7(LocalDateTime value) {
setUpdateTime(value);
return this;
}
@Override
public BaseDicTypeRecord value8(Long value) {
setUpdateUid(value);
return this;
}
@Override
public BaseDicTypeRecord value9(Byte value) {
setDeleteFlag(value);
@ -425,19 +395,13 @@ public class BaseDicTypeRecord extends UpdatableRecordImpl<BaseDicTypeRecord> im
}
@Override
public BaseDicTypeRecord value10(String value) {
setAppId(value);
return this;
}
@Override
public BaseDicTypeRecord value11(Integer value) {
public BaseDicTypeRecord value10(Long value) {
setNamespaceId(value);
return this;
}
@Override
public BaseDicTypeRecord values(Long value1, String value2, String value3, Integer value4, Long value5, LocalDateTime value6, Long value7, LocalDateTime value8, Byte value9, String value10, Integer value11) {
public BaseDicTypeRecord values(Long value1, String value2, String value3, Integer value4, LocalDateTime value5, Long value6, LocalDateTime value7, Long value8, Byte value9, Long value10) {
value1(value1);
value2(value2);
value3(value3);
@ -448,7 +412,6 @@ public class BaseDicTypeRecord extends UpdatableRecordImpl<BaseDicTypeRecord> im
value8(value8);
value9(value9);
value10(value10);
value11(value11);
return this;
}
@ -466,19 +429,18 @@ public class BaseDicTypeRecord extends UpdatableRecordImpl<BaseDicTypeRecord> im
/**
* Create a detached, initialised BaseDicTypeRecord
*/
public BaseDicTypeRecord(Long id, String typeCode, String typeName, Integer order, Long creatorUid, LocalDateTime createTime, Long operatorUid, LocalDateTime updateTime, Byte deleteFlag, String appId, Integer namespaceId) {
public BaseDicTypeRecord(Long id, String typeCode, String typeName, Integer order, LocalDateTime createTime, Long createUid, LocalDateTime updateTime, Long updateUid, Byte deleteFlag, Long namespaceId) {
super(BaseDicType.BASE_DIC_TYPE);
setId(id);
setTypeCode(typeCode);
setTypeName(typeName);
setOrder(order);
setCreatorUid(creatorUid);
setCreateTime(createTime);
setOperatorUid(operatorUid);
setCreateUid(createUid);
setUpdateTime(updateTime);
setUpdateUid(updateUid);
setDeleteFlag(deleteFlag);
setAppId(appId);
setNamespaceId(namespaceId);
}
}

View File

@ -0,0 +1,596 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables.records;
import com.cecilia.pojo.entity.tables.BaseOrganizations;
import java.time.LocalDateTime;
import javax.validation.constraints.Size;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record14;
import org.jooq.Row14;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseOrganizationsRecord extends UpdatableRecordImpl<BaseOrganizationsRecord> implements Record14<Long, Long, String, String, String, Integer, Byte, String, Integer, LocalDateTime, Long, LocalDateTime, Long, Long> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>cecilia.base_organizations.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>cecilia.base_organizations.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>cecilia.base_organizations.parent_id</code>.
*/
public void setParentId(Long value) {
set(1, value);
}
/**
* Getter for <code>cecilia.base_organizations.parent_id</code>.
*/
public Long getParentId() {
return (Long) get(1);
}
/**
* Setter for <code>cecilia.base_organizations.org_name</code>.
*/
public void setOrgName(String value) {
set(2, value);
}
/**
* Getter for <code>cecilia.base_organizations.org_name</code>.
*/
@Size(max = 255)
public String getOrgName() {
return (String) get(2);
}
/**
* Setter for <code>cecilia.base_organizations.org_no</code>. 部门编号(仅group_type=DEPARTMENT才有)
*/
public void setOrgNo(String value) {
set(3, value);
}
/**
* Getter for <code>cecilia.base_organizations.org_no</code>. 部门编号(仅group_type=DEPARTMENT才有)
*/
@Size(max = 512)
public String getOrgNo() {
return (String) get(3);
}
/**
* Setter for <code>cecilia.base_organizations.path</code>.
*/
public void setPath(String value) {
set(4, value);
}
/**
* Getter for <code>cecilia.base_organizations.path</code>.
*/
@Size(max = 255)
public String getPath() {
return (String) get(4);
}
/**
* Setter for <code>cecilia.base_organizations.level</code>.
*/
public void setLevel(Integer value) {
set(5, value);
}
/**
* Getter for <code>cecilia.base_organizations.level</code>.
*/
public Integer getLevel() {
return (Integer) get(5);
}
/**
* Setter for <code>cecilia.base_organizations.status</code>. 1: inactive, 2: active, 3: locked, 4: mark as deleted
*/
public void setStatus(Byte value) {
set(6, value);
}
/**
* Getter for <code>cecilia.base_organizations.status</code>. 1: inactive, 2: active, 3: locked, 4: mark as deleted
*/
public Byte getStatus() {
return (Byte) get(6);
}
/**
* Setter for <code>cecilia.base_organizations.group_type</code>. ENTERPRISE, DEPARTMENT, GROUP, JOB_POSITION, JOB_LEVEL, MANAGER
*/
public void setGroupType(String value) {
set(7, value);
}
/**
* Getter for <code>cecilia.base_organizations.group_type</code>. ENTERPRISE, DEPARTMENT, GROUP, JOB_POSITION, JOB_LEVEL, MANAGER
*/
@Size(max = 64)
public String getGroupType() {
return (String) get(7);
}
/**
* Setter for <code>cecilia.base_organizations.order</code>.
*/
public void setOrder(Integer value) {
set(8, value);
}
/**
* Getter for <code>cecilia.base_organizations.order</code>.
*/
public Integer getOrder() {
return (Integer) get(8);
}
/**
* Setter for <code>cecilia.base_organizations.create_time</code>.
*/
public void setCreateTime(LocalDateTime value) {
set(9, value);
}
/**
* Getter for <code>cecilia.base_organizations.create_time</code>.
*/
public LocalDateTime getCreateTime() {
return (LocalDateTime) get(9);
}
/**
* Setter for <code>cecilia.base_organizations.create_uid</code>.
*/
public void setCreateUid(Long value) {
set(10, value);
}
/**
* Getter for <code>cecilia.base_organizations.create_uid</code>.
*/
public Long getCreateUid() {
return (Long) get(10);
}
/**
* Setter for <code>cecilia.base_organizations.update_time</code>.
*/
public void setUpdateTime(LocalDateTime value) {
set(11, value);
}
/**
* Getter for <code>cecilia.base_organizations.update_time</code>.
*/
public LocalDateTime getUpdateTime() {
return (LocalDateTime) get(11);
}
/**
* Setter for <code>cecilia.base_organizations.update_uid</code>.
*/
public void setUpdateUid(Long value) {
set(12, value);
}
/**
* Getter for <code>cecilia.base_organizations.update_uid</code>.
*/
public Long getUpdateUid() {
return (Long) get(12);
}
/**
* Setter for <code>cecilia.base_organizations.namespace_id</code>.
*/
public void setNamespaceId(Long value) {
set(13, value);
}
/**
* Getter for <code>cecilia.base_organizations.namespace_id</code>.
*/
public Long getNamespaceId() {
return (Long) get(13);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record14 type implementation
// -------------------------------------------------------------------------
@Override
public Row14<Long, Long, String, String, String, Integer, Byte, String, Integer, LocalDateTime, Long, LocalDateTime, Long, Long> fieldsRow() {
return (Row14) super.fieldsRow();
}
@Override
public Row14<Long, Long, String, String, String, Integer, Byte, String, Integer, LocalDateTime, Long, LocalDateTime, Long, Long> valuesRow() {
return (Row14) super.valuesRow();
}
@Override
public Field<Long> field1() {
return BaseOrganizations.BASE_ORGANIZATIONS.ID;
}
@Override
public Field<Long> field2() {
return BaseOrganizations.BASE_ORGANIZATIONS.PARENT_ID;
}
@Override
public Field<String> field3() {
return BaseOrganizations.BASE_ORGANIZATIONS.ORG_NAME;
}
@Override
public Field<String> field4() {
return BaseOrganizations.BASE_ORGANIZATIONS.ORG_NO;
}
@Override
public Field<String> field5() {
return BaseOrganizations.BASE_ORGANIZATIONS.PATH;
}
@Override
public Field<Integer> field6() {
return BaseOrganizations.BASE_ORGANIZATIONS.LEVEL;
}
@Override
public Field<Byte> field7() {
return BaseOrganizations.BASE_ORGANIZATIONS.STATUS;
}
@Override
public Field<String> field8() {
return BaseOrganizations.BASE_ORGANIZATIONS.GROUP_TYPE;
}
@Override
public Field<Integer> field9() {
return BaseOrganizations.BASE_ORGANIZATIONS.ORDER;
}
@Override
public Field<LocalDateTime> field10() {
return BaseOrganizations.BASE_ORGANIZATIONS.CREATE_TIME;
}
@Override
public Field<Long> field11() {
return BaseOrganizations.BASE_ORGANIZATIONS.CREATE_UID;
}
@Override
public Field<LocalDateTime> field12() {
return BaseOrganizations.BASE_ORGANIZATIONS.UPDATE_TIME;
}
@Override
public Field<Long> field13() {
return BaseOrganizations.BASE_ORGANIZATIONS.UPDATE_UID;
}
@Override
public Field<Long> field14() {
return BaseOrganizations.BASE_ORGANIZATIONS.NAMESPACE_ID;
}
@Override
public Long component1() {
return getId();
}
@Override
public Long component2() {
return getParentId();
}
@Override
public String component3() {
return getOrgName();
}
@Override
public String component4() {
return getOrgNo();
}
@Override
public String component5() {
return getPath();
}
@Override
public Integer component6() {
return getLevel();
}
@Override
public Byte component7() {
return getStatus();
}
@Override
public String component8() {
return getGroupType();
}
@Override
public Integer component9() {
return getOrder();
}
@Override
public LocalDateTime component10() {
return getCreateTime();
}
@Override
public Long component11() {
return getCreateUid();
}
@Override
public LocalDateTime component12() {
return getUpdateTime();
}
@Override
public Long component13() {
return getUpdateUid();
}
@Override
public Long component14() {
return getNamespaceId();
}
@Override
public Long value1() {
return getId();
}
@Override
public Long value2() {
return getParentId();
}
@Override
public String value3() {
return getOrgName();
}
@Override
public String value4() {
return getOrgNo();
}
@Override
public String value5() {
return getPath();
}
@Override
public Integer value6() {
return getLevel();
}
@Override
public Byte value7() {
return getStatus();
}
@Override
public String value8() {
return getGroupType();
}
@Override
public Integer value9() {
return getOrder();
}
@Override
public LocalDateTime value10() {
return getCreateTime();
}
@Override
public Long value11() {
return getCreateUid();
}
@Override
public LocalDateTime value12() {
return getUpdateTime();
}
@Override
public Long value13() {
return getUpdateUid();
}
@Override
public Long value14() {
return getNamespaceId();
}
@Override
public BaseOrganizationsRecord value1(Long value) {
setId(value);
return this;
}
@Override
public BaseOrganizationsRecord value2(Long value) {
setParentId(value);
return this;
}
@Override
public BaseOrganizationsRecord value3(String value) {
setOrgName(value);
return this;
}
@Override
public BaseOrganizationsRecord value4(String value) {
setOrgNo(value);
return this;
}
@Override
public BaseOrganizationsRecord value5(String value) {
setPath(value);
return this;
}
@Override
public BaseOrganizationsRecord value6(Integer value) {
setLevel(value);
return this;
}
@Override
public BaseOrganizationsRecord value7(Byte value) {
setStatus(value);
return this;
}
@Override
public BaseOrganizationsRecord value8(String value) {
setGroupType(value);
return this;
}
@Override
public BaseOrganizationsRecord value9(Integer value) {
setOrder(value);
return this;
}
@Override
public BaseOrganizationsRecord value10(LocalDateTime value) {
setCreateTime(value);
return this;
}
@Override
public BaseOrganizationsRecord value11(Long value) {
setCreateUid(value);
return this;
}
@Override
public BaseOrganizationsRecord value12(LocalDateTime value) {
setUpdateTime(value);
return this;
}
@Override
public BaseOrganizationsRecord value13(Long value) {
setUpdateUid(value);
return this;
}
@Override
public BaseOrganizationsRecord value14(Long value) {
setNamespaceId(value);
return this;
}
@Override
public BaseOrganizationsRecord values(Long value1, Long value2, String value3, String value4, String value5, Integer value6, Byte value7, String value8, Integer value9, LocalDateTime value10, Long value11, LocalDateTime value12, Long value13, Long value14) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
value10(value10);
value11(value11);
value12(value12);
value13(value13);
value14(value14);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached BaseOrganizationsRecord
*/
public BaseOrganizationsRecord() {
super(BaseOrganizations.BASE_ORGANIZATIONS);
}
/**
* Create a detached, initialised BaseOrganizationsRecord
*/
public BaseOrganizationsRecord(Long id, Long parentId, String orgName, String orgNo, String path, Integer level, Byte status, String groupType, Integer order, LocalDateTime createTime, Long createUid, LocalDateTime updateTime, Long updateUid, Long namespaceId) {
super(BaseOrganizations.BASE_ORGANIZATIONS);
setId(id);
setParentId(parentId);
setOrgName(orgName);
setOrgNo(orgNo);
setPath(path);
setLevel(level);
setStatus(status);
setGroupType(groupType);
setOrder(order);
setCreateTime(createTime);
setCreateUid(createUid);
setUpdateTime(updateTime);
setUpdateUid(updateUid);
setNamespaceId(namespaceId);
}
}

View File

@ -0,0 +1,337 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables.records;
import com.cecilia.pojo.entity.tables.BaseSysConfig;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record7;
import org.jooq.Row7;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseSysConfigRecord extends UpdatableRecordImpl<BaseSysConfigRecord> implements Record7<Long, String, String, String, String, Byte, Long> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>cecilia.base_sys_config.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>cecilia.base_sys_config.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>cecilia.base_sys_config.name</code>.
*/
public void setName(String value) {
set(1, value);
}
/**
* Getter for <code>cecilia.base_sys_config.name</code>.
*/
@NotNull
@Size(max = 255)
public String getName() {
return (String) get(1);
}
/**
* Setter for <code>cecilia.base_sys_config.value</code>.
*/
public void setValue(String value) {
set(2, value);
}
/**
* Getter for <code>cecilia.base_sys_config.value</code>.
*/
@Size(max = 65535)
public String getValue() {
return (String) get(2);
}
/**
* Setter for <code>cecilia.base_sys_config.description</code>.
*/
public void setDescription(String value) {
set(3, value);
}
/**
* Getter for <code>cecilia.base_sys_config.description</code>.
*/
@Size(max = 255)
public String getDescription() {
return (String) get(3);
}
/**
* Setter for <code>cecilia.base_sys_config.display_name</code>.
*/
public void setDisplayName(String value) {
set(4, value);
}
/**
* Getter for <code>cecilia.base_sys_config.display_name</code>.
*/
@Size(max = 128)
public String getDisplayName() {
return (String) get(4);
}
/**
* Setter for <code>cecilia.base_sys_config.is_readonly</code>. 是否只读0 1是
*/
public void setIsReadonly(Byte value) {
set(5, value);
}
/**
* Getter for <code>cecilia.base_sys_config.is_readonly</code>. 是否只读0 1是
*/
public Byte getIsReadonly() {
return (Byte) get(5);
}
/**
* Setter for <code>cecilia.base_sys_config.namespace_id</code>.
*/
public void setNamespaceId(Long value) {
set(6, value);
}
/**
* Getter for <code>cecilia.base_sys_config.namespace_id</code>.
*/
public Long getNamespaceId() {
return (Long) get(6);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record7 type implementation
// -------------------------------------------------------------------------
@Override
public Row7<Long, String, String, String, String, Byte, Long> fieldsRow() {
return (Row7) super.fieldsRow();
}
@Override
public Row7<Long, String, String, String, String, Byte, Long> valuesRow() {
return (Row7) super.valuesRow();
}
@Override
public Field<Long> field1() {
return BaseSysConfig.BASE_SYS_CONFIG.ID;
}
@Override
public Field<String> field2() {
return BaseSysConfig.BASE_SYS_CONFIG.NAME;
}
@Override
public Field<String> field3() {
return BaseSysConfig.BASE_SYS_CONFIG.VALUE;
}
@Override
public Field<String> field4() {
return BaseSysConfig.BASE_SYS_CONFIG.DESCRIPTION;
}
@Override
public Field<String> field5() {
return BaseSysConfig.BASE_SYS_CONFIG.DISPLAY_NAME;
}
@Override
public Field<Byte> field6() {
return BaseSysConfig.BASE_SYS_CONFIG.IS_READONLY;
}
@Override
public Field<Long> field7() {
return BaseSysConfig.BASE_SYS_CONFIG.NAMESPACE_ID;
}
@Override
public Long component1() {
return getId();
}
@Override
public String component2() {
return getName();
}
@Override
public String component3() {
return getValue();
}
@Override
public String component4() {
return getDescription();
}
@Override
public String component5() {
return getDisplayName();
}
@Override
public Byte component6() {
return getIsReadonly();
}
@Override
public Long component7() {
return getNamespaceId();
}
@Override
public Long value1() {
return getId();
}
@Override
public String value2() {
return getName();
}
@Override
public String value3() {
return getValue();
}
@Override
public String value4() {
return getDescription();
}
@Override
public String value5() {
return getDisplayName();
}
@Override
public Byte value6() {
return getIsReadonly();
}
@Override
public Long value7() {
return getNamespaceId();
}
@Override
public BaseSysConfigRecord value1(Long value) {
setId(value);
return this;
}
@Override
public BaseSysConfigRecord value2(String value) {
setName(value);
return this;
}
@Override
public BaseSysConfigRecord value3(String value) {
setValue(value);
return this;
}
@Override
public BaseSysConfigRecord value4(String value) {
setDescription(value);
return this;
}
@Override
public BaseSysConfigRecord value5(String value) {
setDisplayName(value);
return this;
}
@Override
public BaseSysConfigRecord value6(Byte value) {
setIsReadonly(value);
return this;
}
@Override
public BaseSysConfigRecord value7(Long value) {
setNamespaceId(value);
return this;
}
@Override
public BaseSysConfigRecord values(Long value1, String value2, String value3, String value4, String value5, Byte value6, Long value7) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached BaseSysConfigRecord
*/
public BaseSysConfigRecord() {
super(BaseSysConfig.BASE_SYS_CONFIG);
}
/**
* Create a detached, initialised BaseSysConfigRecord
*/
public BaseSysConfigRecord(Long id, String name, String value, String description, String displayName, Byte isReadonly, Long namespaceId) {
super(BaseSysConfig.BASE_SYS_CONFIG);
setId(id);
setName(name);
setValue(value);
setDescription(description);
setDisplayName(displayName);
setIsReadonly(isReadonly);
setNamespaceId(namespaceId);
}
}

View File

@ -0,0 +1,483 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables.records;
import com.cecilia.pojo.entity.tables.BaseUserOrgs;
import java.time.LocalDateTime;
import javax.validation.constraints.NotNull;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record11;
import org.jooq.Row11;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseUserOrgsRecord extends UpdatableRecordImpl<BaseUserOrgsRecord> implements Record11<Long, Long, Long, Long, Byte, Byte, LocalDateTime, Long, LocalDateTime, Long, Long> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>cecilia.base_user_orgs.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>cecilia.base_user_orgs.id</code>.
*/
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>cecilia.base_user_orgs.user_id</code>.
*/
public void setUserId(Long value) {
set(1, value);
}
/**
* Getter for <code>cecilia.base_user_orgs.user_id</code>.
*/
@NotNull
public Long getUserId() {
return (Long) get(1);
}
/**
* Setter for <code>cecilia.base_user_orgs.organization_id</code>.
*/
public void setOrganizationId(Long value) {
set(2, value);
}
/**
* Getter for <code>cecilia.base_user_orgs.organization_id</code>.
*/
@NotNull
public Long getOrganizationId() {
return (Long) get(2);
}
/**
* Setter for <code>cecilia.base_user_orgs.detail_id</code>.
*/
public void setDetailId(Long value) {
set(3, value);
}
/**
* Getter for <code>cecilia.base_user_orgs.detail_id</code>.
*/
public Long getDetailId() {
return (Long) get(3);
}
/**
* Setter for <code>cecilia.base_user_orgs.primary_department_flag</code>. 是否主部门0-1-
*/
public void setPrimaryDepartmentFlag(Byte value) {
set(4, value);
}
/**
* Getter for <code>cecilia.base_user_orgs.primary_department_flag</code>. 是否主部门0-1-
*/
public Byte getPrimaryDepartmentFlag() {
return (Byte) get(4);
}
/**
* Setter for <code>cecilia.base_user_orgs.delete_flag</code>.
*/
public void setDeleteFlag(Byte value) {
set(5, value);
}
/**
* Getter for <code>cecilia.base_user_orgs.delete_flag</code>.
*/
public Byte getDeleteFlag() {
return (Byte) get(5);
}
/**
* Setter for <code>cecilia.base_user_orgs.create_time</code>.
*/
public void setCreateTime(LocalDateTime value) {
set(6, value);
}
/**
* Getter for <code>cecilia.base_user_orgs.create_time</code>.
*/
public LocalDateTime getCreateTime() {
return (LocalDateTime) get(6);
}
/**
* Setter for <code>cecilia.base_user_orgs.create_uid</code>.
*/
public void setCreateUid(Long value) {
set(7, value);
}
/**
* Getter for <code>cecilia.base_user_orgs.create_uid</code>.
*/
public Long getCreateUid() {
return (Long) get(7);
}
/**
* Setter for <code>cecilia.base_user_orgs.update_time</code>.
*/
public void setUpdateTime(LocalDateTime value) {
set(8, value);
}
/**
* Getter for <code>cecilia.base_user_orgs.update_time</code>.
*/
public LocalDateTime getUpdateTime() {
return (LocalDateTime) get(8);
}
/**
* Setter for <code>cecilia.base_user_orgs.update_uid</code>.
*/
public void setUpdateUid(Long value) {
set(9, value);
}
/**
* Getter for <code>cecilia.base_user_orgs.update_uid</code>.
*/
public Long getUpdateUid() {
return (Long) get(9);
}
/**
* Setter for <code>cecilia.base_user_orgs.namespace_id</code>.
*/
public void setNamespaceId(Long value) {
set(10, value);
}
/**
* Getter for <code>cecilia.base_user_orgs.namespace_id</code>.
*/
public Long getNamespaceId() {
return (Long) get(10);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record11 type implementation
// -------------------------------------------------------------------------
@Override
public Row11<Long, Long, Long, Long, Byte, Byte, LocalDateTime, Long, LocalDateTime, Long, Long> fieldsRow() {
return (Row11) super.fieldsRow();
}
@Override
public Row11<Long, Long, Long, Long, Byte, Byte, LocalDateTime, Long, LocalDateTime, Long, Long> valuesRow() {
return (Row11) super.valuesRow();
}
@Override
public Field<Long> field1() {
return BaseUserOrgs.BASE_USER_ORGS.ID;
}
@Override
public Field<Long> field2() {
return BaseUserOrgs.BASE_USER_ORGS.USER_ID;
}
@Override
public Field<Long> field3() {
return BaseUserOrgs.BASE_USER_ORGS.ORGANIZATION_ID;
}
@Override
public Field<Long> field4() {
return BaseUserOrgs.BASE_USER_ORGS.DETAIL_ID;
}
@Override
public Field<Byte> field5() {
return BaseUserOrgs.BASE_USER_ORGS.PRIMARY_DEPARTMENT_FLAG;
}
@Override
public Field<Byte> field6() {
return BaseUserOrgs.BASE_USER_ORGS.DELETE_FLAG;
}
@Override
public Field<LocalDateTime> field7() {
return BaseUserOrgs.BASE_USER_ORGS.CREATE_TIME;
}
@Override
public Field<Long> field8() {
return BaseUserOrgs.BASE_USER_ORGS.CREATE_UID;
}
@Override
public Field<LocalDateTime> field9() {
return BaseUserOrgs.BASE_USER_ORGS.UPDATE_TIME;
}
@Override
public Field<Long> field10() {
return BaseUserOrgs.BASE_USER_ORGS.UPDATE_UID;
}
@Override
public Field<Long> field11() {
return BaseUserOrgs.BASE_USER_ORGS.NAMESPACE_ID;
}
@Override
public Long component1() {
return getId();
}
@Override
public Long component2() {
return getUserId();
}
@Override
public Long component3() {
return getOrganizationId();
}
@Override
public Long component4() {
return getDetailId();
}
@Override
public Byte component5() {
return getPrimaryDepartmentFlag();
}
@Override
public Byte component6() {
return getDeleteFlag();
}
@Override
public LocalDateTime component7() {
return getCreateTime();
}
@Override
public Long component8() {
return getCreateUid();
}
@Override
public LocalDateTime component9() {
return getUpdateTime();
}
@Override
public Long component10() {
return getUpdateUid();
}
@Override
public Long component11() {
return getNamespaceId();
}
@Override
public Long value1() {
return getId();
}
@Override
public Long value2() {
return getUserId();
}
@Override
public Long value3() {
return getOrganizationId();
}
@Override
public Long value4() {
return getDetailId();
}
@Override
public Byte value5() {
return getPrimaryDepartmentFlag();
}
@Override
public Byte value6() {
return getDeleteFlag();
}
@Override
public LocalDateTime value7() {
return getCreateTime();
}
@Override
public Long value8() {
return getCreateUid();
}
@Override
public LocalDateTime value9() {
return getUpdateTime();
}
@Override
public Long value10() {
return getUpdateUid();
}
@Override
public Long value11() {
return getNamespaceId();
}
@Override
public BaseUserOrgsRecord value1(Long value) {
setId(value);
return this;
}
@Override
public BaseUserOrgsRecord value2(Long value) {
setUserId(value);
return this;
}
@Override
public BaseUserOrgsRecord value3(Long value) {
setOrganizationId(value);
return this;
}
@Override
public BaseUserOrgsRecord value4(Long value) {
setDetailId(value);
return this;
}
@Override
public BaseUserOrgsRecord value5(Byte value) {
setPrimaryDepartmentFlag(value);
return this;
}
@Override
public BaseUserOrgsRecord value6(Byte value) {
setDeleteFlag(value);
return this;
}
@Override
public BaseUserOrgsRecord value7(LocalDateTime value) {
setCreateTime(value);
return this;
}
@Override
public BaseUserOrgsRecord value8(Long value) {
setCreateUid(value);
return this;
}
@Override
public BaseUserOrgsRecord value9(LocalDateTime value) {
setUpdateTime(value);
return this;
}
@Override
public BaseUserOrgsRecord value10(Long value) {
setUpdateUid(value);
return this;
}
@Override
public BaseUserOrgsRecord value11(Long value) {
setNamespaceId(value);
return this;
}
@Override
public BaseUserOrgsRecord values(Long value1, Long value2, Long value3, Long value4, Byte value5, Byte value6, LocalDateTime value7, Long value8, LocalDateTime value9, Long value10, Long value11) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
value10(value10);
value11(value11);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached BaseUserOrgsRecord
*/
public BaseUserOrgsRecord() {
super(BaseUserOrgs.BASE_USER_ORGS);
}
/**
* Create a detached, initialised BaseUserOrgsRecord
*/
public BaseUserOrgsRecord(Long id, Long userId, Long organizationId, Long detailId, Byte primaryDepartmentFlag, Byte deleteFlag, LocalDateTime createTime, Long createUid, LocalDateTime updateTime, Long updateUid, Long namespaceId) {
super(BaseUserOrgs.BASE_USER_ORGS);
setId(id);
setUserId(userId);
setOrganizationId(organizationId);
setDetailId(detailId);
setPrimaryDepartmentFlag(primaryDepartmentFlag);
setDeleteFlag(deleteFlag);
setCreateTime(createTime);
setCreateUid(createUid);
setUpdateTime(updateTime);
setUpdateUid(updateUid);
setNamespaceId(namespaceId);
}
}

View File

@ -0,0 +1,562 @@
/*
* This file is generated by jOOQ.
*/
package com.cecilia.pojo.entity.tables.records;
import com.cecilia.pojo.entity.tables.BaseUser;
import java.time.LocalDateTime;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record13;
import org.jooq.Row13;
import org.jooq.impl.UpdatableRecordImpl;
/**
* 系统用户表
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BaseUserRecord extends UpdatableRecordImpl<BaseUserRecord> implements Record13<Long, String, String, String, String, String, Byte, LocalDateTime, Long, LocalDateTime, Long, LocalDateTime, Long> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>cecilia.base_user.id</code>.
*/
public void setId(Long value) {
set(0, value);
}
/**
* Getter for <code>cecilia.base_user.id</code>.
*/
@NotNull
public Long getId() {
return (Long) get(0);
}
/**
* Setter for <code>cecilia.base_user.user_name</code>.
*/
public void setUserName(String value) {
set(1, value);
}
/**
* Getter for <code>cecilia.base_user.user_name</code>.
*/
@Size(max = 255)
public String getUserName() {
return (String) get(1);
}
/**
* Setter for <code>cecilia.base_user.nick_name</code>.
*/
public void setNickName(String value) {
set(2, value);
}
/**
* Getter for <code>cecilia.base_user.nick_name</code>.
*/
@Size(max = 255)
public String getNickName() {
return (String) get(2);
}
/**
* Setter for <code>cecilia.base_user.identifier_account</code>.
*/
public void setIdentifierAccount(String value) {
set(3, value);
}
/**
* Getter for <code>cecilia.base_user.identifier_account</code>.
*/
@Size(max = 255)
public String getIdentifierAccount() {
return (String) get(3);
}
/**
* Setter for <code>cecilia.base_user.password_hash</code>.
*/
public void setPasswordHash(String value) {
set(4, value);
}
/**
* Getter for <code>cecilia.base_user.password_hash</code>.
*/
@Size(max = 255)
public String getPasswordHash() {
return (String) get(4);
}
/**
* Setter for <code>cecilia.base_user.identifier_token</code>.
*/
public void setIdentifierToken(String value) {
set(5, value);
}
/**
* Getter for <code>cecilia.base_user.identifier_token</code>.
*/
@Size(max = 255)
public String getIdentifierToken() {
return (String) get(5);
}
/**
* Setter for <code>cecilia.base_user.status</code>. 0 未激活1 可登录 2 3 禁止登录 4 已注销 5
*/
public void setStatus(Byte value) {
set(6, value);
}
/**
* Getter for <code>cecilia.base_user.status</code>. 0 未激活1 可登录 2 3 禁止登录 4 已注销 5
*/
public Byte getStatus() {
return (Byte) get(6);
}
/**
* Setter for <code>cecilia.base_user.create_time</code>. 创建时间
*/
public void setCreateTime(LocalDateTime value) {
set(7, value);
}
/**
* Getter for <code>cecilia.base_user.create_time</code>. 创建时间
*/
public LocalDateTime getCreateTime() {
return (LocalDateTime) get(7);
}
/**
* Setter for <code>cecilia.base_user.create_uid</code>. 创建人
*/
public void setCreateUid(Long value) {
set(8, value);
}
/**
* Getter for <code>cecilia.base_user.create_uid</code>. 创建人
*/
public Long getCreateUid() {
return (Long) get(8);
}
/**
* Setter for <code>cecilia.base_user.update_time</code>. 修改时间
*/
public void setUpdateTime(LocalDateTime value) {
set(9, value);
}
/**
* Getter for <code>cecilia.base_user.update_time</code>. 修改时间
*/
public LocalDateTime getUpdateTime() {
return (LocalDateTime) get(9);
}
/**
* Setter for <code>cecilia.base_user.update_uid</code>. 修改人
*/
public void setUpdateUid(Long value) {
set(10, value);
}
/**
* Getter for <code>cecilia.base_user.update_uid</code>. 修改人
*/
public Long getUpdateUid() {
return (Long) get(10);
}
/**
* Setter for <code>cecilia.base_user.cancel_time</code>. 注销时间
*/
public void setCancelTime(LocalDateTime value) {
set(11, value);
}
/**
* Getter for <code>cecilia.base_user.cancel_time</code>. 注销时间
*/
public LocalDateTime getCancelTime() {
return (LocalDateTime) get(11);
}
/**
* Setter for <code>cecilia.base_user.namespace_id</code>.
*/
public void setNamespaceId(Long value) {
set(12, value);
}
/**
* Getter for <code>cecilia.base_user.namespace_id</code>.
*/
public Long getNamespaceId() {
return (Long) get(12);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record13 type implementation
// -------------------------------------------------------------------------
@Override
public Row13<Long, String, String, String, String, String, Byte, LocalDateTime, Long, LocalDateTime, Long, LocalDateTime, Long> fieldsRow() {
return (Row13) super.fieldsRow();
}
@Override
public Row13<Long, String, String, String, String, String, Byte, LocalDateTime, Long, LocalDateTime, Long, LocalDateTime, Long> valuesRow() {
return (Row13) super.valuesRow();
}
@Override
public Field<Long> field1() {
return BaseUser.BASE_USER.ID;
}
@Override
public Field<String> field2() {
return BaseUser.BASE_USER.USER_NAME;
}
@Override
public Field<String> field3() {
return BaseUser.BASE_USER.NICK_NAME;
}
@Override
public Field<String> field4() {
return BaseUser.BASE_USER.IDENTIFIER_ACCOUNT;
}
@Override
public Field<String> field5() {
return BaseUser.BASE_USER.PASSWORD_HASH;
}
@Override
public Field<String> field6() {
return BaseUser.BASE_USER.IDENTIFIER_TOKEN;
}
@Override
public Field<Byte> field7() {
return BaseUser.BASE_USER.STATUS;
}
@Override
public Field<LocalDateTime> field8() {
return BaseUser.BASE_USER.CREATE_TIME;
}
@Override
public Field<Long> field9() {
return BaseUser.BASE_USER.CREATE_UID;
}
@Override
public Field<LocalDateTime> field10() {
return BaseUser.BASE_USER.UPDATE_TIME;
}
@Override
public Field<Long> field11() {
return BaseUser.BASE_USER.UPDATE_UID;
}
@Override
public Field<LocalDateTime> field12() {
return BaseUser.BASE_USER.CANCEL_TIME;
}
@Override
public Field<Long> field13() {
return BaseUser.BASE_USER.NAMESPACE_ID;
}
@Override
public Long component1() {
return getId();
}
@Override
public String component2() {
return getUserName();
}
@Override
public String component3() {
return getNickName();
}
@Override
public String component4() {
return getIdentifierAccount();
}
@Override
public String component5() {
return getPasswordHash();
}
@Override
public String component6() {
return getIdentifierToken();
}
@Override
public Byte component7() {
return getStatus();
}
@Override
public LocalDateTime component8() {
return getCreateTime();
}
@Override
public Long component9() {
return getCreateUid();
}
@Override
public LocalDateTime component10() {
return getUpdateTime();
}
@Override
public Long component11() {
return getUpdateUid();
}
@Override
public LocalDateTime component12() {
return getCancelTime();
}
@Override
public Long component13() {
return getNamespaceId();
}
@Override
public Long value1() {
return getId();
}
@Override
public String value2() {
return getUserName();
}
@Override
public String value3() {
return getNickName();
}
@Override
public String value4() {
return getIdentifierAccount();
}
@Override
public String value5() {
return getPasswordHash();
}
@Override
public String value6() {
return getIdentifierToken();
}
@Override
public Byte value7() {
return getStatus();
}
@Override
public LocalDateTime value8() {
return getCreateTime();
}
@Override
public Long value9() {
return getCreateUid();
}
@Override
public LocalDateTime value10() {
return getUpdateTime();
}
@Override
public Long value11() {
return getUpdateUid();
}
@Override
public LocalDateTime value12() {
return getCancelTime();
}
@Override
public Long value13() {
return getNamespaceId();
}
@Override
public BaseUserRecord value1(Long value) {
setId(value);
return this;
}
@Override
public BaseUserRecord value2(String value) {
setUserName(value);
return this;
}
@Override
public BaseUserRecord value3(String value) {
setNickName(value);
return this;
}
@Override
public BaseUserRecord value4(String value) {
setIdentifierAccount(value);
return this;
}
@Override
public BaseUserRecord value5(String value) {
setPasswordHash(value);
return this;
}
@Override
public BaseUserRecord value6(String value) {
setIdentifierToken(value);
return this;
}
@Override
public BaseUserRecord value7(Byte value) {
setStatus(value);
return this;
}
@Override
public BaseUserRecord value8(LocalDateTime value) {
setCreateTime(value);
return this;
}
@Override
public BaseUserRecord value9(Long value) {
setCreateUid(value);
return this;
}
@Override
public BaseUserRecord value10(LocalDateTime value) {
setUpdateTime(value);
return this;
}
@Override
public BaseUserRecord value11(Long value) {
setUpdateUid(value);
return this;
}
@Override
public BaseUserRecord value12(LocalDateTime value) {
setCancelTime(value);
return this;
}
@Override
public BaseUserRecord value13(Long value) {
setNamespaceId(value);
return this;
}
@Override
public BaseUserRecord values(Long value1, String value2, String value3, String value4, String value5, String value6, Byte value7, LocalDateTime value8, Long value9, LocalDateTime value10, Long value11, LocalDateTime value12, Long value13) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
value10(value10);
value11(value11);
value12(value12);
value13(value13);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached BaseUserRecord
*/
public BaseUserRecord() {
super(BaseUser.BASE_USER);
}
/**
* Create a detached, initialised BaseUserRecord
*/
public BaseUserRecord(Long id, String userName, String nickName, String identifierAccount, String passwordHash, String identifierToken, Byte status, LocalDateTime createTime, Long createUid, LocalDateTime updateTime, Long updateUid, LocalDateTime cancelTime, Long namespaceId) {
super(BaseUser.BASE_USER);
setId(id);
setUserName(userName);
setNickName(nickName);
setIdentifierAccount(identifierAccount);
setPasswordHash(passwordHash);
setIdentifierToken(identifierToken);
setStatus(status);
setCreateTime(createTime);
setCreateUid(createUid);
setUpdateTime(updateTime);
setUpdateUid(updateUid);
setCancelTime(cancelTime);
setNamespaceId(namespaceId);
}
}

View File

@ -1,4 +0,0 @@
package com.cecilia.pojo.response.demo;
public class DemoRsp {
}

View File

@ -1,4 +0,0 @@
package com.cecilia.pojo.response.test;
public class TestRsp {
}

View File

@ -12,6 +12,12 @@ spring:
password: 12345678
type: com.zaxxer.hikari.HikariDataSource
redis:
host: 192.168.217.100
port: 6379
database: 1
password: 12345678
# elasticsearch:
# uris: localhost:9200
# cluster-name: elasticsearch
@ -38,4 +44,8 @@ spring:
value-deserializer: org.apache.kafka.common.serialization.ByteArrayDeserializer
producer:
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.apache.kafka.common.serialization.StringSerializer
jwt:
secret: "cecilia"
expiration: 36000

View File

@ -1,7 +1,7 @@
/*
Navicat Premium Data Transfer
Source Server : localhost-php-study
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50726 (5.7.26)
Source Host : localhost:3306
@ -11,7 +11,7 @@
Target Server Version : 50726 (5.7.26)
File Encoding : 65001
Date: 08/01/2025 16:44:32
Date: 03/04/2025 16:00:18
*/
SET NAMES utf8mb4;
@ -22,24 +22,24 @@ SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
DROP TABLE IF EXISTS `base_data_holiday`;
CREATE TABLE `base_data_holiday` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '唯一id',
`date` date NULL DEFAULT NULL COMMENT '日期',
`week` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '周几',
`nonglinian` int(11) NULL DEFAULT NULL COMMENT '农历年份',
`nongliyue` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '农历月',
`nongliri` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '农历日',
`nianganzhi` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`shuxiang` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生肖',
`str_descrip` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述',
`towork` int(11) NULL DEFAULT 0 COMMENT '调休0 正常上班 1放假 2周末调休',
`gonglijieri` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '公历节日',
`nonglijieri` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '农历节日',
`jieqi` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '节气',
`teshujieri` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '特殊节日',
`runyue` int(11) NULL DEFAULT NULL COMMENT '润月',
PRIMARY KEY (`id`) USING BTREE,
INDEX `IDX_DATE`(`date`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10394 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '节假日数据表' ROW_FORMAT = Dynamic;
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '唯一id',
`date` date NULL DEFAULT NULL COMMENT '日期',
`week` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '周几',
`nonglinian` int(11) NULL DEFAULT NULL COMMENT '农历年份',
`nongliyue` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '农历月',
`nongliri` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '农历日',
`nianganzhi` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`shuxiang` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生肖',
`str_descrip` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述',
`towork` int(11) NULL DEFAULT 0 COMMENT '调休0 正常上班 1放假 2周末调休',
`gonglijieri` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '公历节日',
`nonglijieri` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '农历节日',
`jieqi` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '节气',
`teshujieri` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '特殊节日',
`runyue` int(11) NULL DEFAULT NULL COMMENT '润月',
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_date`(`date`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10394 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '节假日数据表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of base_data_holiday
@ -10443,26 +10443,24 @@ INSERT INTO `base_data_holiday` VALUES (10393, '2048-06-14', '星期日', 2048,
-- ----------------------------
DROP TABLE IF EXISTS `base_dic`;
CREATE TABLE `base_dic` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型编码',
`code` int(10) NULL DEFAULT NULL COMMENT '编码',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称',
`parenet_code` int(10) NULL DEFAULT NULL COMMENT '父编码',
`tree_code` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '树编码',
`order` int(11) NULL DEFAULT NULL COMMENT '排序(正序)',
`level` int(11) NULL DEFAULT NULL COMMENT '级别',
`business_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务数据',
`filter_item` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '过滤项',
`creator_uid` bigint(20) NULL DEFAULT NULL COMMENT '创建者用户id',
`create_time` datetime NULL DEFAULT NULL COMMENT '记录创建时间',
`operator_uid` bigint(20) NULL DEFAULT NULL COMMENT '更新人用户id',
`update_time` datetime NULL DEFAULT NULL COMMENT '记录更新时间',
`delete_flag` tinyint(2) NULL DEFAULT NULL COMMENT '是否删除标识位(0未删除1已删除)',
`is_enable` int(11) NULL DEFAULT NULL COMMENT '是否启用',
`app_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多应用的应用id',
`namespace_id` int(20) NULL DEFAULT NULL COMMENT '域空间id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典表' ROW_FORMAT = Dynamic;
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型编码',
`code` int(10) NULL DEFAULT NULL COMMENT '编码',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称',
`parenet_code` int(10) NULL DEFAULT NULL COMMENT '父编码',
`tree_code` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '树编码',
`order` int(11) NULL DEFAULT NULL COMMENT '排序(正序)',
`level` int(11) NULL DEFAULT NULL COMMENT '级别',
`business_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务数据',
`create_time` datetime NULL DEFAULT NULL COMMENT '记录创建时间',
`create_uid` bigint(20) NULL DEFAULT NULL COMMENT '创建者用户id',
`update_time` datetime NULL DEFAULT NULL COMMENT '记录更新时间',
`update_uid` bigint(20) NULL DEFAULT NULL COMMENT '更新人用户id',
`delete_flag` tinyint(4) NULL DEFAULT NULL COMMENT '是否删除标识位(0未删除1已删除)',
`is_enable` tinyint(4) NULL DEFAULT NULL COMMENT '是否启用',
`namespace_id` bigint(20) NULL DEFAULT NULL COMMENT '域空间id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of base_dic
@ -10473,22 +10471,119 @@ CREATE TABLE `base_dic` (
-- ----------------------------
DROP TABLE IF EXISTS `base_dic_type`;
CREATE TABLE `base_dic_type` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型编码',
`type_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称',
`order` int(11) NULL DEFAULT NULL COMMENT '排序',
`creator_uid` bigint(20) NULL DEFAULT NULL COMMENT '创建者用户id',
`create_time` datetime NULL DEFAULT NULL COMMENT '记录创建时间',
`operator_uid` bigint(20) NULL DEFAULT NULL COMMENT '更新人用户id',
`update_time` datetime NULL DEFAULT NULL COMMENT '记录更新时间',
`delete_flag` tinyint(2) NULL DEFAULT NULL COMMENT '是否删除标识位(0未删除1已删除)',
`app_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多应用的应用id',
`namespace_id` int(20) NULL DEFAULT NULL COMMENT '域空间id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典类型表' ROW_FORMAT = Dynamic;
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型编码',
`type_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称',
`order` int(11) NULL DEFAULT NULL COMMENT '排序',
`create_time` datetime NULL DEFAULT NULL COMMENT '记录创建时间',
`create_uid` bigint(20) NULL DEFAULT NULL COMMENT '创建者用户id',
`update_time` datetime NULL DEFAULT NULL COMMENT '记录更新时间',
`update_uid` bigint(20) NULL DEFAULT NULL COMMENT '更新人用户id',
`delete_flag` tinyint(4) NULL DEFAULT NULL COMMENT '是否删除标识位(0未删除1已删除)',
`namespace_id` bigint(20) NULL DEFAULT NULL COMMENT '域空间id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典类型表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of base_dic_type
-- ----------------------------
-- ----------------------------
-- Table structure for base_organizations
-- ----------------------------
DROP TABLE IF EXISTS `base_organizations`;
CREATE TABLE `base_organizations` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`parent_id` bigint(20) NULL DEFAULT NULL,
`org_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`org_no` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门编号(仅group_type=DEPARTMENT才有)',
`path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`level` int(11) NOT NULL DEFAULT 0,
`status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1: inactive, 2: active, 3: locked, 4: mark as deleted',
`group_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'ENTERPRISE, DEPARTMENT, GROUP, JOB_POSITION, JOB_LEVEL, MANAGER',
`order` int(11) NULL DEFAULT 0,
`create_time` datetime NULL DEFAULT NULL,
`create_uid` bigint(20) NULL DEFAULT NULL,
`update_time` datetime NULL DEFAULT NULL,
`update_uid` bigint(20) NULL DEFAULT NULL,
`namespace_id` bigint(20) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_org_path`(`path`) USING BTREE,
INDEX `idx_org_parent`(`parent_id`) USING BTREE,
INDEX `idx_org_no`(`org_no`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of base_organizations
-- ----------------------------
-- ----------------------------
-- Table structure for base_sys_config
-- ----------------------------
DROP TABLE IF EXISTS `base_sys_config`;
CREATE TABLE `base_sys_config` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`display_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`is_readonly` tinyint(4) NULL DEFAULT NULL COMMENT '是否只读0 否1是',
`namespace_id` bigint(20) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of base_sys_config
-- ----------------------------
-- ----------------------------
-- Table structure for base_user
-- ----------------------------
DROP TABLE IF EXISTS `base_user`;
CREATE TABLE `base_user` (
`id` bigint(20) NOT NULL,
`user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`nick_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`identifier_account` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`salt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`password_hash` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`identifier_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0 未激活1 可登录, 2 3 禁止登录, 4 已注销, 5',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
`create_uid` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
`update_uid` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`cancel_time` datetime NULL DEFAULT NULL COMMENT '注销时间',
`namespace_id` bigint(20) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_salt_password_hash`(`salt`, `password_hash`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统用户表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of base_user
-- ----------------------------
-- ----------------------------
-- Table structure for base_user_orgs
-- ----------------------------
DROP TABLE IF EXISTS `base_user_orgs`;
CREATE TABLE `base_user_orgs` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL,
`organization_id` bigint(20) NOT NULL,
`detail_id` bigint(20) NULL DEFAULT NULL,
`primary_department_flag` tinyint(4) NOT NULL DEFAULT 1 COMMENT '是否主部门0-否1-是',
`delete_flag` tinyint(4) NOT NULL DEFAULT 1,
`create_time` datetime NULL DEFAULT NULL,
`create_uid` bigint(20) NULL DEFAULT NULL,
`update_time` datetime NULL DEFAULT NULL,
`update_uid` bigint(20) NULL DEFAULT NULL,
`namespace_id` bigint(20) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of base_user_orgs
-- ----------------------------
SET FOREIGN_KEY_CHECKS = 1;

View File

@ -2,9 +2,9 @@
<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd">
<jdbc>
<driver>com.mysql.cj.jdbc.Driver</driver>
<url>jdbc:mysql://localhost:3306/cecilia</url>
<url>jdbc:mysql://192.168.217.100:3306/cecilia</url>
<user>root</user>
<password>root</password>
<password>12345678</password>
</jdbc>
<generator>