|
|
|
|
|
|
|
|
import cn.com.taiji.core.model.comm.protocol.valid.GlyServiceError; |
|
|
import cn.com.taiji.core.model.comm.protocol.valid.GlyServiceError; |
|
|
import cn.com.taiji.core.repo.jpa.basic.QtkBrandInfoRepo; |
|
|
import cn.com.taiji.core.repo.jpa.basic.QtkBrandInfoRepo; |
|
|
import cn.com.taiji.ias.dict.DataType; |
|
|
import cn.com.taiji.ias.dict.DataType; |
|
|
|
|
|
import cn.com.taiji.ias.model.MyFinals; |
|
|
import cn.com.taiji.ias.model.ServiceLogEvent; |
|
|
import cn.com.taiji.ias.model.ServiceLogEvent; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
if (!IssueOrderStep.WAITING_AUDIT.equals(order.getOrderStep())) { |
|
|
if (!IssueOrderStep.WAITING_AUDIT.equals(order.getOrderStep())) { |
|
|
throw newBusinessException("当前订单步骤不能审核,订单步骤:" + order.getOrderStep().getStep()); |
|
|
throw newBusinessException("当前订单步骤不能审核,订单步骤:" + order.getOrderStep().getStep()); |
|
|
} |
|
|
} |
|
|
if (!staff.getOpenId().equals(order.getReceiver())) { |
|
|
|
|
|
|
|
|
if (request.getOrgCode().equals(MyFinals.QTZL_AGENCY_ID) && !staff.getOpenId().equals(order.getReceiver())) { |
|
|
throw newBusinessException("审核订单的人与领取订单的人不一致,不允许审核"); |
|
|
throw newBusinessException("审核订单的人与领取订单的人不一致,不允许审核"); |
|
|
} |
|
|
} |
|
|
dataStream.put(ORDER, order); |
|
|
dataStream.put(ORDER, order); |