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

xignzi006 发布系统代码,后台体系[Spring Boot]

上级 c1d373f9
......@@ -67,6 +67,12 @@ public class Account_taxServiceImpl extends EBSServiceImpl<Account_taxMapper, Ac
protected cn.ibizlab.businesscentral.core.odoo_purchase.service.IAccount_tax_purchase_order_line_relService accountTaxPurchaseOrderLineRelService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_supplier_taxes_relService productSupplierTaxesRelService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_taxes_relService productTaxesRelService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_base.service.IRes_companyService resCompanyService;
@Autowired
@Lazy
......
package cn.ibizlab.businesscentral.core.odoo_product.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.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 = "PRODUCT_SUPPLIER_TAXES_REL",resultMap = "Product_supplier_taxes_relResultMap")
public class Product_supplier_taxes_rel extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
@DEField(isKeyField=true)
@TableField(exist = false)
@JSONField(name = "id")
@JsonProperty("id")
private Long id;
/**
* ID
*/
@DEField(name = "prod_id")
@TableField(value = "prod_id")
@JSONField(name = "prod_id")
@JsonProperty("prod_id")
private Long prodId;
/**
* ID
*/
@DEField(name = "tax_id")
@TableField(value = "tax_id")
@JSONField(name = "tax_id")
@JsonProperty("tax_id")
private Long taxId;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_account.domain.Account_tax odooTax;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_product.domain.Product_template odooProd;
/**
* 设置 [ID]
*/
public void setProdId(Long prodId){
this.prodId = prodId ;
this.modify("prod_id",prodId);
}
/**
* 设置 [ID]
*/
public void setTaxId(Long taxId){
this.taxId = taxId ;
this.modify("tax_id",taxId);
}
@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);
}
}
package cn.ibizlab.businesscentral.core.odoo_product.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.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 = "PRODUCT_TAXES_REL",resultMap = "Product_taxes_relResultMap")
public class Product_taxes_rel extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
@DEField(isKeyField=true)
@TableField(exist = false)
@JSONField(name = "id")
@JsonProperty("id")
private Long id;
/**
* ID
*/
@DEField(name = "prod_id")
@TableField(value = "prod_id")
@JSONField(name = "prod_id")
@JsonProperty("prod_id")
private Long prodId;
/**
* ID
*/
@DEField(name = "tax_id")
@TableField(value = "tax_id")
@JSONField(name = "tax_id")
@JsonProperty("tax_id")
private Long taxId;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_account.domain.Account_tax odooTax;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_product.domain.Product_template odooProd;
/**
* 设置 [ID]
*/
public void setProdId(Long prodId){
this.prodId = prodId ;
this.modify("prod_id",prodId);
}
/**
* 设置 [ID]
*/
public void setTaxId(Long taxId){
this.taxId = taxId ;
this.modify("tax_id",taxId);
}
@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);
}
}
package cn.ibizlab.businesscentral.core.odoo_product.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.businesscentral.util.filter.QueryWrapperContext;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import cn.ibizlab.businesscentral.core.odoo_product.domain.Product_supplier_taxes_rel;
/**
* 关系型数据实体[Product_supplier_taxes_rel] 查询条件对象
*/
@Slf4j
@Data
public class Product_supplier_taxes_relSearchContext extends QueryWrapperContext<Product_supplier_taxes_rel> {
private Long n_id_like;//[id]
public void setN_id_like(Long n_id_like) {
this.n_id_like = n_id_like;
if(!ObjectUtils.isEmpty(this.n_id_like)){
this.getSearchCond().like("id", n_id_like);
}
}
private Long n_prod_id_eq;//[ID]
public void setN_prod_id_eq(Long n_prod_id_eq) {
this.n_prod_id_eq = n_prod_id_eq;
if(!ObjectUtils.isEmpty(this.n_prod_id_eq)){
this.getSearchCond().eq("prod_id", n_prod_id_eq);
}
}
private Long n_tax_id_eq;//[ID]
public void setN_tax_id_eq(Long n_tax_id_eq) {
this.n_tax_id_eq = n_tax_id_eq;
if(!ObjectUtils.isEmpty(this.n_tax_id_eq)){
this.getSearchCond().eq("tax_id", n_tax_id_eq);
}
}
/**
* 启用快速搜索
*/
public void setQuery(String query)
{
this.query=query;
if(!StringUtils.isEmpty(query)){
this.getSearchCond().and( wrapper ->
wrapper.like("id", query)
);
}
}
}
package cn.ibizlab.businesscentral.core.odoo_product.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.businesscentral.util.filter.QueryWrapperContext;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import cn.ibizlab.businesscentral.core.odoo_product.domain.Product_taxes_rel;
/**
* 关系型数据实体[Product_taxes_rel] 查询条件对象
*/
@Slf4j
@Data
public class Product_taxes_relSearchContext extends QueryWrapperContext<Product_taxes_rel> {
private Long n_id_like;//[id]
public void setN_id_like(Long n_id_like) {
this.n_id_like = n_id_like;
if(!ObjectUtils.isEmpty(this.n_id_like)){
this.getSearchCond().like("id", n_id_like);
}
}
private Long n_prod_id_eq;//[ID]
public void setN_prod_id_eq(Long n_prod_id_eq) {
this.n_prod_id_eq = n_prod_id_eq;
if(!ObjectUtils.isEmpty(this.n_prod_id_eq)){
this.getSearchCond().eq("prod_id", n_prod_id_eq);
}
}
private Long n_tax_id_eq;//[ID]
public void setN_tax_id_eq(Long n_tax_id_eq) {
this.n_tax_id_eq = n_tax_id_eq;
if(!ObjectUtils.isEmpty(this.n_tax_id_eq)){
this.getSearchCond().eq("tax_id", n_tax_id_eq);
}
}
/**
* 启用快速搜索
*/
public void setQuery(String query)
{
this.query=query;
if(!StringUtils.isEmpty(query)){
this.getSearchCond().and( wrapper ->
wrapper.like("id", query)
);
}
}
}
package cn.ibizlab.businesscentral.core.odoo_product.mapper;
import java.util.List;
import org.apache.ibatis.annotations.*;
import java.util.Map;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import java.util.HashMap;
import org.apache.ibatis.annotations.Select;
import cn.ibizlab.businesscentral.core.odoo_product.domain.Product_supplier_taxes_rel;
import cn.ibizlab.businesscentral.core.odoo_product.filter.Product_supplier_taxes_relSearchContext;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import java.io.Serializable;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.alibaba.fastjson.JSONObject;
public interface Product_supplier_taxes_relMapper extends BaseMapper<Product_supplier_taxes_rel>{
Page<Product_supplier_taxes_rel> searchDefault(IPage page, @Param("srf") Product_supplier_taxes_relSearchContext context, @Param("ew") Wrapper<Product_supplier_taxes_rel> wrapper) ;
@Override
Product_supplier_taxes_rel selectById(Serializable id);
@Override
int insert(Product_supplier_taxes_rel entity);
@Override
int updateById(@Param(Constants.ENTITY) Product_supplier_taxes_rel entity);
@Override
int update(@Param(Constants.ENTITY) Product_supplier_taxes_rel entity, @Param("ew") Wrapper<Product_supplier_taxes_rel> updateWrapper);
@Override
int deleteById(Serializable id);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select("${sql}")
List<JSONObject> selectBySQL(@Param("sql") String sql, @Param("et")Map param);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update("${sql}")
boolean updateBySQL(@Param("sql") String sql, @Param("et")Map param);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert("${sql}")
boolean insertBySQL(@Param("sql") String sql, @Param("et")Map param);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<Product_supplier_taxes_rel> selectByTaxId(@Param("id") Serializable id) ;
List<Product_supplier_taxes_rel> selectByProdId(@Param("id") Serializable id) ;
}
package cn.ibizlab.businesscentral.core.odoo_product.mapper;
import java.util.List;
import org.apache.ibatis.annotations.*;
import java.util.Map;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import java.util.HashMap;
import org.apache.ibatis.annotations.Select;
import cn.ibizlab.businesscentral.core.odoo_product.domain.Product_taxes_rel;
import cn.ibizlab.businesscentral.core.odoo_product.filter.Product_taxes_relSearchContext;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import java.io.Serializable;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.alibaba.fastjson.JSONObject;
public interface Product_taxes_relMapper extends BaseMapper<Product_taxes_rel>{
Page<Product_taxes_rel> searchDefault(IPage page, @Param("srf") Product_taxes_relSearchContext context, @Param("ew") Wrapper<Product_taxes_rel> wrapper) ;
@Override
Product_taxes_rel selectById(Serializable id);
@Override
int insert(Product_taxes_rel entity);
@Override
int updateById(@Param(Constants.ENTITY) Product_taxes_rel entity);
@Override
int update(@Param(Constants.ENTITY) Product_taxes_rel entity, @Param("ew") Wrapper<Product_taxes_rel> updateWrapper);
@Override
int deleteById(Serializable id);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select("${sql}")
List<JSONObject> selectBySQL(@Param("sql") String sql, @Param("et")Map param);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update("${sql}")
boolean updateBySQL(@Param("sql") String sql, @Param("et")Map param);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert("${sql}")
boolean insertBySQL(@Param("sql") String sql, @Param("et")Map param);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<Product_taxes_rel> selectByTaxId(@Param("id") Serializable id) ;
List<Product_taxes_rel> selectByProdId(@Param("id") Serializable id) ;
}
package cn.ibizlab.businesscentral.core.odoo_product.service;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.scheduling.annotation.Async;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.businesscentral.core.odoo_product.domain.Product_supplier_taxes_rel;
import cn.ibizlab.businesscentral.core.odoo_product.filter.Product_supplier_taxes_relSearchContext;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 实体[Product_supplier_taxes_rel] 服务对象接口
*/
public interface IProduct_supplier_taxes_relService extends IService<Product_supplier_taxes_rel>{
boolean create(Product_supplier_taxes_rel et) ;
void createBatch(List<Product_supplier_taxes_rel> list) ;
boolean update(Product_supplier_taxes_rel et) ;
void updateBatch(List<Product_supplier_taxes_rel> list) ;
boolean remove(Long key) ;
void removeBatch(Collection<Long> idList) ;
Product_supplier_taxes_rel get(Long key) ;
Product_supplier_taxes_rel getDraft(Product_supplier_taxes_rel et) ;
boolean checkKey(Product_supplier_taxes_rel et) ;
boolean save(Product_supplier_taxes_rel et) ;
void saveBatch(List<Product_supplier_taxes_rel> list) ;
Page<Product_supplier_taxes_rel> searchDefault(Product_supplier_taxes_relSearchContext context) ;
List<Product_supplier_taxes_rel> selectByTaxId(Long id);
void removeByTaxId(Long id);
List<Product_supplier_taxes_rel> selectByProdId(Long id);
void removeByProdId(Long id);
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
*自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
package cn.ibizlab.businesscentral.core.odoo_product.service;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.scheduling.annotation.Async;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.businesscentral.core.odoo_product.domain.Product_taxes_rel;
import cn.ibizlab.businesscentral.core.odoo_product.filter.Product_taxes_relSearchContext;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 实体[Product_taxes_rel] 服务对象接口
*/
public interface IProduct_taxes_relService extends IService<Product_taxes_rel>{
boolean create(Product_taxes_rel et) ;
void createBatch(List<Product_taxes_rel> list) ;
boolean update(Product_taxes_rel et) ;
void updateBatch(List<Product_taxes_rel> list) ;
boolean remove(Long key) ;
void removeBatch(Collection<Long> idList) ;
Product_taxes_rel get(Long key) ;
Product_taxes_rel getDraft(Product_taxes_rel et) ;
boolean checkKey(Product_taxes_rel et) ;
boolean save(Product_taxes_rel et) ;
void saveBatch(List<Product_taxes_rel> list) ;
Page<Product_taxes_rel> searchDefault(Product_taxes_relSearchContext context) ;
List<Product_taxes_rel> selectByTaxId(Long id);
void removeByTaxId(Long id);
List<Product_taxes_rel> selectByProdId(Long id);
void removeByProdId(Long id);
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
*自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
package cn.ibizlab.businesscentral.core.odoo_product.service.impl;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.Map;
import java.util.HashSet;
import java.util.HashMap;
import java.util.Collection;
import java.util.Objects;
import java.util.Optional;
import java.math.BigInteger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils;
import org.springframework.beans.factory.annotation.Value;
import cn.ibizlab.businesscentral.util.errors.BadRequestAlertException;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.odoo_product.domain.Product_supplier_taxes_rel;
import cn.ibizlab.businesscentral.core.odoo_product.filter.Product_supplier_taxes_relSearchContext;
import cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_supplier_taxes_relService;
import cn.ibizlab.businesscentral.util.helper.CachedBeanCopier;
import cn.ibizlab.businesscentral.util.helper.DEFieldCacheMap;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.ibizlab.businesscentral.core.util.helper.EBSServiceImpl;
import cn.ibizlab.businesscentral.core.odoo_product.mapper.Product_supplier_taxes_relMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.alibaba.fastjson.JSONObject;
import org.springframework.util.StringUtils;
/**
* 实体[产品进项税] 服务对象接口实现
*/
@Slf4j
@Service("Product_supplier_taxes_relServiceImpl")
public class Product_supplier_taxes_relServiceImpl extends EBSServiceImpl<Product_supplier_taxes_relMapper, Product_supplier_taxes_rel> implements IProduct_supplier_taxes_relService {
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_account.service.IAccount_taxService accountTaxService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_templateService productTemplateService;
protected int batchSize = 500;
public String getIrModel(){
return "product.supplier.taxes.rel" ;
}
private boolean messageinfo = false ;
public void setMessageInfo(boolean messageinfo){
this.messageinfo = messageinfo ;
}
@Override
@Transactional
public boolean create(Product_supplier_taxes_rel et) {
boolean mail_create_nosubscribe = et.get("mail_create_nosubscribe") != null;
boolean mail_create_nolog = et.get("mail_create_nolog") != null;
boolean mail_notrack = et.get("mail_notrack") != null;
if(!this.retBool(this.baseMapper.insert(et)))
return false;
if (messageinfo && !mail_create_nosubscribe && false) {
cn.ibizlab.businesscentral.util.security.SpringContextHolder.getBean(cn.ibizlab.businesscentral.core.extensions.service.Mail_followersExService.class).add_default_followers(this,et);
}
if (messageinfo && !mail_create_nolog && false) {
cn.ibizlab.businesscentral.util.security.SpringContextHolder.getBean(cn.ibizlab.businesscentral.core.extensions.service.Mail_tracking_valueExService.class).add_default_create_message(this,et);
}
if (messageinfo && !mail_notrack && false) {
}
return true;
}
@Override
@Transactional
public void createBatch(List<Product_supplier_taxes_rel> list) {
this.saveBatch(list,batchSize);
}
@Override
@Transactional
public boolean update(Product_supplier_taxes_rel et) {
Product_supplier_taxes_rel old = new Product_supplier_taxes_rel() ;
CachedBeanCopier.copy(get(et.getId()), old);
boolean mail_notrack = et.get("mail_notrack") != null;
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("id",et.getId())))
return false;
CachedBeanCopier.copy(get(et.getId()),et);
if (messageinfo && !mail_notrack && false) {
cn.ibizlab.businesscentral.util.security.SpringContextHolder.getBean(cn.ibizlab.businesscentral.core.extensions.service.Mail_tracking_valueExService.class).message_track(this,old,et);
}
return true;
}
@Override
@Transactional
public void updateBatch(List<Product_supplier_taxes_rel> list) {
updateBatchById(list,batchSize);
}
@Override
@Transactional
public boolean remove(Long key) {
boolean result=removeById(key);
return result ;
}
@Override
@Transactional
public void removeBatch(Collection<Long> idList) {
removeByIds(idList);
}
@Override
@Transactional
public Product_supplier_taxes_rel get(Long key) {
Product_supplier_taxes_rel et = getById(key);
if(et==null){
et=new Product_supplier_taxes_rel();
}
else{
}
return et;
}
@Override
public Product_supplier_taxes_rel getDraft(Product_supplier_taxes_rel et) {
return et;
}
@Override
public boolean checkKey(Product_supplier_taxes_rel et) {
return (!ObjectUtils.isEmpty(et.getId()))&&(!Objects.isNull(this.getById(et.getId())));
}
@Override
@Transactional
public boolean save(Product_supplier_taxes_rel et) {
if(!saveOrUpdate(et))
return false;
return true;
}
@Override
@Transactional
public boolean saveOrUpdate(Product_supplier_taxes_rel et) {
if (null == et) {
return false;
} else {
return checkKey(et) ? this.update(et) : this.create(et);
}
}
@Override
@Transactional
public boolean saveBatch(Collection<Product_supplier_taxes_rel> list) {
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
@Transactional
public void saveBatch(List<Product_supplier_taxes_rel> list) {
saveOrUpdateBatch(list,batchSize);
}
@Override
public List<Product_supplier_taxes_rel> selectByTaxId(Long id) {
return baseMapper.selectByTaxId(id);
}
@Override
public void removeByTaxId(Long id) {
this.remove(new QueryWrapper<Product_supplier_taxes_rel>().eq("tax_id",id));
}
@Override
public List<Product_supplier_taxes_rel> selectByProdId(Long id) {
return baseMapper.selectByProdId(id);
}
@Override
public void removeByProdId(Long id) {
this.remove(new QueryWrapper<Product_supplier_taxes_rel>().eq("prod_id",id));
}
/**
* 查询集合 数据集
*/
@Override
public Page<Product_supplier_taxes_rel> searchDefault(Product_supplier_taxes_relSearchContext context) {
com.baomidou.mybatisplus.extension.plugins.pagination.Page<Product_supplier_taxes_rel> pages=baseMapper.searchDefault(context.getPages(),context,context.getSelectCond());
return new PageImpl<Product_supplier_taxes_rel>(pages.getRecords(), context.getPageable(), pages.getTotal());
}
@Override
public List<JSONObject> select(String sql, Map param){
return this.baseMapper.selectBySQL(sql,param);
}
@Override
@Transactional
public boolean execute(String sql , Map param){
if (sql == null || sql.isEmpty()) {
return false;
}
if (sql.toLowerCase().trim().startsWith("insert")) {
return this.baseMapper.insertBySQL(sql,param);
}
if (sql.toLowerCase().trim().startsWith("update")) {
return this.baseMapper.updateBySQL(sql,param);
}
if (sql.toLowerCase().trim().startsWith("delete")) {
return this.baseMapper.deleteBySQL(sql,param);
}
log.warn("暂未支持的SQL语法");
return true;
}
}
package cn.ibizlab.businesscentral.core.odoo_product.service.impl;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.Map;
import java.util.HashSet;
import java.util.HashMap;
import java.util.Collection;
import java.util.Objects;
import java.util.Optional;
import java.math.BigInteger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils;
import org.springframework.beans.factory.annotation.Value;
import cn.ibizlab.businesscentral.util.errors.BadRequestAlertException;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.odoo_product.domain.Product_taxes_rel;
import cn.ibizlab.businesscentral.core.odoo_product.filter.Product_taxes_relSearchContext;
import cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_taxes_relService;
import cn.ibizlab.businesscentral.util.helper.CachedBeanCopier;
import cn.ibizlab.businesscentral.util.helper.DEFieldCacheMap;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.ibizlab.businesscentral.core.util.helper.EBSServiceImpl;
import cn.ibizlab.businesscentral.core.odoo_product.mapper.Product_taxes_relMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.alibaba.fastjson.JSONObject;
import org.springframework.util.StringUtils;
/**
* 实体[产品销项税] 服务对象接口实现
*/
@Slf4j
@Service("Product_taxes_relServiceImpl")
public class Product_taxes_relServiceImpl extends EBSServiceImpl<Product_taxes_relMapper, Product_taxes_rel> implements IProduct_taxes_relService {
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_account.service.IAccount_taxService accountTaxService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_templateService productTemplateService;
protected int batchSize = 500;
public String getIrModel(){
return "product.taxes.rel" ;
}
private boolean messageinfo = false ;
public void setMessageInfo(boolean messageinfo){
this.messageinfo = messageinfo ;
}
@Override
@Transactional
public boolean create(Product_taxes_rel et) {
boolean mail_create_nosubscribe = et.get("mail_create_nosubscribe") != null;
boolean mail_create_nolog = et.get("mail_create_nolog") != null;
boolean mail_notrack = et.get("mail_notrack") != null;
if(!this.retBool(this.baseMapper.insert(et)))
return false;
if (messageinfo && !mail_create_nosubscribe && false) {
cn.ibizlab.businesscentral.util.security.SpringContextHolder.getBean(cn.ibizlab.businesscentral.core.extensions.service.Mail_followersExService.class).add_default_followers(this,et);
}
if (messageinfo && !mail_create_nolog && false) {
cn.ibizlab.businesscentral.util.security.SpringContextHolder.getBean(cn.ibizlab.businesscentral.core.extensions.service.Mail_tracking_valueExService.class).add_default_create_message(this,et);
}
if (messageinfo && !mail_notrack && false) {
}
return true;
}
@Override
@Transactional
public void createBatch(List<Product_taxes_rel> list) {
this.saveBatch(list,batchSize);
}
@Override
@Transactional
public boolean update(Product_taxes_rel et) {
Product_taxes_rel old = new Product_taxes_rel() ;
CachedBeanCopier.copy(get(et.getId()), old);
boolean mail_notrack = et.get("mail_notrack") != null;
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("id",et.getId())))
return false;
CachedBeanCopier.copy(get(et.getId()),et);
if (messageinfo && !mail_notrack && false) {
cn.ibizlab.businesscentral.util.security.SpringContextHolder.getBean(cn.ibizlab.businesscentral.core.extensions.service.Mail_tracking_valueExService.class).message_track(this,old,et);
}
return true;
}
@Override
@Transactional
public void updateBatch(List<Product_taxes_rel> list) {
updateBatchById(list,batchSize);
}
@Override
@Transactional
public boolean remove(Long key) {
boolean result=removeById(key);
return result ;
}
@Override
@Transactional
public void removeBatch(Collection<Long> idList) {
removeByIds(idList);
}
@Override
@Transactional
public Product_taxes_rel get(Long key) {
Product_taxes_rel et = getById(key);
if(et==null){
et=new Product_taxes_rel();
}
else{
}
return et;
}
@Override
public Product_taxes_rel getDraft(Product_taxes_rel et) {
return et;
}
@Override
public boolean checkKey(Product_taxes_rel et) {
return (!ObjectUtils.isEmpty(et.getId()))&&(!Objects.isNull(this.getById(et.getId())));
}
@Override
@Transactional
public boolean save(Product_taxes_rel et) {
if(!saveOrUpdate(et))
return false;
return true;
}
@Override
@Transactional
public boolean saveOrUpdate(Product_taxes_rel et) {
if (null == et) {
return false;
} else {
return checkKey(et) ? this.update(et) : this.create(et);
}
}
@Override
@Transactional
public boolean saveBatch(Collection<Product_taxes_rel> list) {
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
@Transactional
public void saveBatch(List<Product_taxes_rel> list) {
saveOrUpdateBatch(list,batchSize);
}
@Override
public List<Product_taxes_rel> selectByTaxId(Long id) {
return baseMapper.selectByTaxId(id);
}
@Override
public void removeByTaxId(Long id) {
this.remove(new QueryWrapper<Product_taxes_rel>().eq("tax_id",id));
}
@Override
public List<Product_taxes_rel> selectByProdId(Long id) {
return baseMapper.selectByProdId(id);
}
@Override
public void removeByProdId(Long id) {
this.remove(new QueryWrapper<Product_taxes_rel>().eq("prod_id",id));
}
/**
* 查询集合 数据集
*/
@Override
public Page<Product_taxes_rel> searchDefault(Product_taxes_relSearchContext context) {
com.baomidou.mybatisplus.extension.plugins.pagination.Page<Product_taxes_rel> pages=baseMapper.searchDefault(context.getPages(),context,context.getSelectCond());
return new PageImpl<Product_taxes_rel>(pages.getRecords(), context.getPageable(), pages.getTotal());
}
@Override
public List<JSONObject> select(String sql, Map param){
return this.baseMapper.selectBySQL(sql,param);
}
@Override
@Transactional
public boolean execute(String sql , Map param){
if (sql == null || sql.isEmpty()) {
return false;
}
if (sql.toLowerCase().trim().startsWith("insert")) {
return this.baseMapper.insertBySQL(sql,param);
}
if (sql.toLowerCase().trim().startsWith("update")) {
return this.baseMapper.updateBySQL(sql,param);
}
if (sql.toLowerCase().trim().startsWith("delete")) {
return this.baseMapper.deleteBySQL(sql,param);
}
log.warn("暂未支持的SQL语法");
return true;
}
}
......@@ -70,6 +70,12 @@ public class Product_templateServiceImpl extends EBSServiceImpl<Product_template
protected cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_supplierinfoService productSupplierinfoService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_supplier_taxes_relService productSupplierTaxesRelService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_taxes_relService productTaxesRelService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_template_attribute_exclusionService productTemplateAttributeExclusionService;
@Autowired
@Lazy
......
......@@ -864,9 +864,15 @@
<!--输出实体[PRODUCT_STYLE]数据结构 -->
<!--输出实体[PRODUCT_SUPPLIER_TAXES_REL]数据结构 -->
<!--输出实体[PRODUCT_SUPPLIERINFO]数据结构 -->
<!--输出实体[PRODUCT_TAXES_REL]数据结构 -->
<!--输出实体[PRODUCT_TEMPLATE]数据结构 -->
......@@ -1528,7 +1534,9 @@
<!--输出实体[PRODUCT_REMOVAL]外键关系 -->
<!--输出实体[PRODUCT_REPLENISH]外键关系 -->
<!--输出实体[PRODUCT_STYLE]外键关系 -->
<!--输出实体[PRODUCT_SUPPLIER_TAXES_REL]外键关系 -->
<!--输出实体[PRODUCT_SUPPLIERINFO]外键关系 -->
<!--输出实体[PRODUCT_TAXES_REL]外键关系 -->
<!--输出实体[PRODUCT_TEMPLATE]外键关系 -->
<!--输出实体[PRODUCT_TEMPLATE_ATTRIBUTE_EXCLUSION]外键关系 -->
<!--输出实体[PRODUCT_TEMPLATE_ATTRIBUTE_LINE]外键关系 -->
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_product.mapper.Product_supplier_taxes_relMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Product_supplier_taxes_relResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.PROD_ID, t1.TAX_ID FROM PRODUCT_SUPPLIER_TAXES_REL t1 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Product_supplier_taxes_relResultMap" type="cn.ibizlab.businesscentral.core.odoo_product.domain.Product_supplier_taxes_rel" autoMapping="true">
<result property="prodId" column="prod_id" />
<result property="taxId" column="tax_id" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooTax" javaType="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_tax" column="tax_id" select="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_taxMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooProd" javaType="cn.ibizlab.businesscentral.core.odoo_product.domain.Product_template" column="prod_id" select="cn.ibizlab.businesscentral.core.odoo_product.mapper.Product_templateMapper.selectById" fetchType="lazy"></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_PRODUCT_SUPPLIER_TAXES_REL_ACCOUNT_TAX_TAX_ID] -->
<select id="selectByTaxId" resultMap="Product_supplier_taxes_relResultMap">
select t1.* from (
<include refid="Default" />
) t1
where tax_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_PRODUCT_SUPPLIER_TAXES_REL_PRODUCT_TEMPLATE_PROD_ID] -->
<select id="selectByProdId" resultMap="Product_supplier_taxes_relResultMap">
select t1.* from (
<include refid="Default" />
) t1
where prod_id=#{id}
</select>
<!--数据集合[Default]-->
<select id="searchDefault" parameterType="cn.ibizlab.businesscentral.core.odoo_product.filter.Product_supplier_taxes_relSearchContext" resultMap="Product_supplier_taxes_relResultMap">
select t1.* from (
<include refid="Default" />
)t1
<where><if test="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.PROD_ID, t1.TAX_ID FROM PRODUCT_SUPPLIER_TAXES_REL t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.PROD_ID, t1.TAX_ID FROM PRODUCT_SUPPLIER_TAXES_REL t1
]]>
</sql>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_product.mapper.Product_taxes_relMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Product_taxes_relResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.PROD_ID, t1.TAX_ID FROM PRODUCT_TAXES_REL t1 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Product_taxes_relResultMap" type="cn.ibizlab.businesscentral.core.odoo_product.domain.Product_taxes_rel" autoMapping="true">
<result property="prodId" column="prod_id" />
<result property="taxId" column="tax_id" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooTax" javaType="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_tax" column="tax_id" select="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_taxMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooProd" javaType="cn.ibizlab.businesscentral.core.odoo_product.domain.Product_template" column="prod_id" select="cn.ibizlab.businesscentral.core.odoo_product.mapper.Product_templateMapper.selectById" fetchType="lazy"></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_PRODUCT_TAXES_REL_ACCOUNT_TAX_TAX_ID] -->
<select id="selectByTaxId" resultMap="Product_taxes_relResultMap">
select t1.* from (
<include refid="Default" />
) t1
where tax_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_PRODUCT_TAXES_REL_PRODUCT_TEMPLATE_PROD_ID] -->
<select id="selectByProdId" resultMap="Product_taxes_relResultMap">
select t1.* from (
<include refid="Default" />
) t1
where prod_id=#{id}
</select>
<!--数据集合[Default]-->
<select id="searchDefault" parameterType="cn.ibizlab.businesscentral.core.odoo_product.filter.Product_taxes_relSearchContext" resultMap="Product_taxes_relResultMap">
select t1.* from (
<include refid="Default" />
)t1
<where><if test="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.PROD_ID, t1.TAX_ID FROM PRODUCT_TAXES_REL t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.PROD_ID, t1.TAX_ID FROM PRODUCT_TAXES_REL t1
]]>
</sql>
</mapper>
......@@ -27927,6 +27927,18 @@
"entity_name":"ACCOUNT_TAX_PURCHASE_ORDER_LINE_REL",
"ref_entity_name":"ACCOUNT_TAX"
},
{"name":"DER1N_PRODUCT_SUPPLIER_TAXES_REL_ACCOUNT_TAX_TAX_ID",
"relation_type":"DER1N",
"code_name":"Odoo_tax",
"entity_name":"PRODUCT_SUPPLIER_TAXES_REL",
"ref_entity_name":"ACCOUNT_TAX"
},
{"name":"DER1N_PRODUCT_TAXES_REL_ACCOUNT_TAX_TAX_ID",
"relation_type":"DER1N",
"code_name":"Odoo_tax",
"entity_name":"PRODUCT_TAXES_REL",
"ref_entity_name":"ACCOUNT_TAX"
},
{"name":"DER1N_RES_COMPANY__ACCOUNT_TAX__ACCOUNT_PURCHASE_TAX_ID",
"relation_type":"DER1N",
"code_name":"Odoo_account_purchase_tax",
......@@ -122931,6 +122943,80 @@
"ref_entity_name":"RES_USERS"
}
]
}
,
{
"entity_name":"PRODUCT_SUPPLIER_TAXES_REL",
"logic_name":"产品进项税",
"code_name":"Product_supplier_taxes_rel",
"table_name":"PRODUCT_SUPPLIER_TAXES_REL",
"system_id":"iBizBusinessCentral",
"system_name":"iBiz商业中心",
"fields":[
{
"fieldname":"ID" ,
"codename":"Id",
"field_logic_name":"id",
"entity_name":"Product_supplier_taxes_rel",
"field_type":"ACID",
"nullable":1,
"physical_field":0,
"data_type":"BIGINT",
"key_field":1,
"show_order":1000,
"major_field":1
},
{
"fieldname":"PROD_ID" ,
"codename":"Prod_id",
"field_logic_name":"ID",
"entity_name":"Product_supplier_taxes_rel",
"ref_de":"PRODUCT_TEMPLATE",
"ref_field_name":"ID",
"relation_name":"DER1N_PRODUCT_SUPPLIER_TAXES_REL_PRODUCT_TEMPLATE_PROD_ID",
"relation_codename":"Odoo_prod",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"TAX_ID" ,
"codename":"Tax_id",
"field_logic_name":"ID",
"entity_name":"Product_supplier_taxes_rel",
"ref_de":"ACCOUNT_TAX",
"ref_field_name":"ID",
"relation_name":"DER1N_PRODUCT_SUPPLIER_TAXES_REL_ACCOUNT_TAX_TAX_ID",
"relation_codename":"Odoo_tax",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"key_field":0,
"show_order":1000,
"major_field":0
}
],
"subEntitys":[
],
"parentEntitys":[
{"name":"DER1N_PRODUCT_SUPPLIER_TAXES_REL_ACCOUNT_TAX_TAX_ID",
"relation_type":"DER1N",
"code_name":"Odoo_tax",
"entity_name":"PRODUCT_SUPPLIER_TAXES_REL",
"ref_entity_name":"ACCOUNT_TAX"
},
{"name":"DER1N_PRODUCT_SUPPLIER_TAXES_REL_PRODUCT_TEMPLATE_PROD_ID",
"relation_type":"DER1N",
"code_name":"Odoo_prod",
"entity_name":"PRODUCT_SUPPLIER_TAXES_REL",
"ref_entity_name":"PRODUCT_TEMPLATE"
}
]
}
,
{
......@@ -123468,6 +123554,80 @@
"ref_entity_name":"RES_USERS"
}
]
}
,
{
"entity_name":"PRODUCT_TAXES_REL",
"logic_name":"产品销项税",
"code_name":"Product_taxes_rel",
"table_name":"PRODUCT_TAXES_REL",
"system_id":"iBizBusinessCentral",
"system_name":"iBiz商业中心",
"fields":[
{
"fieldname":"ID" ,
"codename":"Id",
"field_logic_name":"id",
"entity_name":"Product_taxes_rel",
"field_type":"ACID",
"nullable":1,
"physical_field":0,
"data_type":"BIGINT",
"key_field":1,
"show_order":1000,
"major_field":1
},
{
"fieldname":"PROD_ID" ,
"codename":"Prod_id",
"field_logic_name":"ID",
"entity_name":"Product_taxes_rel",
"ref_de":"PRODUCT_TEMPLATE",
"ref_field_name":"ID",
"relation_name":"DER1N_PRODUCT_TAXES_REL_PRODUCT_TEMPLATE_PROD_ID",
"relation_codename":"Odoo_prod",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"TAX_ID" ,
"codename":"Tax_id",
"field_logic_name":"ID",
"entity_name":"Product_taxes_rel",
"ref_de":"ACCOUNT_TAX",
"ref_field_name":"ID",
"relation_name":"DER1N_PRODUCT_TAXES_REL_ACCOUNT_TAX_TAX_ID",
"relation_codename":"Odoo_tax",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"key_field":0,
"show_order":1000,
"major_field":0
}
],
"subEntitys":[
],
"parentEntitys":[
{"name":"DER1N_PRODUCT_TAXES_REL_ACCOUNT_TAX_TAX_ID",
"relation_type":"DER1N",
"code_name":"Odoo_tax",
"entity_name":"PRODUCT_TAXES_REL",
"ref_entity_name":"ACCOUNT_TAX"
},
{"name":"DER1N_PRODUCT_TAXES_REL_PRODUCT_TEMPLATE_PROD_ID",
"relation_type":"DER1N",
"code_name":"Odoo_prod",
"entity_name":"PRODUCT_TAXES_REL",
"ref_entity_name":"PRODUCT_TEMPLATE"
}
]
}
,
{
......@@ -125774,6 +125934,18 @@
"entity_name":"PRODUCT_SUPPLIERINFO",
"ref_entity_name":"PRODUCT_TEMPLATE"
},
{"name":"DER1N_PRODUCT_SUPPLIER_TAXES_REL_PRODUCT_TEMPLATE_PROD_ID",
"relation_type":"DER1N",
"code_name":"Odoo_prod",
"entity_name":"PRODUCT_SUPPLIER_TAXES_REL",
"ref_entity_name":"PRODUCT_TEMPLATE"
},
{"name":"DER1N_PRODUCT_TAXES_REL_PRODUCT_TEMPLATE_PROD_ID",
"relation_type":"DER1N",
"code_name":"Odoo_prod",
"entity_name":"PRODUCT_TAXES_REL",
"ref_entity_name":"PRODUCT_TEMPLATE"
},
{"name":"DER1N_PRODUCT_TEMPLATE_ATTRIBUTE_EXCLUSION__PRODUCT_TEMPLATE__PRODUCT_TMPL_ID",
"relation_type":"DER1N",
"code_name":"Odoo_product_tmpl",
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册