瀏覽代碼

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

anderx 4 年之前
父節點
當前提交
ee3e62a1d5
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      src/main/java/com/goafanti/order/service/impl/OrderNewServiceImpl.java

+ 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());