Browse Source

版本切换

anderx 3 years ago
parent
commit
ea4aa9c6c0

+ 1 - 9
src/main/java/com/goafanti/order/service/impl/OrderChangeServiceImpl.java

@@ -261,7 +261,6 @@ public class OrderChangeServiceImpl extends BaseMybatisDao<NewOrderChangeMapper>
 		if (nb.getStatus()==4) {
 			throw new BusinessException(new Error( "变更流程已通过审核","变更流程已通过审核"));
 		}
-		Integer ps=nb.getProcessState();
 		//2通过 3驳回
 		if (status==2) {
 			//变更类型 0退单退款 1项目及金额变更 2仅项目变更 3仅金额变更 4重报 5赠送
@@ -283,14 +282,7 @@ public class OrderChangeServiceImpl extends BaseMybatisDao<NewOrderChangeMapper>
 					 } else {
 						 orderExamineMapper.updateByOrderNo(orderNo,null);
 					 }
-					 //如果咨询师无人审核则跳入咨询师经理,经理无审核跳入总监
-					 if (orderExamineMapper.checkCountStatus(orderNo,0,0)<1) {
-						 ps++;
-						 if (orderExamineMapper.checkCountStatus(orderNo,1,0)<1) {
-							 ps++;
-						 }
-					 }
-					 nb.setProcessState(ps);
+					 nb.setProcessState(nb.getProcessState()+1);
 					}
 				 //必须放置在咨询师与咨询师经理前,否则会直接通过不走咨询师管理员
 				 if(nb.getProcessState()==4||nb.getProcessState()==5||nb.getProcessState()==6) {