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

xignzi006 发布系统代码 [Spring Boot]

上级 b0ffdeac
......@@ -120,7 +120,8 @@ public class Res_supplierServiceImpl extends EBSServiceImpl<Res_supplierMapper,
@Override
@Transactional
public boolean update(Res_supplier et) {
if(et.getFocusNull().contains("category_id") || org.apache.commons.lang3.StringUtils.isNotBlank(et.getCategoryId())){
if(et.getFocusNull().contains("category_id") || et.getCategoryId()!=null){
et.getFocusNull().remove("category_id");
resSupplierResPartnerCategoryRelService.removeByPartnerId(et.getId());
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getCategoryId())){
this.baseMapper.saveRelByCategoryId(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(et.getCategoryId(), cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
......
......@@ -171,14 +171,16 @@ 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())){
if(et.getFocusNull().contains("supplier_taxes_id") || et.getSupplierTaxesId()!=null){
et.getFocusNull().remove("supplier_taxes_id");
productSupplierTaxesRelService.removeByProdId(et.getId());
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getSupplierTaxesId())){
this.baseMapper.saveRelBySupplierTaxesId(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())){
if(et.getFocusNull().contains("taxes_id") || et.getTaxesId()!=null){
et.getFocusNull().remove("taxes_id");
productTaxesRelService.removeByProdId(et.getId());
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getTaxesId())){
this.baseMapper.saveRelByTaxesId(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(et.getTaxesId(), cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
......
......@@ -152,7 +152,8 @@ public class Purchase_order_lineServiceImpl extends EBSServiceImpl<Purchase_orde
@Override
@Transactional
public boolean update(Purchase_order_line et) {
if(et.getFocusNull().contains("taxes_id") || org.apache.commons.lang3.StringUtils.isNotBlank(et.getTaxesId())){
if(et.getFocusNull().contains("taxes_id") || et.getTaxesId()!=null){
et.getFocusNull().remove("taxes_id");
accountTaxPurchaseOrderLineRelService.removeByPurchaseOrderLineId(et.getId());
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getTaxesId())){
this.baseMapper.saveRelByTaxesId(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(et.getTaxesId(), cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册