Parcourir la source

项目外包发起重复BUG处理。

anderx il y a 4 ans
Parent
commit
ee3e62a1d5

+ 5 - 3
src/main/java/com/goafanti/order/service/impl/OrderNewServiceImpl.java

@@ -1303,9 +1303,11 @@ public class OrderNewServiceImpl extends BaseMybatisDao<TOrderNewMapper> impleme
 	@Transactional
 	public int pushOutsourceProjectAudit(TOrderOutsource o) {
 		//前端加载缓慢避免重复提交
-		OrderOutsourceDtails ood=tOrderOutsourceMapper.selectByOrderNo(null,o.getTid().toString());
-		if (ood!=null){
-			return 1;
+		if(o.getId()==null){
+			OrderOutsourceDtails ood=tOrderOutsourceMapper.selectByOrderNo(null,o.getTid().toString());
+			if (ood!=null){
+				return 1;
+			}
 		}
 		o.setRefundStatus(0);
 		o.setCreateTime(new Date());