Browse Source

fix

release_toaliyun_real
winter 2 years ago
parent
commit
5950683d73
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java

+ 6
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java View File

@@ -282,7 +282,7 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService
} }


@Override @Override
@Transactional(rollbackFor = {Exception.class})
//@Transactional(rollbackFor = {Exception.class})
public ResultData saveOrUpdate(WxPropertyContract record, Long userId, String userName,boolean writeComplate) { public ResultData saveOrUpdate(WxPropertyContract record, Long userId, String userName,boolean writeComplate) {
// 保存调整金额(预账单调整) // 保存调整金额(预账单调整)
boolean haspreview = false; boolean haspreview = false;
@@ -738,8 +738,11 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService
resultList.add(wxBillProperty); resultList.add(wxBillProperty);
} }
//批量生成预账单 //批量生成预账单
if(saveDb) {
if(saveDb && resultList.size() > 0 ) {
wxBillPropertyMapper.insertBills(resultList); wxBillPropertyMapper.insertBills(resultList);
//for (int i = 0 ; i < resultList.size() ; i++) {
// wxBillPropertyMapper.insert(resultList.get(i));
//}
} }
resultMap.put("billcount",billcount); resultMap.put("billcount",billcount);
resultMap.put("billList",resultList); resultMap.put("billList",resultList);
@@ -847,7 +850,7 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService
* @return * @return
*/ */
@Override @Override
@Transactional(rollbackFor = {Exception.class})
//@Transactional(rollbackFor = {Exception.class})
public List<WxBillProperty> buildProperty(WxMerchant wxMerchant,Long userId,WxPropertyContract propertyContract,Integer isPreview,boolean saveDb) { public List<WxBillProperty> buildProperty(WxMerchant wxMerchant,Long userId,WxPropertyContract propertyContract,Integer isPreview,boolean saveDb) {
List<WxBillProperty> result = new ArrayList<>(); List<WxBillProperty> result = new ArrayList<>();




Loading…
Cancel
Save