提交 cb192ed3 编写于 作者: MoneyQ's avatar MoneyQ

init

上级 4c36fe03
# 系统概览 iBiz4j Spring R7 dev
<?xml version='1.1' encoding='UTF-8'?>
<project>
<actions/>
<description>DemoSys</description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition>
<name>para1</name>
<description></description>
<defaultValue>para1</defaultValue>
<trim>false</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>para2</name>
<description></description>
<defaultValue>para2</defaultValue>
<trim>false</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>para3</name>
<description></description>
<defaultValue>para3</defaultValue>
<trim>false</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>para4</name>
<description></description>
<defaultValue>para4</defaultValue>
<trim>false</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>para5</name>
<description></description>
<defaultValue>para5</defaultValue>
<trim>false</trim>
</hudson.model.StringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>
BUILD_ID=DONTKILLME
source /etc/profile
rm -rf demosys
git clone -b master $para2 demosys/
export NODE_OPTIONS=--max-old-space-size=4096
cd demosys/
</command>
</hudson.tasks.Shell>
</builders>
<publishers>
<hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup@0.34">
<patterns class="empty-list"/>
<deleteDirs>false</deleteDirs>
<skipWhenFailed>false</skipWhenFailed>
<cleanWhenSuccess>true</cleanWhenSuccess>
<cleanWhenUnstable>true</cleanWhenUnstable>
<cleanWhenFailure>true</cleanWhenFailure>
<cleanWhenNotBuilt>true</cleanWhenNotBuilt>
<cleanWhenAborted>true</cleanWhenAborted>
<notFailBuild>false</notFailBuild>
<cleanupMatrixParent>false</cleanupMatrixParent>
<externalDelete></externalDelete>
</hudson.plugins.ws__cleanup.WsCleanup>
</publishers>
<buildWrappers/>
</project>
此差异已折叠。
FROM image.ibizlab.cn/library/openjdk:8-jre-alpine
ENV TZ=Asia/Shanghai \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
IBIZ_SLEEP=0 \
JAVA_OPTS=""
CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Duser.timezone=$TZ -Djava.security.egd=file:/dev/./urandom -jar /demo-app-web.jar
EXPOSE 8080
ADD demo-app-web.jar /demo-app-web.jar
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-app-web
labels:
app: demo-app-web
spec:
replicas: 1
selector:
matchLabels:
app: demo-app-web
template:
metadata:
labels:
app: demo-app-web
spec:
imagePullSecrets:
- name: aly-shanghai
containers:
- name: demo-app-web
image: registry.cn-shanghai.aliyuncs.com/ibizsys/demo-app-web:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
volumeMounts:
- name: data
mountPath: /app/file
volumes:
- name: data
persistentVolumeClaim:
claimName: demo-date-pvc-nfs
---
apiVersion: v1
kind: Service
metadata:
name: demo-app-web
labels:
app: demo-app-web
spec:
type: NodePort
ports:
- name: http
port: 8080
targetPort: 8080
nodePort: 8080
protocol: TCP
selector:
app: demo-app-web
version: "3.2"
services:
demo-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/demo-app-web:latest
ports:
- "8080:8080"
networks:
- agent_network
deploy:
resources:
limits:
memory: 800M
reservations:
memory: 400M
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 3
window: 120s
volumes:
- "nfs:/app/file"
volumes:
nfs:
driver: local
driver_opts:
type: "nfs"
o: "addr=172.16.240.109,rw"
device: ":/nfs"
networks:
agent_network:
driver: overlay
attachable: true
FROM registry.cn-shanghai.aliyuncs.com/ibizops/tongweb:arm-7.0
ENV TZ Asia/Shanghai
ENV LANG C.UTF-8
WORKDIR /opt/tongtech
ADD demo-app-web.war .
RUN echo -e 'export LANG="zh_CN.UTF-8"\nexport LC_ALL="zh_CN.UTF-8"' > /etc/locale.conf
RUN unzip -oq demo-app-web.war -d ./TongWeb7.0/deployment/jcyweb
ENTRYPOINT /opt/tongtech/TongWeb7.0/bin/startserver.sh
package cn.ibizlab.web;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClientsConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import cn.ibizlab.util.web.SearchContextHandlerMethodArgumentResolver;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
@Slf4j
@Import({
FeignClientsConfiguration.class
})
@EnableDiscoveryClient
@Configuration
@EnableFeignClients(basePackages = {"cn.ibizlab" })
@EnableZuulProxy
@ComponentScan(basePackages = {"cn.ibizlab.web","cn.ibizlab.util"})
@MapperScan("cn.ibizlab.*.mapper")
@SpringBootApplication(exclude = {
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
})
public class WebApplication extends WebMvcConfigurerAdapter {
@Autowired
SearchContextHandlerMethodArgumentResolver resolver;
public static void main(String[] args) {
SpringApplication.run(WebApplication.class, args);
}
@Override
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
super.addArgumentResolvers(argumentResolvers);
argumentResolvers.add(resolver);
}
}
package cn.ibizlab.web.config;
import cn.ibizlab.util.security.AuthenticationEntryPoint;
import cn.ibizlab.util.security.AuthorizationTokenFilter;
import cn.ibizlab.util.service.AuthenticationUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.config.core.GrantedAuthorityDefaults;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
import org.springframework.context.annotation.Profile;
import org.springframework.beans.factory.annotation.Qualifier;
@Profile("web-prod")
@Configuration
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
private AuthenticationEntryPoint unauthorizedHandler;
@Autowired
private AuthenticationUserService userDetailsService;
/**
* 自定义基于JWT的安全过滤器
*/
@Autowired
AuthorizationTokenFilter authenticationTokenFilter;
@Value("${ibiz.auth.path:v7/login}")
private String loginPath;
@Value("${ibiz.auth.logoutpath:v7/logout}")
private String logoutPath;
@Value("${ibiz.file.uploadpath:ibizutil/upload}")
private String uploadpath;
@Value("${ibiz.file.downloadpath:ibizutil/download}")
private String downloadpath;
@Value("${ibiz.file.previewpath:ibizutil/preview}")
private String previewpath;
@Value("${ibiz.auth.excludesPattern:}")
private String[] excludesPattern;
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
auth
.userDetailsService(userDetailsService)
.passwordEncoder(passwordEncoderBean());
}
@Bean
GrantedAuthorityDefaults grantedAuthorityDefaults() {
// Remove the ROLE_ prefix
return new GrantedAuthorityDefaults("");
}
@Bean
public PasswordEncoder passwordEncoderBean() {
return new BCryptPasswordEncoder();
}
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
return super.authenticationManagerBean();
}
@Override
protected void configure(HttpSecurity httpSecurity) throws Exception {
httpSecurity
// 禁用 CSRF
.csrf().disable()
// 授权异常
.exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and()
// 不创建会话
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
// 过滤请求
.authorizeRequests()
.antMatchers(
HttpMethod.GET,
"/*.html",
"/**/*.html",
"/**/*.css",
"/**/*.js",
"/**/*.ico",
"/**/assets/**",
"/**/css/**",
"/**/fonts/**",
"/**/js/**",
"/**/img/**",
"/**/svg/**",
"/"
).permitAll()
// 放行登录请求
.antMatchers( HttpMethod.POST, "/"+loginPath).permitAll()
// 放行注销请求
.antMatchers( HttpMethod.GET, "/"+logoutPath).permitAll()
// 文件操作
.antMatchers("/"+downloadpath+"/**").permitAll()
.antMatchers("/"+uploadpath).permitAll()
.antMatchers("/"+previewpath+"/**");
for (String excludePattern : excludesPattern) {
authenticationTokenFilter.addExcludePattern(excludePattern);
httpSecurity.authorizeRequests().antMatchers(excludePattern).permitAll();
}
// 所有请求都需要认证
httpSecurity.authorizeRequests().anyRequest().authenticated()
// 防止iframe 造成跨域
.and().headers().frameOptions().disable();
httpSecurity
.addFilterBefore(authenticationTokenFilter, UsernamePasswordAuthenticationFilter.class);
}
}
server:
port: 51001
#Log配置
logging:
level:
cn.ibizlab: info
#zuul网关路由设置
zuul:
routes:
wfcore:
path: /wfcore/**
serviceId: ${ibiz.ref.service.wf:ibzwf-api}
stripPrefix: true
loginv7:
path: /v7/login
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
changepwd:
path: /v7/changepwd
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
uaa:
path: /uaa/**
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
config:
path: /configs/**
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
oucore:
path: /ibzorganizations/**
serviceId: ${ibiz.ref.service.ou:ibzou-api}
stripPrefix: false
oudict:
path: /dictionarys/**/Ibzou**
serviceId: ${ibiz.ref.service.ou:ibzou-api}
stripPrefix: false
ou:
path: /ibzdepartments/**
serviceId: ${ibiz.ref.service.ou:ibzou-api}
stripPrefix: false
uaadict:
path: /dictionarys/**/SysOperator
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
dict:
path: /dictionarys/**
serviceId: ${ibiz.ref.service.dict:ibzdict-api}
stripPrefix: false
disk:
path: /net-disk/**
serviceId: ${ibiz.ref.service.disk:ibzdisk-api}
stripPrefix: false
ou_sys_org:
path: /sysorganizations/**
serviceId: ${ibiz.ref.service.ou:ibzou-api}
stripPrefix: false
ou_sys_dept:
path: /sysdepartments/**
serviceId: ${ibiz.ref.service.ou:ibzou-api}
stripPrefix: false
lite-core:
path: /lite/**
serviceId: ${ibiz.ref.service.lite:ibzlite-api}
stripPrefix: false
sysauthlog:
path: /sysauthlogs
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
ibizbook:
path: /ibizbooks/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0019:
path: /ibizsample0019s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0009:
path: /ibizsample0009s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizcustom:
path: /ibizcustoms/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizhardware:
path: /ibizhardwares/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0020:
path: /ibizsample0020s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0017:
path: /ibizsample0017s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
microcomponent:
path: /microcomponents/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0013:
path: /ibizsample0013s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizorderdetail:
path: /ibizorderdetails/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0003:
path: /ibizsample0003s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0006:
path: /ibizsample0006s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0021:
path: /ibizsample0021s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizappctrl:
path: /ibizappctrls/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsoftwaresuit:
path: /ibizsoftwaresuits/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibiztaskteam:
path: /ibiztaskteams/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0012:
path: /ibizsample0012s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizordertype:
path: /ibizordertypes/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0005:
path: /ibizsample0005s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizappeditor:
path: /ibizappeditors/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizaccount:
path: /ibizaccounts/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizorder:
path: /ibizorders/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample:
path: /ibizsamples/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizcustomer:
path: /ibizcustomers/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizcustomermg:
path: /ibizcustomermgs/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0014:
path: /ibizsample0014s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0010:
path: /ibizsample0010s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizappview:
path: /ibizappviews/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0018:
path: /ibizsample0018s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0015:
path: /ibizsample0015s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0001:
path: /ibizsample0001s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizcustomer_intf:
path: /ibizcustomer_intfs/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0007:
path: /ibizsample0007s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0004:
path: /ibizsample0004s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0008:
path: /ibizsample0008s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizappextendeditor:
path: /ibizappextendeditors/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizcpu:
path: /ibizcpus/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0002:
path: /ibizsample0002s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizstorage:
path: /ibizstorages/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsupplier:
path: /ibizsuppliers/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibiztask:
path: /ibiztasks/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
dynadashboard:
path: /dynadashboards/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizuniproduct:
path: /ibizuniproducts/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0011:
path: /ibizsample0011s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizsample0016:
path: /ibizsample0016s/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
sensitive-headers:
- Cookie,Set-Cookie,Authorization
spring:
profiles:
include: sys ,nacos, web-prod
application:
name: demosys-web
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">
<property name="LOG_PATH" value="logs" />
<property name="LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] %-40.40logger{39} : %msg%n" />
<!-- 彩色日志 -->
<!-- 彩色日志依赖的渲染类 -->
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" />
<conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" />
<conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" />
<!-- 彩色日志格式 -->
<property name="LOG_PATTERN2" value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr([${LOG_LEVEL_PATTERN:-%5p}]) %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}" />
<!-- 控制台输出 -->
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${LOG_PATTERN}</pattern>
</encoder>
</appender>
<!-- 按照每天生成日志文件 -->
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!--日志文件输出的文件名-->
<FileNamePattern>${LOG_PATH}/demosys-web.%d{yyyy-MM-dd}.log</FileNamePattern>
<!--日志文件保留天数-->
<MaxHistory>30</MaxHistory>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${LOG_PATTERN}</pattern>
</encoder>
<!--日志文件最大的大小-->
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>100MB</MaxFileSize>
</triggeringPolicy>
</appender>
<!-- 日志输出级别 -->
<root level="INFO">
<appender-ref ref="Console" />
<appender-ref ref="file" />
</root>
</configuration>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>demo</artifactId>
<groupId>cn.ibizlab</groupId>
<version>1.0.0.0</version>
</parent>
<artifactId>demo-app</artifactId>
<name>Demo Application</name>
<description>Demo Application</description>
<packaging>pom</packaging>
<modules>
<module>demo-app-web</module>
</modules>
<dependencies>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.9.1</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-zuul</artifactId>
</dependency>
</dependencies>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>demo</artifactId>
<groupId>cn.ibizlab</groupId>
<version>1.0.0.0</version>
</parent>
<artifactId>demo-boot</artifactId>
<name>后台服务 Boot</name>
<description>后台服务 Boot</description>
<dependencies>
<dependency>
<groupId>cn.ibizlab</groupId>
<artifactId>demo-core</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>boot</id>
<build>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>**/**</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<finalName>demo-boot</finalName>
<jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
<mainClass>cn.ibizlab.BootApplication</mainClass>
<outputDirectory>../</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.13</version>
<configuration>
<serverId>ibiz-dev</serverId>
<imageName>dstimage</imageName>
<dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>../</directory>
<include>${project.artifactId}.jar</include>
</resource>
</resources>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>prepare</id>
<configuration>
<executable>cp</executable>
<arguments>
<argument>../${project.artifactId}.jar</argument>
<argument>${project.basedir}/src/main/docker/</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>buildpush</id>
<configuration>
<executable>docker</executable>
<arguments>
<argument>buildx</argument>
<argument>build</argument>
<argument>--platform</argument>
<argument>linux/amd64,linux/arm64</argument>
<argument>-t</argument>
<argument>dstimage</argument>
<argument>${project.basedir}/src/main/docker</argument>
<argument>--push</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>copy-model</id>
<phase>process-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<!-- 输出目录 -->
<outputDirectory>${project.build.outputDirectory}/model--5F541248-A9B7-4D3F-B5D8-76D69D13B5CB--1</outputDirectory>
<resources>
<resource>
<!-- 资源目录 -->
<directory>${project.basedir}/../model</directory>
<includes>
<include>**/**</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>**/**</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<finalName>demo-boot</finalName>
<jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
<mainClass>cn.ibizlab.BootApplication</mainClass>
<outputDirectory>../</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>cn.ibizlab</groupId>
<artifactId>ibizlab-generator-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
<output>
../
</output>
<inputSpec>
../demo-core/src/main/resources/static/model/cn/ibizlab
</inputSpec>
<templateDirs>
${basedir}/src/main/resources/templ
</templateDirs>
<packageName>
${project.groupId}
</packageName>
<name>
${parent.artifactId}
</name>
</configuration>
<dependencies>
<dependency>
<groupId>cn.ibizlab</groupId>
<artifactId>ibizlab-template-ibizedge</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
FROM image.ibizlab.cn/library/openjdk:8-jre-alpine-fonts-v1
ENV TZ=Asia/Shanghai \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
IBIZ_SLEEP=0 \
JAVA_OPTS=""
CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Duser.timezone=$TZ -Djava.security.egd=file:/dev/./urandom -jar /demo-boot.jar
EXPOSE 8081
ADD demo-boot.jar /demo-boot.jar
version: "3.2"
services:
DemoSys-mysql:
image: mysql:5.7.20
volumes:
- $PWD/../../../../volumes/mysql/:/var/lib/mysql/
networks:
- agent_network
environment:
- TZ=Asia/Shanghai
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=a_LAB01_df847bdfd
ports:
- 3306:3306
command: mysqld --lower_case_table_names=1 --skip-ssl --character_set_server=utf8 --explicit_defaults_for_timestamp
networks:
agent_network:
attachable: true
version: "3.2"
services:
DemoSys-nacos:
image: nacos/nacos-server:latest
container_name: nacos-standalone
environment:
- PREFER_HOST_MODE=hostname
- MODE=standalone
ports:
- "8848:8848"
networks:
- agent_network
networks:
agent_network:
attachable: true
version: "3.2"
services:
DemoSys-redis:
image: redis
ports:
- 6379:6379
environment:
- TZ=Asia/Shanghai
logging:
driver: "json-file"
command: redis-server
networks:
- agent_network
networks:
agent_network:
attachable: true
package cn.ibizlab;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import java.util.List;
import cn.ibizlab.util.web.SearchContextHandlerMethodArgumentResolver;
import org.springframework.beans.factory.annotation.Autowired;
@Slf4j
@EnableDiscoveryClient
@Configuration
@EnableTransactionManagement
@EnableFeignClients(basePackages = {"cn.ibizlab.util","cn.ibizlab"})
@SpringBootApplication(exclude = {
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class,
com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure.class
})
@ComponentScan(basePackages = {"cn.ibizlab.util","cn.ibizlab"}
// ,excludeFilters = {
// @ComponentScan.Filter(type= org.springframework.context.annotation.FilterType.REGEX, pattern="cn.ibizlab.xxx.rest.xxx"),
// }
)
@Import({
org.springframework.cloud.openfeign.FeignClientsConfiguration.class
})
@EnableAsync
@EnableScheduling
public class BootApplication extends WebMvcConfigurerAdapter {
@Autowired
SearchContextHandlerMethodArgumentResolver resolver;
public static void main(String[] args) {
SpringApplication.run(BootApplication.class, args);
}
@Override
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
super.addArgumentResolvers(argumentResolvers);
argumentResolvers.add(resolver);
}
}
package cn.ibizlab;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import java.util.List;
import cn.ibizlab.util.web.SearchContextHandlerMethodArgumentResolver;
import org.springframework.beans.factory.annotation.Autowired;
@Slf4j
@EnableDiscoveryClient
@Configuration
@EnableTransactionManagement
@EnableFeignClients(basePackages = {"cn.ibizlab" })
@SpringBootApplication(exclude = {
})
@ComponentScan(basePackages = {"cn.ibizlab"}
// ,excludeFilters = {
// @ComponentScan.Filter(type= org.springframework.context.annotation.FilterType.REGEX, pattern="cn.ibizlab.xxx.rest.xxx"),
// }
)
@Import({
org.springframework.cloud.openfeign.FeignClientsConfiguration.class
})
@EnableAsync
@EnableScheduling
public class DevBootApplication extends WebMvcConfigurerAdapter {
@Autowired
SearchContextHandlerMethodArgumentResolver resolver;
public static void main(String[] args) {
SpringApplication.run(DevBootApplication.class, args);
}
@Override
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
super.addArgumentResolvers(argumentResolvers);
argumentResolvers.add(resolver);
}
}
package cn.ibizlab.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
@Configuration
public class DevBootAutoConfiguration {
}
package cn.ibizlab.config;
import cn.ibizlab.util.security.AuthenticationEntryPoint;
import cn.ibizlab.util.security.AuthorizationTokenFilter;
import cn.ibizlab.util.service.AuthenticationUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.config.core.GrantedAuthorityDefaults;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
import org.springframework.beans.factory.annotation.Qualifier;
@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class DevBootSecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
private AuthenticationEntryPoint unauthorizedHandler;
@Autowired
private AuthenticationUserService userDetailsService;
/**
* 自定义基于JWT的安全过滤器
*/
@Autowired
AuthorizationTokenFilter authenticationTokenFilter;
@Value("${ibiz.auth.path:v7/login}")
private String loginPath;
@Value("${ibiz.auth.logoutpath:v7/logout}")
private String logoutPath;
@Value("${ibiz.file.uploadpath:ibizutil/upload}")
private String uploadpath;
@Value("${ibiz.file.downloadpath:ibizutil/download}")
private String downloadpath;
@Value("${ibiz.file.previewpath:ibizutil/preview}")
private String previewpath;
@Value("${ibiz.auth.excludesPattern:}")
private String[] excludesPattern;
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
auth
.userDetailsService(userDetailsService)
.passwordEncoder(passwordEncoderBean());
}
@Bean
GrantedAuthorityDefaults grantedAuthorityDefaults() {
// Remove the ROLE_ prefix
return new GrantedAuthorityDefaults("");
}
@Bean
public PasswordEncoder passwordEncoderBean() {
return new BCryptPasswordEncoder();
}
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
return super.authenticationManagerBean();
}
@Override
protected void configure(HttpSecurity httpSecurity) throws Exception {
httpSecurity
// 禁用 CSRF
.csrf().disable()
// 授权异常
.exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and()
// 不创建会话
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
// 过滤请求
.authorizeRequests()
.antMatchers(
HttpMethod.GET,
"/*.html",
"/**/*.html",
"/**/*.css",
"/**/*.js",
"/**/*.ico",
"/**/assets/**",
"/**/css/**",
"/**/fonts/**",
"/**/js/**",
"/**/img/**",
"/",
"webjars/**",
"/swagger-resources/**",
"/v2/**"
).permitAll()
//放行登录请求
.antMatchers( HttpMethod.POST, "/"+loginPath).permitAll()
//放行注销请求
.antMatchers( HttpMethod.GET, "/"+logoutPath).permitAll()
// 文件操作
.antMatchers("/"+downloadpath+"/**").permitAll()
.antMatchers("/"+uploadpath).permitAll()
.antMatchers("/"+previewpath+"/**").permitAll();
for (String excludePattern : excludesPattern) {
authenticationTokenFilter.addExcludePattern(excludePattern);
httpSecurity.authorizeRequests().antMatchers(excludePattern).permitAll();
}
httpSecurity.authorizeRequests().anyRequest().authenticated()
// 防止iframe 造成跨域
.and().headers().frameOptions().disable();
httpSecurity
.addFilterBefore(authenticationTokenFilter, UsernamePasswordAuthenticationFilter.class);
}
}
server:
port: 8080
#zuul网关路由设置
zuul:
routes:
wfcore:
path: /wfcore/**
serviceId: ${ibiz.ref.service.wf:ibzwf-api}
stripPrefix: true
loginv7:
path: /v7/login
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
changepwd:
path: /v7/changepwd
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
uaa:
path: /uaa/**
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
config:
path: /configs/**
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
oucore:
path: /ibzorganizations/**
serviceId: ${ibiz.ref.service.ou:ibzou-api}
stripPrefix: false
oudict:
path: /dictionarys/**/Ibzou**
serviceId: ${ibiz.ref.service.ou:ibzou-api}
stripPrefix: false
ou:
path: /ibzdepartments/**
serviceId: ${ibiz.ref.service.ou:ibzou-api}
stripPrefix: false
uaadict:
path: /dictionarys/**/SysOperator
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
dict:
path: /dictionarys/**
serviceId: ${ibiz.ref.service.dict:ibzdict-api}
stripPrefix: false
disk:
path: /net-disk/**
serviceId: ${ibiz.ref.service.disk:ibzdisk-api}
stripPrefix: false
ou_sys_org:
path: /sysorganizations/**
serviceId: ${ibiz.ref.service.ou:ibzou-api}
stripPrefix: false
ou_sys_dept:
path: /sysdepartments/**
serviceId: ${ibiz.ref.service.ou:ibzou-api}
stripPrefix: false
lite-core:
path: /lite/**
serviceId: ${ibiz.ref.service.lite:ibzlite-api}
stripPrefix: false
sysauthlog:
path: /sysauthlogs
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
sensitive-headers:
- Cookie,Set-Cookie,Authorization
spring:
profiles:
include: sys ,nacos, web-dev, demoapi-dev, dev
application:
name: demosys
main:
allow-bean-definition-overriding: true
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">
<property name="LOG_PATH" value="logs" />
<property name="LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] %-40.40logger{39} : %msg%n" />
<!-- 彩色日志 -->
<!-- 彩色日志依赖的渲染类 -->
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" />
<conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" />
<conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" />
<!-- 彩色日志格式 -->
<property name="LOG_PATTERN2" value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr([${LOG_LEVEL_PATTERN:-%5p}]) %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}" />
<!-- 控制台输出 -->
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${LOG_PATTERN}</pattern>
</encoder>
</appender>
<!-- 按照每天生成日志文件 -->
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!--日志文件输出的文件名-->
<FileNamePattern>${LOG_PATH}/demosys.%d{yyyy-MM-dd}.%i.log</FileNamePattern>
<!--日志文件最大的大小-->
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>100MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!--日志文件保留天数-->
<MaxHistory>30</MaxHistory>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${LOG_PATTERN}</pattern>
</encoder>
</appender>
<!-- 日志输出级别 -->
<root level="INFO">
<appender-ref ref="Console" />
<appender-ref ref="file" />
</root>
</configuration>
**.ibizlab-generator-ignore
**.DS_Store
**@macro/**
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>demo</artifactId>
<groupId>cn.ibizlab</groupId>
<version>1.0.0.0</version>
</parent>
<artifactId>demo-core</artifactId>
<name>后台服务 Core</name>
<description>后台服务 Core</description>
<dependencies>
<dependency>
<groupId>cn.ibizlab</groupId>
<artifactId>ibizlab-boot-starter-data</artifactId>
<version>2.4.0-SNAPSHOT</version>
</dependency>
</dependencies>
<properties>
<maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
</properties>
<profiles>
<profile>
<id>diff</id>
<build>
<plugins>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.version}</version>
<executions>
<execution>
<id>prepare-newdb</id>
<configuration>
<changeLogFile>${project.basedir}/src/main/resources/liquibase/h2_table.xml</changeLogFile>
<driver>org.h2.Driver</driver>
<url>jdbc:h2:file:${project.build.directory}/db/new;MODE=mysql</url>
<username>root</username>
<dropFirst>true</dropFirst>
</configuration>
<phase>process-resources</phase>
<goals>
<goal>update</goal>
</goals>
</execution>
<execution>
<id>prepare-olddb</id>
<configuration>
<changeLogFile>${project.basedir}/src/main/resources/liquibase/master_table.xml</changeLogFile>
<driver>org.h2.Driver</driver>
<url>jdbc:h2:file:${project.build.directory}/db/last;MODE=mysql</url>
<username>root</username>
<dropFirst>true</dropFirst>
</configuration>
<phase>process-resources</phase>
<goals>
<goal>update</goal>
</goals>
</execution>
<execution>
<id>make-diff</id>
<configuration>
<changeLogFile>${project.basedir}/src/main/resources/liquibase/empty.xml</changeLogFile>
<diffChangeLogFile>${project.basedir}/src/main/resources/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
<driver>org.h2.Driver</driver>
<url>jdbc:h2:file:${project.build.directory}/db/last;MODE=mysql</url>
<username>root</username>
<password></password>
<referenceUrl>jdbc:h2:file:${project.build.directory}/db/new;MODE=mysql</referenceUrl>
<referenceDriver>org.h2.Driver</referenceDriver>
<referenceUsername>root</referenceUsername>
<verbose>true</verbose>
<logging>debug</logging>
<contexts>!test</contexts>
<diffExcludeObjects>Index:.*,table:ibzfile,ibzuser,ibzdataaudit,ibzcfg,IBZFILE,IBZUSER,IBZDATAAUDIT,IBZCFG</diffExcludeObjects>
</configuration>
<phase>process-resources</phase>
<goals>
<goal>diff</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
package cn.ibizlab.core.extensions.service;
import cn.ibizlab.core.sample.service.impl.IBIZBOOKServiceImpl;
import lombok.extern.slf4j.Slf4j;
import cn.ibizlab.core.sample.domain.IBIZBOOK;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Primary;
import java.util.*;
/**
* 实体[图书] 自定义服务对象
*/
@Slf4j
@Primary
@Service("IBIZBOOKExService")
public class IBIZBOOKExService extends IBIZBOOKServiceImpl {
@Override
protected Class currentModelClass() {
return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1);
}
/**
* [UpdatePress:更新出版社] 行为扩展
* @param et
* @return
*/
@Override
@Transactional
public IBIZBOOK updatePress(IBIZBOOK et) {
return super.updatePress(et);
}
}
package cn.ibizlab.core.extensions.service;
import cn.ibizlab.core.sample.service.impl.IBIZCustomer_INTFServiceImpl;
import lombok.extern.slf4j.Slf4j;
import cn.ibizlab.core.sample.domain.IBIZCustomer_INTF;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Primary;
import java.util.*;
/**
* 实体[客户] 自定义服务对象
*/
@Slf4j
@Primary
@Service("IBIZCustomer_INTFExService")
public class IBIZCustomer_INTFExService extends IBIZCustomer_INTFServiceImpl {
@Override
protected Class currentModelClass() {
return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1);
}
/**
* [XXX] 行为扩展
* @param et
* @return
*/
@Override
@Transactional
public IBIZCustomer_INTF xXX(IBIZCustomer_INTF et) {
return super.xXX(et);
}
}
package cn.ibizlab.core.extensions.service;
import cn.ibizlab.core.sample.service.impl.IBIZOrderServiceImpl;
import lombok.extern.slf4j.Slf4j;
import cn.ibizlab.core.sample.domain.IBIZOrder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Primary;
import java.util.*;
/**
* 实体[订单] 自定义服务对象
*/
@Slf4j
@Primary
@Service("IBIZOrderExService")
public class IBIZOrderExService extends IBIZOrderServiceImpl {
@Override
protected Class currentModelClass() {
return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1);
}
/**
* [BUIAction:后台界面行为] 行为扩展
* @param et
* @return
*/
@Override
@Transactional
public IBIZOrder bUIAction(IBIZOrder et) {
return super.bUIAction(et);
}
/**
* [MulUpdate:行为] 行为扩展
* @param et
* @return
*/
@Override
@Transactional
public IBIZOrder mulUpdate(IBIZOrder et) {
return super.mulUpdate(et);
}
}
package cn.ibizlab.core.extensions.service;
import cn.ibizlab.core.sample.service.impl.IBIZOrderTypeServiceImpl;
import lombok.extern.slf4j.Slf4j;
import cn.ibizlab.core.sample.domain.IBIZOrderType;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Primary;
import java.util.*;
/**
* 实体[订单类型] 自定义服务对象
*/
@Slf4j
@Primary
@Service("IBIZOrderTypeExService")
public class IBIZOrderTypeExService extends IBIZOrderTypeServiceImpl {
@Override
protected Class currentModelClass() {
return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1);
}
/**
* [ResetCodeList] 行为扩展
* @param et
* @return
*/
@Override
@Transactional
public IBIZOrderType resetCodeList(IBIZOrderType et) {
return super.resetCodeList(et);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[应用看板]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_APPKANBAN", resultMap = "APPKANBANResultMap")
public class APPKANBAN extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 应用看板标识
*/
@DEField(isKeyField = true)
@TableId(value = "appkanbanid", type = IdType.ASSIGN_UUID)
@JSONField(name = "appkanbanid")
@JsonProperty("appkanbanid")
private String appkanbanid;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
private Timestamp createdate;
/**
* 建立人
*/
@DEField(preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
private String createman;
/**
* 应用看板名称
*/
@TableField(value = "appkanbanname")
@JSONField(name = "appkanbanname")
@JsonProperty("appkanbanname")
private String appkanbanname;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
private Timestamp updatedate;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
private String updateman;
/**
* 设置 [应用看板名称]
*/
public void setAppkanbanname(String appkanbanname) {
this.appkanbanname = appkanbanname;
this.modify("appkanbanname", appkanbanname);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("appkanbanid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[应用视图信息]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_APPKANBAN", resultMap = "AppkanbanResultMap")
public class Appkanban extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 应用看板标识
*/
@DEField(isKeyField = true)
@TableId(value = "appkanbanid", type = IdType.ASSIGN_UUID)
@JSONField(name = "appkanbanid")
@JsonProperty("appkanbanid")
private String appkanbanid;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
private Timestamp createdate;
/**
* 建立人
*/
@DEField(preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
private String createman;
/**
* 应用看板名称
*/
@TableField(value = "appkanbanname")
@JSONField(name = "appkanbanname")
@JsonProperty("appkanbanname")
private String appkanbanname;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
private Timestamp updatedate;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
private String updateman;
/**
* 设置 [应用看板名称]
*/
public void setAppkanbanname(String appkanbanname) {
this.appkanbanname = appkanbanname;
this.modify("appkanbanname", appkanbanname);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("appkanbanid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[动态数据看板]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_DYNADASHBOARD", resultMap = "DYNADASHBOARDResultMap")
@ApiModel("动态数据看板")
public class DYNADASHBOARD extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 动态数据看板标识
*/
@DEField(isKeyField = true)
@TableId(value = "dynadashboardid", type = IdType.ASSIGN_UUID)
@JSONField(name = "dynadashboardid")
@JsonProperty("dynadashboardid")
@ApiModelProperty("动态数据看板标识")
private String dynadashboardid;
/**
* 动态数据看板名称
*/
@TableField(value = "dynadashboardname")
@JSONField(name = "dynadashboardname")
@JsonProperty("dynadashboardname")
@ApiModelProperty("动态数据看板名称")
private String dynadashboardname;
/**
* 建立人
*/
@DEField(name = "createman", preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate;
/**
* 用户标识
*/
@TableField(value = "userid")
@JSONField(name = "userid")
@JsonProperty("userid")
@ApiModelProperty("用户标识")
private String userid;
/**
* 模型标识
*/
@TableField(value = "modelid")
@JSONField(name = "modelid")
@JsonProperty("modelid")
@ApiModelProperty("模型标识")
private String modelid;
/**
* 应用标识
*/
@TableField(value = "appid")
@JSONField(name = "appid")
@JsonProperty("appid")
@ApiModelProperty("应用标识")
private String appid;
/**
* 模型
*/
@TableField(value = "model")
@JSONField(name = "model")
@JsonProperty("model")
@ApiModelProperty("模型")
private String model;
/**
* 设置 [动态数据看板名称]
*/
public void setDynadashboardname(String dynadashboardname) {
this.dynadashboardname = dynadashboardname;
this.modify("dynadashboardname", dynadashboardname);
}
/**
* 设置 [用户标识]
*/
public void setUserid(String userid) {
this.userid = userid;
this.modify("userid", userid);
}
/**
* 设置 [模型标识]
*/
public void setModelid(String modelid) {
this.modelid = modelid;
this.modify("modelid", modelid);
}
/**
* 设置 [应用标识]
*/
public void setAppid(String appid) {
this.appid = appid;
this.modify("appid", appid);
}
/**
* 设置 [模型]
*/
public void setModel(String model) {
this.model = model;
this.modify("model", model);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("dynadashboardid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[应用部件]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_IBIZAPPCTRL", resultMap = "IBIZAPPCTRLResultMap")
@ApiModel("应用部件")
public class IBIZAPPCTRL extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 应用部件名称
*/
@TableField(value = "ibizappctrlname")
@JSONField(name = "ibizappctrlname")
@JsonProperty("ibizappctrlname")
@ApiModelProperty("应用部件名称")
private String ibizappctrlname;
/**
* 应用部件标识
*/
@DEField(isKeyField = true)
@TableId(value = "ibizappctrlid", type = IdType.ASSIGN_UUID)
@JSONField(name = "ibizappctrlid")
@JsonProperty("ibizappctrlid")
@ApiModelProperty("应用部件标识")
private String ibizappctrlid;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate;
/**
* 建立人
*/
@DEField(name = "createman", preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman;
/**
* 应用部件类型
*/
@TableField(value = "ibizappctrltype")
@JSONField(name = "ibizappctrltype")
@JsonProperty("ibizappctrltype")
@ApiModelProperty("应用部件类型")
private String ibizappctrltype;
/**
* 部件描述
*/
@TableField(value = "ctrldescription")
@JSONField(name = "ctrldescription")
@JsonProperty("ctrldescription")
@ApiModelProperty("部件描述")
private String ctrldescription;
/**
* 文档地址
*/
@TableField(value = "documentaddress")
@JSONField(name = "documentaddress")
@JsonProperty("documentaddress")
@ApiModelProperty("文档地址")
private String documentaddress;
/**
* 数量
*/
@TableField(value = "amount")
@JSONField(name = "amount")
@JsonProperty("amount")
@ApiModelProperty("数量")
private Integer amount;
/**
* 设置 [应用部件名称]
*/
public void setIbizappctrlname(String ibizappctrlname) {
this.ibizappctrlname = ibizappctrlname;
this.modify("ibizappctrlname", ibizappctrlname);
}
/**
* 设置 [应用部件类型]
*/
public void setIbizappctrltype(String ibizappctrltype) {
this.ibizappctrltype = ibizappctrltype;
this.modify("ibizappctrltype", ibizappctrltype);
}
/**
* 设置 [部件描述]
*/
public void setCtrldescription(String ctrldescription) {
this.ctrldescription = ctrldescription;
this.modify("ctrldescription", ctrldescription);
}
/**
* 设置 [文档地址]
*/
public void setDocumentaddress(String documentaddress) {
this.documentaddress = documentaddress;
this.modify("documentaddress", documentaddress);
}
/**
* 设置 [数量]
*/
public void setAmount(Integer amount) {
this.amount = amount;
this.modify("amount", amount);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("ibizappctrlid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[编辑器]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_IBIZAPPEDITOR", resultMap = "IBIZAPPEDITORResultMap")
@ApiModel("编辑器")
public class IBIZAPPEDITOR extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 建立人
*/
@DEField(name = "createman", preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate;
/**
* 编辑器名称
*/
@TableField(value = "ibizappeditorname")
@JSONField(name = "ibizappeditorname")
@JsonProperty("ibizappeditorname")
@ApiModelProperty("编辑器名称")
private String ibizappeditorname;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman;
/**
* 编辑器标识
*/
@DEField(isKeyField = true)
@TableId(value = "ibizappeditorid", type = IdType.ASSIGN_UUID)
@JSONField(name = "ibizappeditorid")
@JsonProperty("ibizappeditorid")
@ApiModelProperty("编辑器标识")
private String ibizappeditorid;
/**
* 编辑器类型
*/
@TableField(value = "ibizappeditortype")
@JSONField(name = "ibizappeditortype")
@JsonProperty("ibizappeditortype")
@ApiModelProperty("编辑器类型")
private String ibizappeditortype;
/**
* 编辑器描述
*/
@TableField(value = "rditordescription")
@JSONField(name = "rditordescription")
@JsonProperty("rditordescription")
@ApiModelProperty("编辑器描述")
private String rditordescription;
/**
* 文档地址
*/
@TableField(value = "documentaddress")
@JSONField(name = "documentaddress")
@JsonProperty("documentaddress")
@ApiModelProperty("文档地址")
private String documentaddress;
/**
* 数量
*/
@TableField(value = "amount")
@JSONField(name = "amount")
@JsonProperty("amount")
@ApiModelProperty("数量")
private Integer amount;
/**
* 设置 [编辑器名称]
*/
public void setIbizappeditorname(String ibizappeditorname) {
this.ibizappeditorname = ibizappeditorname;
this.modify("ibizappeditorname", ibizappeditorname);
}
/**
* 设置 [编辑器类型]
*/
public void setIbizappeditortype(String ibizappeditortype) {
this.ibizappeditortype = ibizappeditortype;
this.modify("ibizappeditortype", ibizappeditortype);
}
/**
* 设置 [编辑器描述]
*/
public void setRditordescription(String rditordescription) {
this.rditordescription = rditordescription;
this.modify("rditordescription", rditordescription);
}
/**
* 设置 [文档地址]
*/
public void setDocumentaddress(String documentaddress) {
this.documentaddress = documentaddress;
this.modify("documentaddress", documentaddress);
}
/**
* 设置 [数量]
*/
public void setAmount(Integer amount) {
this.amount = amount;
this.modify("amount", amount);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("ibizappeditorid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[扩展编辑器]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_IBIZAPPEXTENDEDITOR", resultMap = "IBIZAPPEXTENDEDITORResultMap")
@ApiModel("扩展编辑器")
public class IBIZAPPEXTENDEDITOR extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 建立人
*/
@DEField(name = "createman", preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman;
/**
* 扩展编辑器名称
*/
@TableField(value = "ibizappextendeditorname")
@JSONField(name = "ibizappextendeditorname")
@JsonProperty("ibizappextendeditorname")
@ApiModelProperty("扩展编辑器名称")
private String ibizappextendeditorname;
/**
* 扩展编辑器标识
*/
@DEField(isKeyField = true)
@TableId(value = "ibizappextendeditorid", type = IdType.ASSIGN_UUID)
@JSONField(name = "ibizappextendeditorid")
@JsonProperty("ibizappextendeditorid")
@ApiModelProperty("扩展编辑器标识")
private String ibizappextendeditorid;
/**
* 扩展标识
*/
@TableField(value = "extensionflag")
@JSONField(name = "extensionflag")
@JsonProperty("extensionflag")
@ApiModelProperty("扩展标识")
private String extensionflag;
/**
* 文档地址
*/
@TableField(value = "documentaddress")
@JSONField(name = "documentaddress")
@JsonProperty("documentaddress")
@ApiModelProperty("文档地址")
private String documentaddress;
/**
* 扩展编辑器描述
*/
@TableField(value = "extendeditordescription")
@JSONField(name = "extendeditordescription")
@JsonProperty("extendeditordescription")
@ApiModelProperty("扩展编辑器描述")
private String extendeditordescription;
/**
* 数量
*/
@TableField(value = "amount")
@JSONField(name = "amount")
@JsonProperty("amount")
@ApiModelProperty("数量")
private Integer amount;
/**
* 扩展编辑器类型
*/
@TableField(value = "extendeditortype")
@JSONField(name = "extendeditortype")
@JsonProperty("extendeditortype")
@ApiModelProperty("扩展编辑器类型")
private String extendeditortype;
/**
* 设置 [扩展编辑器名称]
*/
public void setIbizappextendeditorname(String ibizappextendeditorname) {
this.ibizappextendeditorname = ibizappextendeditorname;
this.modify("ibizappextendeditorname", ibizappextendeditorname);
}
/**
* 设置 [扩展标识]
*/
public void setExtensionflag(String extensionflag) {
this.extensionflag = extensionflag;
this.modify("extensionflag", extensionflag);
}
/**
* 设置 [文档地址]
*/
public void setDocumentaddress(String documentaddress) {
this.documentaddress = documentaddress;
this.modify("documentaddress", documentaddress);
}
/**
* 设置 [扩展编辑器描述]
*/
public void setExtendeditordescription(String extendeditordescription) {
this.extendeditordescription = extendeditordescription;
this.modify("extendeditordescription", extendeditordescription);
}
/**
* 设置 [数量]
*/
public void setAmount(Integer amount) {
this.amount = amount;
this.modify("amount", amount);
}
/**
* 设置 [扩展编辑器类型]
*/
public void setExtendeditortype(String extendeditortype) {
this.extendeditortype = extendeditortype;
this.modify("extendeditortype", extendeditortype);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("ibizappextendeditorid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[应用视图]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_IBIZAPPVIEW", resultMap = "IBIZAPPVIEWResultMap")
@ApiModel("应用视图")
public class IBIZAPPVIEW extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 建立人
*/
@DEField(name = "createman", preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate;
/**
* 应用视图名称
*/
@TableField(value = "ibizappviewname")
@JSONField(name = "ibizappviewname")
@JsonProperty("ibizappviewname")
@ApiModelProperty("应用视图名称")
private String ibizappviewname;
/**
* 应用视图标识
*/
@DEField(isKeyField = true)
@TableId(value = "ibizappviewid", type = IdType.ASSIGN_UUID)
@JSONField(name = "ibizappviewid")
@JsonProperty("ibizappviewid")
@ApiModelProperty("应用视图标识")
private String ibizappviewid;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate;
/**
* 应用视图类型
*/
@TableField(value = "ibizappviewtype")
@JSONField(name = "ibizappviewtype")
@JsonProperty("ibizappviewtype")
@ApiModelProperty("应用视图类型")
private String ibizappviewtype;
/**
* 文档地址
*/
@TableField(value = "documentaddress")
@JSONField(name = "documentaddress")
@JsonProperty("documentaddress")
@ApiModelProperty("文档地址")
private String documentaddress;
/**
* 示例地址
*/
@TableField(value = "instanceaddress")
@JSONField(name = "instanceaddress")
@JsonProperty("instanceaddress")
@ApiModelProperty("示例地址")
private String instanceaddress;
/**
* 视图描述
*/
@TableField(value = "viewdescription")
@JSONField(name = "viewdescription")
@JsonProperty("viewdescription")
@ApiModelProperty("视图描述")
private String viewdescription;
/**
* 数量
*/
@TableField(value = "amount")
@JSONField(name = "amount")
@JsonProperty("amount")
@ApiModelProperty("数量")
private Integer amount;
/**
* 设置 [应用视图名称]
*/
public void setIbizappviewname(String ibizappviewname) {
this.ibizappviewname = ibizappviewname;
this.modify("ibizappviewname", ibizappviewname);
}
/**
* 设置 [应用视图类型]
*/
public void setIbizappviewtype(String ibizappviewtype) {
this.ibizappviewtype = ibizappviewtype;
this.modify("ibizappviewtype", ibizappviewtype);
}
/**
* 设置 [文档地址]
*/
public void setDocumentaddress(String documentaddress) {
this.documentaddress = documentaddress;
this.modify("documentaddress", documentaddress);
}
/**
* 设置 [示例地址]
*/
public void setInstanceaddress(String instanceaddress) {
this.instanceaddress = instanceaddress;
this.modify("instanceaddress", instanceaddress);
}
/**
* 设置 [视图描述]
*/
public void setViewdescription(String viewdescription) {
this.viewdescription = viewdescription;
this.modify("viewdescription", viewdescription);
}
/**
* 设置 [数量]
*/
public void setAmount(Integer amount) {
this.amount = amount;
this.modify("amount", amount);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("ibizappviewid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[账户]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_IBIZACCOUNT", resultMap = "IBIZAccountResultMap")
@ApiModel("账户")
public class IBIZAccount extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman;
/**
* 开户行
*/
@TableField(value = "bankname")
@JSONField(name = "bankname")
@JsonProperty("bankname")
@ApiModelProperty("开户行")
private String bankname;
/**
* 账户名称
*/
@TableField(value = "ibizaccountname")
@JSONField(name = "ibizaccountname")
@JsonProperty("ibizaccountname")
@ApiModelProperty("账户名称")
private String ibizaccountname;
/**
* 建立人
*/
@DEField(name = "createman", preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate;
/**
* 开户银行号
*/
@TableField(value = "bankaccountnum")
@JSONField(name = "bankaccountnum")
@JsonProperty("bankaccountnum")
@ApiModelProperty("开户银行号")
private String bankaccountnum;
/**
* 账户标识
*/
@DEField(isKeyField = true)
@TableId(value = "ibizaccountid", type = IdType.ASSIGN_UUID)
@JSONField(name = "ibizaccountid")
@JsonProperty("ibizaccountid")
@ApiModelProperty("账户标识")
private String ibizaccountid;
/**
* 设置 [开户行]
*/
public void setBankname(String bankname) {
this.bankname = bankname;
this.modify("bankname", bankname);
}
/**
* 设置 [账户名称]
*/
public void setIbizaccountname(String ibizaccountname) {
this.ibizaccountname = ibizaccountname;
this.modify("ibizaccountname", ibizaccountname);
}
/**
* 设置 [开户银行号]
*/
public void setBankaccountnum(String bankaccountnum) {
this.bankaccountnum = bankaccountnum;
this.modify("bankaccountnum", bankaccountnum);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("ibizaccountid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[处理器]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_IBIZCPU", resultMap = "IBIZCPUResultMap")
@ApiModel("处理器")
public class IBIZCPU extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate;
/**
* 单位
*/
@TableField(exist = false)
@JSONField(name = "unit")
@JsonProperty("unit")
@ApiModelProperty("单位")
private String unit;
/**
* 建立人
*/
@DEField(name = "createman", preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman;
/**
* 处理器标识
*/
@DEField(isKeyField = true)
@TableId(value = "ibizcpuid", type = IdType.ASSIGN_UUID)
@JSONField(name = "ibizcpuid")
@JsonProperty("ibizcpuid")
@ApiModelProperty("处理器标识")
private String ibizcpuid;
/**
* 产品编号
*/
@TableField(exist = false)
@JSONField(name = "productuid")
@JsonProperty("productuid")
@ApiModelProperty("产品编号")
private String productuid;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman;
/**
* 生产厂商
*/
@TableField(exist = false)
@JSONField(name = "producer")
@JsonProperty("producer")
@ApiModelProperty("生产厂商")
private String producer;
/**
* 分组类型
*/
@TableField(exist = false)
@JSONField(name = "ibizhardwaretype")
@JsonProperty("ibizhardwaretype")
@ApiModelProperty("分组类型")
private String ibizhardwaretype;
/**
* 单价
*/
@TableField(exist = false)
@JSONField(name = "unitprice")
@JsonProperty("unitprice")
@ApiModelProperty("单价")
private Double unitprice;
/**
* 名称
*/
@TableField(value = "ibizcpuname")
@JSONField(name = "ibizcpuname")
@JsonProperty("ibizcpuname")
@ApiModelProperty("名称")
private String ibizcpuname;
/**
* 设置 [名称]
*/
public void setIbizcpuname(String ibizcpuname) {
this.ibizcpuname = ibizcpuname;
this.modify("ibizcpuname", ibizcpuname);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("ibizcpuid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[自定义]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_IBIZCUSTOM", resultMap = "IBIZCustomResultMap")
@ApiModel("自定义")
public class IBIZCustom extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 建立人
*/
@DEField(name = "createman", preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate;
/**
* 自定义名称
*/
@TableField(value = "ibizcustomname")
@JSONField(name = "ibizcustomname")
@JsonProperty("ibizcustomname")
@ApiModelProperty("自定义名称")
private String ibizcustomname;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate;
/**
* 自定义标识
*/
@DEField(isKeyField = true)
@TableId(value = "ibizcustomid", type = IdType.ASSIGN_UUID)
@JSONField(name = "ibizcustomid")
@JsonProperty("ibizcustomid")
@ApiModelProperty("自定义标识")
private String ibizcustomid;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman;
/**
* 设置 [自定义名称]
*/
public void setIbizcustomname(String ibizcustomname) {
this.ibizcustomname = ibizcustomname;
this.modify("ibizcustomname", ibizcustomname);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("ibizcustomid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[客户]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_IBIZCUSTOMER", resultMap = "IBIZCustomerResultMap")
@ApiModel("客户")
public class IBIZCustomer extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 建立人
*/
@DEField(name = "createman", preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman;
/**
* 客户编号
*/
@TableField(value = "sn")
@JSONField(name = "sn")
@JsonProperty("sn")
@ApiModelProperty("客户编号")
private String sn;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate;
/**
* 客户编号
*/
@TableField(value = "customeruid")
@JSONField(name = "customeruid")
@JsonProperty("customeruid")
@ApiModelProperty("客户编号")
private String customeruid;
/**
* 客户标识
*/
@DEField(isKeyField = true)
@TableId(value = "ibizcustomerid", type = IdType.ASSIGN_UUID)
@JSONField(name = "ibizcustomerid")
@JsonProperty("ibizcustomerid")
@ApiModelProperty("客户标识")
private String ibizcustomerid;
/**
* 公司地址
*/
@TableField(value = "address")
@JSONField(name = "address")
@JsonProperty("address")
@ApiModelProperty("公司地址")
private String address;
/**
* 客户名称
*/
@TableField(value = "ibizcustomername")
@JSONField(name = "ibizcustomername")
@JsonProperty("ibizcustomername")
@ApiModelProperty("客户名称")
private String ibizcustomername;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman;
/**
* 设置 [客户编号]
*/
public void setSn(String sn) {
this.sn = sn;
this.modify("sn", sn);
}
/**
* 设置 [客户编号]
*/
public void setCustomeruid(String customeruid) {
this.customeruid = customeruid;
this.modify("customeruid", customeruid);
}
/**
* 设置 [公司地址]
*/
public void setAddress(String address) {
this.address = address;
this.modify("address", address);
}
/**
* 设置 [客户名称]
*/
public void setIbizcustomername(String ibizcustomername) {
this.ibizcustomername = ibizcustomername;
this.modify("ibizcustomername", ibizcustomername);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("ibizcustomerid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[客户管理]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "", resultMap = "IBIZCustomerMGResultMap")
@ApiModel("客户管理")
public class IBIZCustomerMG extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 客户标识
*/
@DEField(isKeyField = true)
@TableField(exist = false)
@JSONField(name = "ibizcustomerid")
@JsonProperty("ibizcustomerid")
@ApiModelProperty("客户标识")
private String ibizcustomerid;
/**
* 客户名称
*/
@TableField(exist = false)
@JSONField(name = "ibizcustomername")
@JsonProperty("ibizcustomername")
@ApiModelProperty("客户名称")
private String ibizcustomername;
/**
* 开户银行号
*/
@TableField(exist = false)
@JSONField(name = "bankaccountnum")
@JsonProperty("bankaccountnum")
@ApiModelProperty("开户银行号")
private String bankaccountnum;
/**
* 开户行
*/
@TableField(exist = false)
@JSONField(name = "bankname")
@JsonProperty("bankname")
@ApiModelProperty("开户行")
private String bankname;
/**
* 公司地址
*/
@TableField(exist = false)
@JSONField(name = "address")
@JsonProperty("address")
@ApiModelProperty("公司地址")
private String address;
/**
* 客户编号
*/
@TableField(exist = false)
@JSONField(name = "customeruid")
@JsonProperty("customeruid")
@ApiModelProperty("客户编号")
private String customeruid;
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("ibizcustomerid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[客户]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_IBIZCUSTOMER", resultMap = "IBIZCustomer_INTFResultMap")
@ApiModel("客户")
public class IBIZCustomer_INTF extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate;
/**
* 客户编号
*/
@TableField(value = "sn")
@JSONField(name = "sn")
@JsonProperty("sn")
@ApiModelProperty("客户编号")
private String sn;
/**
* 客户编号
*/
@TableField(value = "customeruid")
@JSONField(name = "customeruid")
@JsonProperty("customeruid")
@ApiModelProperty("客户编号")
private String customeruid;
/**
* ORGID
*/
@DEField(name = "orgid", preType = DEPredefinedFieldType.ORGID)
@TableField(value = "orgid")
@JSONField(name = "orgid")
@JsonProperty("orgid")
@ApiModelProperty("ORGID")
private String orgid;
/**
* 建立人
*/
@DEField(name = "createman", preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman;
/**
* 公司地址
*/
@TableField(value = "address")
@JSONField(name = "address")
@JsonProperty("address")
@ApiModelProperty("公司地址")
private String address;
/**
* 客户名称
*/
@TableField(value = "ibizcustomername")
@JSONField(name = "ibizcustomername")
@JsonProperty("ibizcustomername")
@ApiModelProperty("客户名称")
private String ibizcustomername;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate;
/**
* 客户标识
*/
@DEField(isKeyField = true)
@TableId(value = "ibizcustomerid", type = IdType.ASSIGN_UUID)
@JSONField(name = "ibizcustomerid")
@JsonProperty("ibizcustomerid")
@ApiModelProperty("客户标识")
private String ibizcustomerid;
/**
* 设置 [客户编号]
*/
public void setSn(String sn) {
this.sn = sn;
this.modify("sn", sn);
}
/**
* 设置 [客户编号]
*/
public void setCustomeruid(String customeruid) {
this.customeruid = customeruid;
this.modify("customeruid", customeruid);
}
/**
* 设置 [公司地址]
*/
public void setAddress(String address) {
this.address = address;
this.modify("address", address);
}
/**
* 设置 [客户名称]
*/
public void setIbizcustomername(String ibizcustomername) {
this.ibizcustomername = ibizcustomername;
this.modify("ibizcustomername", ibizcustomername);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("ibizcustomerid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[硬件]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_IBIZHARDWARE", resultMap = "IBIZHardwareResultMap")
@ApiModel("硬件")
public class IBIZHardware extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 单位
*/
@TableField(value = "unit")
@JSONField(name = "unit")
@JsonProperty("unit")
@ApiModelProperty("单位")
private String unit;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman;
/**
* 分组类型
*/
@TableField(value = "ibizhardwaretype")
@JSONField(name = "ibizhardwaretype")
@JsonProperty("ibizhardwaretype")
@ApiModelProperty("分组类型")
private String ibizhardwaretype;
/**
* 建立人
*/
@DEField(name = "createman", preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate;
/**
* 产品编号
*/
@TableField(value = "productuid")
@JSONField(name = "productuid")
@JsonProperty("productuid")
@ApiModelProperty("产品编号")
private String productuid;
/**
* 硬件标识
*/
@DEField(isKeyField = true)
@TableId(value = "ibizhardwareid", type = IdType.ASSIGN_UUID)
@JSONField(name = "ibizhardwareid")
@JsonProperty("ibizhardwareid")
@ApiModelProperty("硬件标识")
private String ibizhardwareid;
/**
* 名称
*/
@TableField(value = "ibizhardwarename")
@JSONField(name = "ibizhardwarename")
@JsonProperty("ibizhardwarename")
@ApiModelProperty("名称")
private String ibizhardwarename;
/**
* 单价
*/
@TableField(value = "unitprice")
@JSONField(name = "unitprice")
@JsonProperty("unitprice")
@ApiModelProperty("单价")
private Double unitprice;
/**
* 生产厂商
*/
@TableField(value = "producer")
@JSONField(name = "producer")
@JsonProperty("producer")
@ApiModelProperty("生产厂商")
private String producer;
/**
* 设置 [单位]
*/
public void setUnit(String unit) {
this.unit = unit;
this.modify("unit", unit);
}
/**
* 设置 [分组类型]
*/
public void setIbizhardwaretype(String ibizhardwaretype) {
this.ibizhardwaretype = ibizhardwaretype;
this.modify("ibizhardwaretype", ibizhardwaretype);
}
/**
* 设置 [产品编号]
*/
public void setProductuid(String productuid) {
this.productuid = productuid;
this.modify("productuid", productuid);
}
/**
* 设置 [名称]
*/
public void setIbizhardwarename(String ibizhardwarename) {
this.ibizhardwarename = ibizhardwarename;
this.modify("ibizhardwarename", ibizhardwarename);
}
/**
* 设置 [单价]
*/
public void setUnitprice(Double unitprice) {
this.unitprice = unitprice;
this.modify("unitprice", unitprice);
}
/**
* 设置 [生产厂商]
*/
public void setProducer(String producer) {
this.producer = producer;
this.modify("producer", producer);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("ibizhardwareid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[订单类型]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_IBIZORDERTYPE", resultMap = "IBIZOrderTypeResultMap")
@ApiModel("订单类型")
public class IBIZOrderType extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 逻辑有效标志
*/
@DEField(preType = DEPredefinedFieldType.LOGICVALID, logicval = "1", logicdelval = "0")
@TableLogic(value = "1", delval = "0")
@TableField(value = "enable")
@JSONField(name = "enable")
@JsonProperty("enable")
@ApiModelProperty("逻辑有效标志")
private Integer enable;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate;
/**
* 订单类型名称
*/
@TableField(value = "ibizordertypename")
@JSONField(name = "ibizordertypename")
@JsonProperty("ibizordertypename")
@ApiModelProperty("订单类型名称")
private String ibizordertypename;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate;
/**
* 建立人
*/
@DEField(name = "createman", preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman;
/**
* 订单类型标识
*/
@DEField(isKeyField = true)
@TableId(value = "ibizordertypeid", type = IdType.ASSIGN_UUID)
@JSONField(name = "ibizordertypeid")
@JsonProperty("ibizordertypeid")
@ApiModelProperty("订单类型标识")
private String ibizordertypeid;
/**
* 设置 [订单类型名称]
*/
public void setIbizordertypename(String ibizordertypename) {
this.ibizordertypename = ibizordertypename;
this.modify("ibizordertypename", ibizordertypename);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("ibizordertypeid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.filter;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.*;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
import cn.ibizlab.util.filter.QueryWrapperContext;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import cn.ibizlab.core.sample.domain.APPKANBAN;
/**
* 关系型数据实体[APPKANBAN] 查询条件对象
*/
@Slf4j
@Data
public class APPKANBANSearchContext extends QueryWrapperContext<APPKANBAN> {
private String n_appkanbanname_like;//[应用看板名称]
public void setN_appkanbanname_like(String n_appkanbanname_like) {
this.n_appkanbanname_like = n_appkanbanname_like;
if(!ObjectUtils.isEmpty(this.n_appkanbanname_like)){
this.getSearchCond().like("appkanbanname", n_appkanbanname_like);
}
}
/**
* 启用快速搜索
*/
@Override
public void setQuery(String query)
{
this.query=query;
if(!StringUtils.isEmpty(query)){
this.getSearchCond().and( wrapper ->
wrapper.like("appkanbanname", query)
);
}
}
}
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册