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

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

上级 eaf49fd7
......@@ -64,6 +64,6 @@ public interface Res_supplierMapper extends BaseMapper<Res_supplier>{
boolean saveRelByOdooSupplier(@Param("partner_id") Long partner_id, List<cn.ibizlab.businesscentral.util.domain.MultiSelectItem> res_partner_categories);
boolean saveRelByPartnerId(@Param("partner_id") Long partner_id, List<cn.ibizlab.businesscentral.util.domain.MultiSelectItem> res_partner_categories);
}
......@@ -99,7 +99,7 @@ public class Res_supplierServiceImpl extends EBSServiceImpl<Res_supplierMapper,
}
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getCategoryId())){
this.baseMapper.saveRelByOdooSupplier(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(category_id, cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
this.baseMapper.saveRelByPartnerId(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(category_id, cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
return true;
......@@ -117,7 +117,7 @@ public class Res_supplierServiceImpl extends EBSServiceImpl<Res_supplierMapper,
if(et.getFocusNull().contains("category_id") || org.apache.commons.lang3.StringUtils.isNotBlank(et.getCategoryId())){
resSupplierResPartnerCategoryRelService.removeByPartnerId(et.getId());
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getCategoryId())){
this.baseMapper.saveRelByOdooSupplier(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(et.getCategoryId(), cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
this.baseMapper.saveRelByPartnerId(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(et.getCategoryId(), cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
}
......
......@@ -76,9 +76,9 @@ public interface Product_templateMapper extends BaseMapper<Product_template>{
boolean saveRelByOdooProd(@Param("prod_id") Long prod_id, List<cn.ibizlab.businesscentral.util.domain.MultiSelectItem> account_taxes);
boolean saveRelByProdId(@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);
boolean saveRelByProdId(@Param("prod_id") Long prod_id, List<cn.ibizlab.businesscentral.util.domain.MultiSelectItem> account_taxes);
}
......@@ -150,11 +150,11 @@ public class Product_templateServiceImpl extends EBSServiceImpl<Product_template
}
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));
this.baseMapper.saveRelByProdId(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));
this.baseMapper.saveRelByProdId(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(taxes_id, cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
return true;
......@@ -173,14 +173,14 @@ public class Product_templateServiceImpl extends EBSServiceImpl<Product_template
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));
this.baseMapper.saveRelByProdId(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));
this.baseMapper.saveRelByProdId(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(et.getTaxesId(), cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
}
......
......@@ -89,6 +89,6 @@ public interface Purchase_order_lineMapper extends BaseMapper<Purchase_order_lin
boolean saveRelByOdooPurchaseOrderLine(@Param("purchase_order_line_id") Long purchase_order_line_id, List<cn.ibizlab.businesscentral.util.domain.MultiSelectItem> account_taxes);
boolean saveRelByPurchaseOrderLineId(@Param("purchase_order_line_id") Long purchase_order_line_id, List<cn.ibizlab.businesscentral.util.domain.MultiSelectItem> account_taxes);
}
......@@ -135,7 +135,7 @@ public class Purchase_order_lineServiceImpl extends EBSServiceImpl<Purchase_orde
}
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getTaxesId())){
this.baseMapper.saveRelByOdooPurchaseOrderLine(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(taxes_id, cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
this.baseMapper.saveRelByPurchaseOrderLineId(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(taxes_id, cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
return true;
......@@ -154,7 +154,7 @@ public class Purchase_order_lineServiceImpl extends EBSServiceImpl<Purchase_orde
if(et.getFocusNull().contains("taxes_id") || org.apache.commons.lang3.StringUtils.isNotBlank(et.getTaxesId())){
accountTaxPurchaseOrderLineRelService.removeByPurchaseOrderLineId(et.getId());
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getTaxesId())){
this.baseMapper.saveRelByOdooPurchaseOrderLine(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(et.getTaxesId(), cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
this.baseMapper.saveRelByPurchaseOrderLineId(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(et.getTaxesId(), cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
}
......
......@@ -39,7 +39,7 @@
]]>
</sql>
<insert id="saveRelByOdooSupplier" parameterType="map">
<insert id="saveRelByPartnerId" parameterType="map">
INSERT INTO RES_PARTNER_RES_PARTNER_CATEGORY_REL(
PARTNER_ID,CATEGORY_ID
)values
......
......@@ -238,7 +238,7 @@
]]>
</sql>
<insert id="saveRelByOdooProd" parameterType="map">
<insert id="saveRelByProdId" parameterType="map">
INSERT INTO PRODUCT_SUPPLIER_TAXES_REL(
PROD_ID,TAX_ID
)values
......@@ -249,7 +249,7 @@
DO NOTHING;
</insert>
<insert id="saveRelByOdooProd" parameterType="map">
<insert id="saveRelByProdId" parameterType="map">
INSERT INTO PRODUCT_TAXES_REL(
PROD_ID,TAX_ID
)values
......
......@@ -208,7 +208,7 @@
]]>
</sql>
<insert id="saveRelByOdooPurchaseOrderLine" parameterType="map">
<insert id="saveRelByPurchaseOrderLineId" parameterType="map">
INSERT INTO ACCOUNT_TAX_PURCHASE_ORDER_LINE_REL(
PURCHASE_ORDER_LINE_ID,ACCOUNT_TAX_ID
)values
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册