소스 검색

批量支付修改

Signed-off-by: anderx <312518615@qq.com>
anderx 5 년 전
부모
커밋
836cb0c8e8
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/main/java/com/goafanti/organization/service/impl/ThirdPartyCompanyServiceImpl.java

+ 4 - 1
src/main/java/com/goafanti/organization/service/impl/ThirdPartyCompanyServiceImpl.java

@@ -692,6 +692,9 @@ public class ThirdPartyCompanyServiceImpl extends  BaseMybatisDao<ThirdPartyComp
 		for (String s : idss) {
 			TOrderPayment top=tOrderPaymentMapper.selectByPrimaryKey(Integer.valueOf(s));
 			if (top!=null&&top.getStatus()==1) {
+				top.setStatus(3);
+				top.setPaymentAmount(top.getApplicationAmount());
+				tOrderPaymentMapper.updateByPrimaryKeySelective(top);
 				list.add(top.getId());
 				//做已付款金额计算
 				confirmPayment(top);
@@ -713,7 +716,7 @@ public class ThirdPartyCompanyServiceImpl extends  BaseMybatisDao<ThirdPartyComp
 			}
 		}
 		if(!nlist.isEmpty())noticeMapper.insertBatch(nlist);
-		if(!list.isEmpty())tOrderPaymentMapper.updateByids(list);
+//		if(!list.isEmpty())tOrderPaymentMapper.updateByids(list);
 		Map<String ,Object> map=new HashMap<>();
 		map.put("OK", list);
 		map.put("fail", elist);