Browse Source

发起订单工时异常修改

anderx 1 year ago
parent
commit
2bead86ea6

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

@@ -610,8 +610,7 @@ public class OrderNewServiceImpl extends BaseMybatisDao<TOrderNewMapper> impleme
 			if (str.length()>0)t.setExamineName(str.substring(0,str.length()-1));
 			TOrderNewBo order = tOrderNewMapper.getSaleIdByOno(t2.getOrderNo());
 			pushGeneralSendNoticeAndEmail(aids, type,order, TokenManager.getAdminId(),t.getApproval());
-			//计算公出统计
-			pushOrderPublicReleaseCount(t.getOrderNo(),null);
+
 			//如果有投标,标记成投标订单
 			tOrderMidMapper.updateBidTypeByOrderNo(t.getOrderNo());
 		}
@@ -640,6 +639,8 @@ public class OrderNewServiceImpl extends BaseMybatisDao<TOrderNewMapper> impleme
 			}
 		}
 		tOrderNewMapper.updateByPrimaryKeySelective(t);
+		//计算公出统计
+		pushOrderPublicReleaseCount(t.getOrderNo(),null);
 		updateAdminUserCountOrder(t2.getSalesmanId(),t2.getCreateTime());
 		if (newOrderFlag){
 			updateAdminUserCountOrder(t2.getSalesmanId(),date);