提交 5359469e 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码 [Spring Boot]

上级 355919c9
!!!!模版产生代码错误:----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #if item.getPSDER1N()?? [in template "CODETEMPL_en_US" at line 164, column 81]
----
\ No newline at end of file
package cn.ibizlab.businesscentral.core.odoo_base.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.businesscentral.util.domain.EntityBase;
import cn.ibizlab.businesscentral.util.annotation.DEField;
import cn.ibizlab.businesscentral.util.annotation.DynaProperty;
import cn.ibizlab.businesscentral.util.enums.DEPredefinedFieldType;
import cn.ibizlab.businesscentral.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.businesscentral.util.helper.DataObject;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.businesscentral.util.annotation.Audit;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.businesscentral.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[供应商]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "RES_PARTNER",resultMap = "Res_supplierResultMap")
public class Res_supplier extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* ID
*/
@DEField(isKeyField=true)
@TableId(value= "id",type=IdType.AUTO)
@JSONField(name = "id")
@JsonProperty("id")
private Long id;
/**
* 名称
*/
@TableField(value = "name")
@JSONField(name = "name")
@JsonProperty("name")
private String name;
/**
* 地址类型
*/
@TableField(value = "type")
@JSONField(name = "type")
@JsonProperty("type")
private String type;
/**
* 公司类别
*/
@TableField(exist = false)
@JSONField(name = "company_type")
@JsonProperty("company_type")
private String companyType;
/**
* 电话
*/
@TableField(value = "phone")
@JSONField(name = "phone")
@JsonProperty("phone")
private String phone;
/**
* 工作岗位
*/
@TableField(value = "function")
@JSONField(name = "function")
@JsonProperty("function")
private String function;
/**
* 手机
*/
@TableField(value = "mobile")
@JSONField(name = "mobile")
@JsonProperty("mobile")
private String mobile;
/**
* 税号
*/
@TableField(value = "vat")
@JSONField(name = "vat")
@JsonProperty("vat")
private String vat;
/**
* EMail
*/
@TableField(value = "email")
@JSONField(name = "email")
@JsonProperty("email")
private String email;
/**
* 网站网址
*/
@TableField(exist = false)
@JSONField(name = "website_url")
@JsonProperty("website_url")
private String websiteUrl;
/**
* 标签
*/
@TableField(exist = false)
@JSONField(name = "category_id")
@JsonProperty("category_id")
private String categoryId;
/**
* 采购付款条例
*/
@TableField(exist = false)
@JSONField(name = "property_supplier_payment_term_id")
@JsonProperty("property_supplier_payment_term_id")
@DynaProperty(res_model="res.partner",reference=cn.ibizlab.businesscentral.core.odoo_base.IAccount_payment_termService.class,pickup_text = "property_supplier_payment_term_name",reference_field = "name")
private Long propertySupplierPaymentTermId;
/**
* 采购付款条例
*/
@TableField(exist = false)
@JSONField(name = "property_supplier_payment_term_name")
@JsonProperty("property_supplier_payment_term_name")
private String propertySupplierPaymentTermName;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_account.domain.Account_payment_term odooPurchasePaymentTerm;
/**
* 设置 [名称]
*/
public void setName(String name){
this.name = name ;
this.modify("name",name);
}
/**
* 设置 [地址类型]
*/
public void setType(String type){
this.type = type ;
this.modify("type",type);
}
/**
* 设置 [电话]
*/
public void setPhone(String phone){
this.phone = phone ;
this.modify("phone",phone);
}
/**
* 设置 [工作岗位]
*/
public void setFunction(String function){
this.function = function ;
this.modify("function",function);
}
/**
* 设置 [手机]
*/
public void setMobile(String mobile){
this.mobile = mobile ;
this.modify("mobile",mobile);
}
/**
* 设置 [税号]
*/
public void setVat(String vat){
this.vat = vat ;
this.modify("vat",vat);
}
/**
* 设置 [EMail]
*/
public void setEmail(String email){
this.email = email ;
this.modify("email",email);
}
/**
* 设置 [标签]
*/
public void setCategoryId(String categoryId){
this.categoryId = categoryId ;
this.modify("category_id",categoryId);
}
@Override
public Serializable getDefaultKey(boolean gen) {
return IdWorker.getId();
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("id");
return super.copyTo(targetEntity,bIncEmpty);
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册