|
@@ -81,9 +81,11 @@ public class ZFBPayServiceImpl extends ZfbPayUtils implements ZFBPayService {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void updateSupplierOffer(SupplierRelease supplierRelease2) {
|
|
public void updateSupplierOffer(SupplierRelease supplierRelease2) {
|
|
|
- supplierRelease2.setCode(getSuppileUtil(supplierRelease2.getCode()));
|
|
|
|
|
- zfbPayMapper.updateSupplierOffer(supplierRelease2);
|
|
|
|
|
- zfbPayMapper.updateSupplierOfferChild(supplierRelease2);//返回子账号次数
|
|
|
|
|
|
|
+ if(!supplierRelease2.getCode().equals("0000000000")){
|
|
|
|
|
+ supplierRelease2.setCode(getSuppileUtil(supplierRelease2.getCode()));
|
|
|
|
|
+ zfbPayMapper.updateSupplierOffer(supplierRelease2);
|
|
|
|
|
+ zfbPayMapper.updateSupplierOfferChild(supplierRelease2);//返回子账号次数
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -207,9 +209,11 @@ public class ZFBPayServiceImpl extends ZfbPayUtils implements ZFBPayService {
|
|
|
@Override
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void addSupplierBalanceOf(Supplier supplier) {
|
|
public void addSupplierBalanceOf(Supplier supplier) {
|
|
|
- supplier.setCode(getSuppileUtil(supplier.getCode()));
|
|
|
|
|
- zfbPayMapper.addSupplierBalanceOf(supplier);
|
|
|
|
|
- zfbPayMapper.addSupplierBalanceOfChild(supplier);//子账号同步
|
|
|
|
|
|
|
+ if(!supplier.getCode().equals("0000000000")){
|
|
|
|
|
+ supplier.setCode(getSuppileUtil(supplier.getCode()));
|
|
|
|
|
+ zfbPayMapper.addSupplierBalanceOf(supplier);
|
|
|
|
|
+ zfbPayMapper.addSupplierBalanceOfChild(supplier);//子账号同步
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|