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

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

上级 5e8521f0
......@@ -646,13 +646,6 @@ public class Product_template extends EntityMP implements Serializable {
@JSONField(name = "item_ids")
@JsonProperty("item_ids")
private String itemIds;
/**
* 进项税
*/
@TableField(exist = false)
@JSONField(name = "supplier_taxes_id")
@JsonProperty("supplier_taxes_id")
private String supplierTaxesId;
/**
* 体积
*/
......@@ -868,13 +861,6 @@ public class Product_template extends EntityMP implements Serializable {
@JSONField(name = "bom_count")
@JsonProperty("bom_count")
private Integer bomCount;
/**
* 销项税
*/
@TableField(exist = false)
@JSONField(name = "taxes_id")
@JsonProperty("taxes_id")
private String taxesId;
/**
* 错误数
*/
......@@ -1236,6 +1222,22 @@ public class Product_template extends EntityMP implements Serializable {
@JSONField(name = "uom_po_id")
@JsonProperty("uom_po_id")
private Long uomPoId;
/**
* 进项税
*/
@TableField(exist = false)
@JSONField(name = "supplier_taxes_id")
@JsonProperty("supplier_taxes_id")
private String supplierTaxesId;
/**
* 销项税
*/
@TableField(exist = false)
@JSONField(name = "taxes_id")
@JsonProperty("taxes_id")
private String taxesId;
/**
*
......@@ -1719,6 +1721,22 @@ public class Product_template extends EntityMP implements Serializable {
this.modify("uom_po_id",uomPoId);
}
/**
* 设置 [进项税]
*/
public void setSupplierTaxesId(String supplierTaxesId){
this.supplierTaxesId = supplierTaxesId ;
this.modify("supplier_taxes_id",supplierTaxesId);
}
/**
* 设置 [销项税]
*/
public void setTaxesId(String taxesId){
this.taxesId = taxesId ;
this.modify("taxes_id",taxesId);
}
@Override
public Serializable getDefaultKey(boolean gen) {
......
......@@ -75,4 +75,10 @@ public interface Product_templateMapper extends BaseMapper<Product_template>{
List<Product_template> selectByUomPoId(@Param("id") Serializable id) ;
boolean saveRelByOdooProd(@Param("prod_id") Long prod_id, List<cn.ibizlab.businesscentral.util.domain.MultiSelectItem> account_taxes);
boolean saveRelByOdooProd(@Param("prod_id") Long prod_id, List<cn.ibizlab.businesscentral.util.domain.MultiSelectItem> account_taxes);
}
......@@ -126,6 +126,10 @@ public class Product_templateServiceImpl extends EBSServiceImpl<Product_template
@Override
@Transactional
public boolean create(Product_template et) {
String supplier_taxes_id = et.getSupplierTaxesId() ;
String taxes_id = et.getTaxesId() ;
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;
......@@ -145,6 +149,14 @@ public class Product_templateServiceImpl extends EBSServiceImpl<Product_template
if (messageinfo && !mail_notrack) {
}
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getSupplierTaxesId())){
this.baseMapper.saveRelByOdooProd(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(supplier_taxes_id, cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getTaxesId())){
this.baseMapper.saveRelByOdooProd(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(taxes_id, cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
return true;
}
......@@ -158,6 +170,20 @@ public class Product_templateServiceImpl extends EBSServiceImpl<Product_template
@Override
@Transactional
public boolean update(Product_template et) {
if(et.getFocusNull().contains("supplier_taxes_id") || org.apache.commons.lang3.StringUtils.isNotBlank(et.getSupplierTaxesId())){
productSupplierTaxesRelService.removeByProdId(et.getId());
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getSupplierTaxesId())){
this.baseMapper.saveRelByOdooProd(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(et.getSupplierTaxesId(), cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
}
if(et.getFocusNull().contains("taxes_id") || org.apache.commons.lang3.StringUtils.isNotBlank(et.getTaxesId())){
productTaxesRelService.removeByProdId(et.getId());
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getTaxesId())){
this.baseMapper.saveRelByOdooProd(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(et.getTaxesId(), cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
}
Product_template old = new Product_template() ;
CachedBeanCopier.copy(get(et.getId()), old);
boolean mail_notrack = et.get("mail_notrack") != null;
......
......@@ -124731,20 +124731,6 @@
"major_field":0
},
{
"fieldname":"SUPPLIER_TAXES_ID" ,
"codename":"Supplier_taxes_id",
"field_logic_name":"进项税",
"entity_name":"Product_template",
"field_type":"LONGTEXT",
"nullable":1,
"physical_field":0,
"data_type":"TEXT",
"data_length":1048576,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"VOLUME" ,
"codename":"Volume",
"field_logic_name":"体积",
......@@ -125137,20 +125123,6 @@
"major_field":0
},
{
"fieldname":"TAXES_ID" ,
"codename":"Taxes_id",
"field_logic_name":"销项税",
"entity_name":"Product_template",
"field_type":"LONGTEXT",
"nullable":1,
"physical_field":0,
"data_type":"TEXT",
"data_length":1048576,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"MESSAGE_HAS_ERROR_COUNTER" ,
"codename":"Message_has_error_counter",
"field_logic_name":"错误数",
......@@ -125868,6 +125840,36 @@
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"SUPPLIER_TAXES_ID" ,
"codename":"Supplier_taxes_id",
"field_logic_name":"进项税",
"entity_name":"Product_template",
"field_type":"ONE2MANYDATA",
"nullable":1,
"physical_field":0,
"data_type":"TEXT",
"data_length":1048576,
"expression":"(SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM PRODUCT_SUPPLIER_TAXES_REL M1 LEFT JOIN ACCOUNT_TAX M2 ON M1.TAX_ID = M2.ID WHERE M1.PROD_ID =T1.ID ) T)",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"TAXES_ID" ,
"codename":"Taxes_id",
"field_logic_name":"销项税",
"entity_name":"Product_template",
"field_type":"ONE2MANYDATA",
"nullable":1,
"physical_field":0,
"data_type":"TEXT",
"data_length":1048576,
"expression":"(SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM PRODUCT_TAXES_REL M1 LEFT JOIN ACCOUNT_TAX M2 ON M1.TAX_ID = M2.ID WHERE M1.PROD_ID =T1.ID ) T)",
"key_field":0,
"show_order":1000,
"major_field":0
}
],
"subEntitys":[
......@@ -733,15 +733,6 @@ public class Product_templateDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String itemIds;
/**
* 属性 [SUPPLIER_TAXES_ID]
*
*/
@JSONField(name = "supplier_taxes_id")
@JsonProperty("supplier_taxes_id")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String supplierTaxesId;
/**
* 属性 [VOLUME]
*
......@@ -989,15 +980,6 @@ public class Product_templateDTO extends DTOBase implements Serializable {
@JsonProperty("bom_count")
private Integer bomCount;
/**
* 属性 [TAXES_ID]
*
*/
@JSONField(name = "taxes_id")
@JsonProperty("taxes_id")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String taxesId;
/**
* 属性 [MESSAGE_HAS_ERROR_COUNTER]
*
......@@ -1428,6 +1410,20 @@ public class Product_templateDTO extends DTOBase implements Serializable {
@NotNull(message = "[采购计量单位]不允许为空!")
private Long uomPoId;
/**
* 属性 [SUPPLIER_TAXES_ID]
*
*/
@JSONField(name = "supplier_taxes_id")
@JsonProperty("supplier_taxes_id")
private String supplierTaxesId;
/**
* 属性 [TAXES_ID]
*
*/
@JSONField(name = "taxes_id")
@JsonProperty("taxes_id")
private String taxesId;
/**
* 设置 [MESSAGE_MAIN_ATTACHMENT_ID]
......@@ -1861,6 +1857,22 @@ public class Product_templateDTO extends DTOBase implements Serializable {
this.modify("uom_po_id",uomPoId);
}
/**
* 设置 [SUPPLIER_TAXES_ID]
*/
public void setSupplierTaxesId(String supplierTaxesId){
this.supplierTaxesId = supplierTaxesId ;
this.modify("supplier_taxes_id",supplierTaxesId);
}
/**
* 设置 [TAXES_ID]
*/
public void setTaxesId(String taxesId){
this.taxesId = taxesId ;
this.modify("taxes_id",taxesId);
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册