|
|
@@ -261,6 +261,7 @@ 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赠送
|
|
|
@@ -282,7 +283,14 @@ public class OrderChangeServiceImpl extends BaseMybatisDao<NewOrderChangeMapper>
|
|
|
} else {
|
|
|
orderExamineMapper.updateByOrderNo(orderNo,null);
|
|
|
}
|
|
|
- nb.setProcessState(nb.getProcessState()+1);
|
|
|
+ //如果咨询师无人审核则跳入咨询师经理,经理无审核跳入总监
|
|
|
+ if (orderExamineMapper.checkCountStatus(orderNo,0,0)<1) {
|
|
|
+ ps++;
|
|
|
+ if (orderExamineMapper.checkCountStatus(orderNo,1,0)<1) {
|
|
|
+ ps++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ nb.setProcessState(ps);
|
|
|
}
|
|
|
//必须放置在咨询师与咨询师经理前,否则会直接通过不走咨询师管理员
|
|
|
if(nb.getProcessState()==4||nb.getProcessState()==5||nb.getProcessState()==6) {
|