提交 b4113bc0 编写于 作者: misaka's avatar misaka

1

上级 29edebc1

要显示的变更太多。

为了保持性能,仅显示文件中的 1000/1000+

<?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>businesscentral-provider</artifactId>
<groupId>cn.ibizlab.businesscentral</groupId>
<version>1.0.0.0</version>
</parent>
<artifactId>businesscentral-provider-odoo_account</artifactId>
<name>Businesscentral Microservice odoo_account</name>
<description> [ODOO标准服务]开票</description>
<dependencies>
<dependency>
<groupId>cn.ibizlab.businesscentral</groupId>
<artifactId>businesscentral-core</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>odoo_account</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>businesscentral-provider-odoo_account</finalName>
<jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
<mainClass>cn.ibizlab.businesscentral.odoo_account.iBizBusinessCentralodoo_accountApplication</mainClass>
<outputDirectory>../../</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
FROM openjdk:8-jre-alpine
ENV TZ=Asia/Shanghai \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
IBIZ_SLEEP=0 \
JAVA_OPTS=""
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-provider-odoo_account.jar
EXPOSE 8081
ADD businesscentral-provider-odoo_account.jar /businesscentral-provider-odoo_account.jar
version: "3.2"
services:
businesscentral-provider-odoo_account:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-provider-odoo_account:latest
ports:
- "8081:8081"
networks:
- agent_network
deploy:
resources:
limits:
memory: 4048M
reservations:
memory: 400M
mode: replicated
replicas: 1
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
package cn.ibizlab.businesscentral.odoo_account.config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import java.util.concurrent.Executor;
import java.util.concurrent.ThreadPoolExecutor;
import org.springframework.context.annotation.Import;
@Configuration
@ConditionalOnClass(odoo_accountRestConfiguration.class)
@ConditionalOnWebApplication
@EnableConfigurationProperties(odoo_accountServiceProperties.class)
public class odoo_accountAutoConfiguration implements ApplicationContextAware{
protected ApplicationContext applicationContext;
public void setApplicationContext(ApplicationContext applicationContext) {
this.applicationContext = applicationContext;
}
@Bean("asyncExecutor")
public Executor asyncExecutor() {
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(10);
executor.setMaxPoolSize(20);
executor.setQueueCapacity(2000);
executor.setKeepAliveSeconds(600);
executor.setThreadNamePrefix("asyncExecutor-");
executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
return executor;
}
// @Bean
// public ServletRegistrationBean odoo_accountServlet() {
// AnnotationConfigWebApplicationContext dispatcherServletConfiguration = new AnnotationConfigWebApplicationContext();
// dispatcherServletConfiguration.setParent(applicationContext);
// dispatcherServletConfiguration.register(odoo_accountRestConfiguration.class);
// DispatcherServlet servlet = new DispatcherServlet(dispatcherServletConfiguration);
// String path = "/odoo_account";
// String urlMapping = (path.endsWith("/") ? path + "*" : path + "/*");
// ServletRegistrationBean registrationBean = new ServletRegistrationBean(servlet, urlMapping);
// registrationBean.setName("odoo_account");
// return registrationBean;
// }
}
package cn.ibizlab.businesscentral.odoo_account.config;
import org.springframework.context.annotation.ComponentScan;
@ComponentScan("cn.ibizlab.businesscentral.odoo_account")
public class odoo_accountRestConfiguration {
}
package cn.ibizlab.businesscentral.odoo_account.config;
import cn.ibizlab.businesscentral.util.security.AuthenticationEntryPoint;
import cn.ibizlab.businesscentral.util.security.AuthorizationTokenFilter;
import cn.ibizlab.businesscentral.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("odoo_account-prod")
@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class odoo_accountSecurityConfig 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);
}
}
package cn.ibizlab.businesscentral.odoo_account.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import lombok.Data;
@ConfigurationProperties(prefix = "service.odoo_account")
@Data
public class odoo_accountServiceProperties {
private boolean enabled;
private boolean auth;
}
\ No newline at end of file
package cn.ibizlab.businesscentral.odoo_account.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import cn.ibizlab.businesscentral.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[Account_accountDTO]
*/
@Data
public class Account_accountDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [ID]
*
*/
@JSONField(name = "id")
@JsonProperty("id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 属性 [OPENING_DEBIT]
*
*/
@JSONField(name = "opening_debit")
@JsonProperty("opening_debit")
private BigDecimal openingDebit;
/**
* 属性 [NOTE]
*
*/
@JSONField(name = "note")
@JsonProperty("note")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String note;
/**
* 属性 [OPENING_CREDIT]
*
*/
@JSONField(name = "opening_credit")
@JsonProperty("opening_credit")
private BigDecimal openingCredit;
/**
* 属性 [CREATE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_date")
private Timestamp createDate;
/**
* 属性 [CODE]
*
*/
@JSONField(name = "code")
@JsonProperty("code")
@NotBlank(message = "[代码]不允许为空!")
@Size(min = 0, max = 64, message = "内容长度必须小于等于[64]")
private String code;
/**
* 属性 [TAX_IDS]
*
*/
@JSONField(name = "tax_ids")
@JsonProperty("tax_ids")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String taxIds;
/**
* 属性 [WRITE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "write_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("write_date")
private Timestamp writeDate;
/**
* 属性 [DEPRECATED]
*
*/
@JSONField(name = "deprecated")
@JsonProperty("deprecated")
private Integer deprecated;
/**
* 属性 [DISPLAY_NAME]
*
*/
@JSONField(name = "display_name")
@JsonProperty("display_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [LAST_TIME_ENTRIES_CHECKED]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "last_time_entries_checked" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("last_time_entries_checked")
private Timestamp lastTimeEntriesChecked;
/**
* 属性 [RECONCILE]
*
*/
@JSONField(name = "reconcile")
@JsonProperty("reconcile")
private Integer reconcile;
/**
* 属性 [TAG_IDS]
*
*/
@JSONField(name = "tag_ids")
@JsonProperty("tag_ids")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String tagIds;
/**
* 属性 [NAME]
*
*/
@JSONField(name = "name")
@JsonProperty("name")
@NotBlank(message = "[名称]不允许为空!")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String name;
/**
* 属性 [__LAST_UPDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "__last_update" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("__last_update")
private Timestamp LastUpdate;
/**
* 属性 [INTERNAL_TYPE]
*
*/
@JSONField(name = "internal_type")
@JsonProperty("internal_type")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String internalType;
/**
* 属性 [CREATE_UID_TEXT]
*
*/
@JSONField(name = "create_uid_text")
@JsonProperty("create_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String createUidText;
/**
* 属性 [CURRENCY_ID_TEXT]
*
*/
@JSONField(name = "currency_id_text")
@JsonProperty("currency_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String currencyIdText;
/**
* 属性 [INTERNAL_GROUP]
*
*/
@JSONField(name = "internal_group")
@JsonProperty("internal_group")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String internalGroup;
/**
* 属性 [GROUP_ID_TEXT]
*
*/
@JSONField(name = "group_id_text")
@JsonProperty("group_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String groupIdText;
/**
* 属性 [WRITE_UID_TEXT]
*
*/
@JSONField(name = "write_uid_text")
@JsonProperty("write_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String writeUidText;
/**
* 属性 [COMPANY_ID_TEXT]
*
*/
@JSONField(name = "company_id_text")
@JsonProperty("company_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String companyIdText;
/**
* 属性 [USER_TYPE_ID_TEXT]
*
*/
@JSONField(name = "user_type_id_text")
@JsonProperty("user_type_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String userTypeIdText;
/**
* 属性 [COMPANY_ID]
*
*/
@JSONField(name = "company_id")
@JsonProperty("company_id")
@JsonSerialize(using = ToStringSerializer.class)
@NotNull(message = "[公司]不允许为空!")
private Long companyId;
/**
* 属性 [GROUP_ID]
*
*/
@JSONField(name = "group_id")
@JsonProperty("group_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long groupId;
/**
* 属性 [USER_TYPE_ID]
*
*/
@JSONField(name = "user_type_id")
@JsonProperty("user_type_id")
@JsonSerialize(using = ToStringSerializer.class)
@NotNull(message = "[类型]不允许为空!")
private Long userTypeId;
/**
* 属性 [CURRENCY_ID]
*
*/
@JSONField(name = "currency_id")
@JsonProperty("currency_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long currencyId;
/**
* 属性 [WRITE_UID]
*
*/
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
/**
* 属性 [CREATE_UID]
*
*/
@JSONField(name = "create_uid")
@JsonProperty("create_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long createUid;
/**
* 设置 [NOTE]
*/
public void setNote(String note){
this.note = note ;
this.modify("note",note);
}
/**
* 设置 [CODE]
*/
public void setCode(String code){
this.code = code ;
this.modify("code",code);
}
/**
* 设置 [DEPRECATED]
*/
public void setDeprecated(Integer deprecated){
this.deprecated = deprecated ;
this.modify("deprecated",deprecated);
}
/**
* 设置 [LAST_TIME_ENTRIES_CHECKED]
*/
public void setLastTimeEntriesChecked(Timestamp lastTimeEntriesChecked){
this.lastTimeEntriesChecked = lastTimeEntriesChecked ;
this.modify("last_time_entries_checked",lastTimeEntriesChecked);
}
/**
* 设置 [RECONCILE]
*/
public void setReconcile(Integer reconcile){
this.reconcile = reconcile ;
this.modify("reconcile",reconcile);
}
/**
* 设置 [NAME]
*/
public void setName(String name){
this.name = name ;
this.modify("name",name);
}
/**
* 设置 [COMPANY_ID]
*/
public void setCompanyId(Long companyId){
this.companyId = companyId ;
this.modify("company_id",companyId);
}
/**
* 设置 [GROUP_ID]
*/
public void setGroupId(Long groupId){
this.groupId = groupId ;
this.modify("group_id",groupId);
}
/**
* 设置 [USER_TYPE_ID]
*/
public void setUserTypeId(Long userTypeId){
this.userTypeId = userTypeId ;
this.modify("user_type_id",userTypeId);
}
/**
* 设置 [CURRENCY_ID]
*/
public void setCurrencyId(Long currencyId){
this.currencyId = currencyId ;
this.modify("currency_id",currencyId);
}
}
package cn.ibizlab.businesscentral.odoo_account.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import cn.ibizlab.businesscentral.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[Account_account_tagDTO]
*/
@Data
public class Account_account_tagDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [WRITE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "write_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("write_date")
private Timestamp writeDate;
/**
* 属性 [__LAST_UPDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "__last_update" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("__last_update")
private Timestamp LastUpdate;
/**
* 属性 [DISPLAY_NAME]
*
*/
@JSONField(name = "display_name")
@JsonProperty("display_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [NAME]
*
*/
@JSONField(name = "name")
@JsonProperty("name")
@NotBlank(message = "[名称]不允许为空!")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String name;
/**
* 属性 [ID]
*
*/
@JSONField(name = "id")
@JsonProperty("id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 属性 [APPLICABILITY]
*
*/
@JSONField(name = "applicability")
@JsonProperty("applicability")
@NotBlank(message = "[适用范围]不允许为空!")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String applicability;
/**
* 属性 [ACTIVE]
*
*/
@JSONField(name = "active")
@JsonProperty("active")
private Integer active;
/**
* 属性 [CREATE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_date")
private Timestamp createDate;
/**
* 属性 [COLOR]
*
*/
@JSONField(name = "color")
@JsonProperty("color")
private Integer color;
/**
* 属性 [WRITE_UID_TEXT]
*
*/
@JSONField(name = "write_uid_text")
@JsonProperty("write_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String writeUidText;
/**
* 属性 [CREATE_UID_TEXT]
*
*/
@JSONField(name = "create_uid_text")
@JsonProperty("create_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String createUidText;
/**
* 属性 [CREATE_UID]
*
*/
@JSONField(name = "create_uid")
@JsonProperty("create_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long createUid;
/**
* 属性 [WRITE_UID]
*
*/
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
/**
* 设置 [NAME]
*/
public void setName(String name){
this.name = name ;
this.modify("name",name);
}
/**
* 设置 [APPLICABILITY]
*/
public void setApplicability(String applicability){
this.applicability = applicability ;
this.modify("applicability",applicability);
}
/**
* 设置 [ACTIVE]
*/
public void setActive(Integer active){
this.active = active ;
this.modify("active",active);
}
/**
* 设置 [COLOR]
*/
public void setColor(Integer color){
this.color = color ;
this.modify("color",color);
}
}
package cn.ibizlab.businesscentral.odoo_account.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import cn.ibizlab.businesscentral.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[Account_account_templateDTO]
*/
@Data
public class Account_account_templateDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [CODE]
*
*/
@JSONField(name = "code")
@JsonProperty("code")
@NotBlank(message = "[代码]不允许为空!")
@Size(min = 0, max = 64, message = "内容长度必须小于等于[64]")
private String code;
/**
* 属性 [TAG_IDS]
*
*/
@JSONField(name = "tag_ids")
@JsonProperty("tag_ids")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String tagIds;
/**
* 属性 [NOCREATE]
*
*/
@JSONField(name = "nocreate")
@JsonProperty("nocreate")
private Integer nocreate;
/**
* 属性 [TAX_IDS]
*
*/
@JSONField(name = "tax_ids")
@JsonProperty("tax_ids")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String taxIds;
/**
* 属性 [CREATE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_date")
private Timestamp createDate;
/**
* 属性 [DISPLAY_NAME]
*
*/
@JSONField(name = "display_name")
@JsonProperty("display_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [__LAST_UPDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "__last_update" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("__last_update")
private Timestamp LastUpdate;
/**
* 属性 [NAME]
*
*/
@JSONField(name = "name")
@JsonProperty("name")
@NotBlank(message = "[名称]不允许为空!")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String name;
/**
* 属性 [ID]
*
*/
@JSONField(name = "id")
@JsonProperty("id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 属性 [NOTE]
*
*/
@JSONField(name = "note")
@JsonProperty("note")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String note;
/**
* 属性 [WRITE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "write_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("write_date")
private Timestamp writeDate;
/**
* 属性 [RECONCILE]
*
*/
@JSONField(name = "reconcile")
@JsonProperty("reconcile")
private Integer reconcile;
/**
* 属性 [CHART_TEMPLATE_ID_TEXT]
*
*/
@JSONField(name = "chart_template_id_text")
@JsonProperty("chart_template_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String chartTemplateIdText;
/**
* 属性 [CURRENCY_ID_TEXT]
*
*/
@JSONField(name = "currency_id_text")
@JsonProperty("currency_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String currencyIdText;
/**
* 属性 [USER_TYPE_ID_TEXT]
*
*/
@JSONField(name = "user_type_id_text")
@JsonProperty("user_type_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String userTypeIdText;
/**
* 属性 [CREATE_UID_TEXT]
*
*/
@JSONField(name = "create_uid_text")
@JsonProperty("create_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String createUidText;
/**
* 属性 [WRITE_UID_TEXT]
*
*/
@JSONField(name = "write_uid_text")
@JsonProperty("write_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String writeUidText;
/**
* 属性 [GROUP_ID_TEXT]
*
*/
@JSONField(name = "group_id_text")
@JsonProperty("group_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String groupIdText;
/**
* 属性 [WRITE_UID]
*
*/
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
/**
* 属性 [CREATE_UID]
*
*/
@JSONField(name = "create_uid")
@JsonProperty("create_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long createUid;
/**
* 属性 [CHART_TEMPLATE_ID]
*
*/
@JSONField(name = "chart_template_id")
@JsonProperty("chart_template_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long chartTemplateId;
/**
* 属性 [CURRENCY_ID]
*
*/
@JSONField(name = "currency_id")
@JsonProperty("currency_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long currencyId;
/**
* 属性 [USER_TYPE_ID]
*
*/
@JSONField(name = "user_type_id")
@JsonProperty("user_type_id")
@JsonSerialize(using = ToStringSerializer.class)
@NotNull(message = "[类型]不允许为空!")
private Long userTypeId;
/**
* 属性 [GROUP_ID]
*
*/
@JSONField(name = "group_id")
@JsonProperty("group_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long groupId;
/**
* 设置 [CODE]
*/
public void setCode(String code){
this.code = code ;
this.modify("code",code);
}
/**
* 设置 [NOCREATE]
*/
public void setNocreate(Integer nocreate){
this.nocreate = nocreate ;
this.modify("nocreate",nocreate);
}
/**
* 设置 [NAME]
*/
public void setName(String name){
this.name = name ;
this.modify("name",name);
}
/**
* 设置 [NOTE]
*/
public void setNote(String note){
this.note = note ;
this.modify("note",note);
}
/**
* 设置 [RECONCILE]
*/
public void setReconcile(Integer reconcile){
this.reconcile = reconcile ;
this.modify("reconcile",reconcile);
}
/**
* 设置 [CHART_TEMPLATE_ID]
*/
public void setChartTemplateId(Long chartTemplateId){
this.chartTemplateId = chartTemplateId ;
this.modify("chart_template_id",chartTemplateId);
}
/**
* 设置 [CURRENCY_ID]
*/
public void setCurrencyId(Long currencyId){
this.currencyId = currencyId ;
this.modify("currency_id",currencyId);
}
/**
* 设置 [USER_TYPE_ID]
*/
public void setUserTypeId(Long userTypeId){
this.userTypeId = userTypeId ;
this.modify("user_type_id",userTypeId);
}
/**
* 设置 [GROUP_ID]
*/
public void setGroupId(Long groupId){
this.groupId = groupId ;
this.modify("group_id",groupId);
}
}
package cn.ibizlab.businesscentral.odoo_account.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import cn.ibizlab.businesscentral.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[Account_account_typeDTO]
*/
@Data
public class Account_account_typeDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [DISPLAY_NAME]
*
*/
@JSONField(name = "display_name")
@JsonProperty("display_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [TYPE]
*
*/
@JSONField(name = "type")
@JsonProperty("type")
@NotBlank(message = "[类型]不允许为空!")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String type;
/**
* 属性 [__LAST_UPDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "__last_update" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("__last_update")
private Timestamp LastUpdate;
/**
* 属性 [ID]
*
*/
@JSONField(name = "id")
@JsonProperty("id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 属性 [WRITE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "write_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("write_date")
private Timestamp writeDate;
/**
* 属性 [CREATE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_date")
private Timestamp createDate;
/**
* 属性 [NOTE]
*
*/
@JSONField(name = "note")
@JsonProperty("note")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String note;
/**
* 属性 [INCLUDE_INITIAL_BALANCE]
*
*/
@JSONField(name = "include_initial_balance")
@JsonProperty("include_initial_balance")
private Integer includeInitialBalance;
/**
* 属性 [NAME]
*
*/
@JSONField(name = "name")
@JsonProperty("name")
@NotBlank(message = "[科目类型]不允许为空!")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String name;
/**
* 属性 [INTERNAL_GROUP]
*
*/
@JSONField(name = "internal_group")
@JsonProperty("internal_group")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String internalGroup;
/**
* 属性 [WRITE_UID_TEXT]
*
*/
@JSONField(name = "write_uid_text")
@JsonProperty("write_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String writeUidText;
/**
* 属性 [CREATE_UID_TEXT]
*
*/
@JSONField(name = "create_uid_text")
@JsonProperty("create_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String createUidText;
/**
* 属性 [CREATE_UID]
*
*/
@JSONField(name = "create_uid")
@JsonProperty("create_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long createUid;
/**
* 属性 [WRITE_UID]
*
*/
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
/**
* 设置 [TYPE]
*/
public void setType(String type){
this.type = type ;
this.modify("type",type);
}
/**
* 设置 [NOTE]
*/
public void setNote(String note){
this.note = note ;
this.modify("note",note);
}
/**
* 设置 [INCLUDE_INITIAL_BALANCE]
*/
public void setIncludeInitialBalance(Integer includeInitialBalance){
this.includeInitialBalance = includeInitialBalance ;
this.modify("include_initial_balance",includeInitialBalance);
}
/**
* 设置 [NAME]
*/
public void setName(String name){
this.name = name ;
this.modify("name",name);
}
/**
* 设置 [INTERNAL_GROUP]
*/
public void setInternalGroup(String internalGroup){
this.internalGroup = internalGroup ;
this.modify("internal_group",internalGroup);
}
}
package cn.ibizlab.businesscentral.odoo_account.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import cn.ibizlab.businesscentral.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[Account_analytic_distributionDTO]
*/
@Data
public class Account_analytic_distributionDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [PERCENTAGE]
*
*/
@JSONField(name = "percentage")
@JsonProperty("percentage")
@NotNull(message = "[百分比]不允许为空!")
private Double percentage;
/**
* 属性 [DISPLAY_NAME]
*
*/
@JSONField(name = "display_name")
@JsonProperty("display_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [WRITE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "write_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("write_date")
private Timestamp writeDate;
/**
* 属性 [__LAST_UPDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "__last_update" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("__last_update")
private Timestamp LastUpdate;
/**
* 属性 [ID]
*
*/
@JSONField(name = "id")
@JsonProperty("id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 属性 [CREATE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_date")
private Timestamp createDate;
/**
* 属性 [CREATE_UID_TEXT]
*
*/
@JSONField(name = "create_uid_text")
@JsonProperty("create_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String createUidText;
/**
* 属性 [NAME]
*
*/
@JSONField(name = "name")
@JsonProperty("name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String name;
/**
* 属性 [TAG_ID_TEXT]
*
*/
@JSONField(name = "tag_id_text")
@JsonProperty("tag_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String tagIdText;
/**
* 属性 [WRITE_UID_TEXT]
*
*/
@JSONField(name = "write_uid_text")
@JsonProperty("write_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String writeUidText;
/**
* 属性 [CREATE_UID]
*
*/
@JSONField(name = "create_uid")
@JsonProperty("create_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long createUid;
/**
* 属性 [WRITE_UID]
*
*/
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
/**
* 属性 [TAG_ID]
*
*/
@JSONField(name = "tag_id")
@JsonProperty("tag_id")
@JsonSerialize(using = ToStringSerializer.class)
@NotNull(message = "[上级标签]不允许为空!")
private Long tagId;
/**
* 属性 [ACCOUNT_ID]
*
*/
@JSONField(name = "account_id")
@JsonProperty("account_id")
@JsonSerialize(using = ToStringSerializer.class)
@NotNull(message = "[分析账户]不允许为空!")
private Long accountId;
/**
* 设置 [PERCENTAGE]
*/
public void setPercentage(Double percentage){
this.percentage = percentage ;
this.modify("percentage",percentage);
}
/**
* 设置 [TAG_ID]
*/
public void setTagId(Long tagId){
this.tagId = tagId ;
this.modify("tag_id",tagId);
}
/**
* 设置 [ACCOUNT_ID]
*/
public void setAccountId(Long accountId){
this.accountId = accountId ;
this.modify("account_id",accountId);
}
}
package cn.ibizlab.businesscentral.odoo_account.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import cn.ibizlab.businesscentral.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[Account_analytic_groupDTO]
*/
@Data
public class Account_analytic_groupDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [ID]
*
*/
@JSONField(name = "id")
@JsonProperty("id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 属性 [NAME]
*
*/
@JSONField(name = "name")
@JsonProperty("name")
@NotBlank(message = "[名称]不允许为空!")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String name;
/**
* 属性 [__LAST_UPDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "__last_update" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("__last_update")
private Timestamp LastUpdate;
/**
* 属性 [PARENT_PATH]
*
*/
@JSONField(name = "parent_path")
@JsonProperty("parent_path")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String parentPath;
/**
* 属性 [CREATE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_date")
private Timestamp createDate;
/**
* 属性 [DISPLAY_NAME]
*
*/
@JSONField(name = "display_name")
@JsonProperty("display_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [COMPLETE_NAME]
*
*/
@JSONField(name = "complete_name")
@JsonProperty("complete_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String completeName;
/**
* 属性 [DESCRIPTION]
*
*/
@JSONField(name = "description")
@JsonProperty("description")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String description;
/**
* 属性 [CHILDREN_IDS]
*
*/
@JSONField(name = "children_ids")
@JsonProperty("children_ids")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String childrenIds;
/**
* 属性 [WRITE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "write_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("write_date")
private Timestamp writeDate;
/**
* 属性 [PARENT_ID_TEXT]
*
*/
@JSONField(name = "parent_id_text")
@JsonProperty("parent_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String parentIdText;
/**
* 属性 [WRITE_UID_TEXT]
*
*/
@JSONField(name = "write_uid_text")
@JsonProperty("write_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String writeUidText;
/**
* 属性 [CREATE_UID_TEXT]
*
*/
@JSONField(name = "create_uid_text")
@JsonProperty("create_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String createUidText;
/**
* 属性 [COMPANY_ID_TEXT]
*
*/
@JSONField(name = "company_id_text")
@JsonProperty("company_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String companyIdText;
/**
* 属性 [WRITE_UID]
*
*/
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
/**
* 属性 [CREATE_UID]
*
*/
@JSONField(name = "create_uid")
@JsonProperty("create_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long createUid;
/**
* 属性 [COMPANY_ID]
*
*/
@JSONField(name = "company_id")
@JsonProperty("company_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long companyId;
/**
* 属性 [PARENT_ID]
*
*/
@JSONField(name = "parent_id")
@JsonProperty("parent_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long parentId;
/**
* 设置 [NAME]
*/
public void setName(String name){
this.name = name ;
this.modify("name",name);
}
/**
* 设置 [PARENT_PATH]
*/
public void setParentPath(String parentPath){
this.parentPath = parentPath ;
this.modify("parent_path",parentPath);
}
/**
* 设置 [COMPLETE_NAME]
*/
public void setCompleteName(String completeName){
this.completeName = completeName ;
this.modify("complete_name",completeName);
}
/**
* 设置 [DESCRIPTION]
*/
public void setDescription(String description){
this.description = description ;
this.modify("description",description);
}
/**
* 设置 [COMPANY_ID]
*/
public void setCompanyId(Long companyId){
this.companyId = companyId ;
this.modify("company_id",companyId);
}
/**
* 设置 [PARENT_ID]
*/
public void setParentId(Long parentId){
this.parentId = parentId ;
this.modify("parent_id",parentId);
}
}
package cn.ibizlab.businesscentral.odoo_account.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import cn.ibizlab.businesscentral.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[Account_analytic_tagDTO]
*/
@Data
public class Account_analytic_tagDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [ANALYTIC_DISTRIBUTION_IDS]
*
*/
@JSONField(name = "analytic_distribution_ids")
@JsonProperty("analytic_distribution_ids")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String analyticDistributionIds;
/**
* 属性 [ID]
*
*/
@JSONField(name = "id")
@JsonProperty("id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 属性 [ACTIVE_ANALYTIC_DISTRIBUTION]
*
*/
@JSONField(name = "active_analytic_distribution")
@JsonProperty("active_analytic_distribution")
private Integer activeAnalyticDistribution;
/**
* 属性 [NAME]
*
*/
@JSONField(name = "name")
@JsonProperty("name")
@NotBlank(message = "[分析标签]不允许为空!")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String name;
/**
* 属性 [ACTIVE]
*
*/
@JSONField(name = "active")
@JsonProperty("active")
private Integer active;
/**
* 属性 [WRITE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "write_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("write_date")
private Timestamp writeDate;
/**
* 属性 [CREATE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_date")
private Timestamp createDate;
/**
* 属性 [__LAST_UPDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "__last_update" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("__last_update")
private Timestamp LastUpdate;
/**
* 属性 [COLOR]
*
*/
@JSONField(name = "color")
@JsonProperty("color")
private Integer color;
/**
* 属性 [DISPLAY_NAME]
*
*/
@JSONField(name = "display_name")
@JsonProperty("display_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [CREATE_UID_TEXT]
*
*/
@JSONField(name = "create_uid_text")
@JsonProperty("create_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String createUidText;
/**
* 属性 [COMPANY_ID_TEXT]
*
*/
@JSONField(name = "company_id_text")
@JsonProperty("company_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String companyIdText;
/**
* 属性 [WRITE_UID_TEXT]
*
*/
@JSONField(name = "write_uid_text")
@JsonProperty("write_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String writeUidText;
/**
* 属性 [WRITE_UID]
*
*/
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
/**
* 属性 [CREATE_UID]
*
*/
@JSONField(name = "create_uid")
@JsonProperty("create_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long createUid;
/**
* 属性 [COMPANY_ID]
*
*/
@JSONField(name = "company_id")
@JsonProperty("company_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long companyId;
/**
* 设置 [ACTIVE_ANALYTIC_DISTRIBUTION]
*/
public void setActiveAnalyticDistribution(Integer activeAnalyticDistribution){
this.activeAnalyticDistribution = activeAnalyticDistribution ;
this.modify("active_analytic_distribution",activeAnalyticDistribution);
}
/**
* 设置 [NAME]
*/
public void setName(String name){
this.name = name ;
this.modify("name",name);
}
/**
* 设置 [ACTIVE]
*/
public void setActive(Integer active){
this.active = active ;
this.modify("active",active);
}
/**
* 设置 [COLOR]
*/
public void setColor(Integer color){
this.color = color ;
this.modify("color",color);
}
/**
* 设置 [COMPANY_ID]
*/
public void setCompanyId(Long companyId){
this.companyId = companyId ;
this.modify("company_id",companyId);
}
}
package cn.ibizlab.businesscentral.odoo_account.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import cn.ibizlab.businesscentral.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[Account_bank_statement_cashboxDTO]
*/
@Data
public class Account_bank_statement_cashboxDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [CREATE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_date")
private Timestamp createDate;
/**
* 属性 [WRITE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "write_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("write_date")
private Timestamp writeDate;
/**
* 属性 [CASHBOX_LINES_IDS]
*
*/
@JSONField(name = "cashbox_lines_ids")
@JsonProperty("cashbox_lines_ids")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String cashboxLinesIds;
/**
* 属性 [DISPLAY_NAME]
*
*/
@JSONField(name = "display_name")
@JsonProperty("display_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [ID]
*
*/
@JSONField(name = "id")
@JsonProperty("id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 属性 [__LAST_UPDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "__last_update" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("__last_update")
private Timestamp LastUpdate;
/**
* 属性 [CREATE_UID_TEXT]
*
*/
@JSONField(name = "create_uid_text")
@JsonProperty("create_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String createUidText;
/**
* 属性 [WRITE_UID_TEXT]
*
*/
@JSONField(name = "write_uid_text")
@JsonProperty("write_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String writeUidText;
/**
* 属性 [CREATE_UID]
*
*/
@JSONField(name = "create_uid")
@JsonProperty("create_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long createUid;
/**
* 属性 [WRITE_UID]
*
*/
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
}
package cn.ibizlab.businesscentral.odoo_account.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import cn.ibizlab.businesscentral.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[Account_bank_statement_closebalanceDTO]
*/
@Data
public class Account_bank_statement_closebalanceDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [WRITE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "write_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("write_date")
private Timestamp writeDate;
/**
* 属性 [__LAST_UPDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "__last_update" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("__last_update")
private Timestamp LastUpdate;
/**
* 属性 [CREATE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_date")
private Timestamp createDate;
/**
* 属性 [ID]
*
*/
@JSONField(name = "id")
@JsonProperty("id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 属性 [DISPLAY_NAME]
*
*/
@JSONField(name = "display_name")
@JsonProperty("display_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [CREATE_UID_TEXT]
*
*/
@JSONField(name = "create_uid_text")
@JsonProperty("create_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String createUidText;
/**
* 属性 [WRITE_UID_TEXT]
*
*/
@JSONField(name = "write_uid_text")
@JsonProperty("write_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String writeUidText;
/**
* 属性 [WRITE_UID]
*
*/
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
/**
* 属性 [CREATE_UID]
*
*/
@JSONField(name = "create_uid")
@JsonProperty("create_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long createUid;
}
package cn.ibizlab.businesscentral.odoo_account.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import cn.ibizlab.businesscentral.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[Account_bank_statement_importDTO]
*/
@Data
public class Account_bank_statement_importDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [CREATE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_date")
private Timestamp createDate;
/**
* 属性 [WRITE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "write_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("write_date")
private Timestamp writeDate;
/**
* 属性 [FILENAME]
*
*/
@JSONField(name = "filename")
@JsonProperty("filename")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String filename;
/**
* 属性 [__LAST_UPDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "__last_update" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("__last_update")
private Timestamp LastUpdate;
/**
* 属性 [ID]
*
*/
@JSONField(name = "id")
@JsonProperty("id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 属性 [DISPLAY_NAME]
*
*/
@JSONField(name = "display_name")
@JsonProperty("display_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [DATA_FILE]
*
*/
@JSONField(name = "data_file")
@JsonProperty("data_file")
@NotNull(message = "[银行对账单文件]不允许为空!")
private byte[] dataFile;
/**
* 属性 [WRITE_UID_TEXT]
*
*/
@JSONField(name = "write_uid_text")
@JsonProperty("write_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String writeUidText;
/**
* 属性 [CREATE_UID_TEXT]
*
*/
@JSONField(name = "create_uid_text")
@JsonProperty("create_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String createUidText;
/**
* 属性 [CREATE_UID]
*
*/
@JSONField(name = "create_uid")
@JsonProperty("create_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long createUid;
/**
* 属性 [WRITE_UID]
*
*/
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
/**
* 设置 [FILENAME]
*/
public void setFilename(String filename){
this.filename = filename ;
this.modify("filename",filename);
}
}
package cn.ibizlab.businesscentral.odoo_account.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import cn.ibizlab.businesscentral.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[Account_invoice_confirmDTO]
*/
@Data
public class Account_invoice_confirmDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [WRITE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "write_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("write_date")
private Timestamp writeDate;
/**
* 属性 [DISPLAY_NAME]
*
*/
@JSONField(name = "display_name")
@JsonProperty("display_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [ID]
*
*/
@JSONField(name = "id")
@JsonProperty("id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 属性 [CREATE_DATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "create_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("create_date")
private Timestamp createDate;
/**
* 属性 [__LAST_UPDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "__last_update" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("__last_update")
private Timestamp LastUpdate;
/**
* 属性 [WRITE_UID_TEXT]
*
*/
@JSONField(name = "write_uid_text")
@JsonProperty("write_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String writeUidText;
/**
* 属性 [CREATE_UID_TEXT]
*
*/
@JSONField(name = "create_uid_text")
@JsonProperty("create_uid_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String createUidText;
/**
* 属性 [WRITE_UID]
*
*/
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
/**
* 属性 [CREATE_UID]
*
*/
@JSONField(name = "create_uid")
@JsonProperty("create_uid")
@JsonSerialize(using = ToStringSerializer.class)
private Long createUid;
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册