Pārlūkot izejas kodu

黔通人员可发渠道产品

master
qiubh pirms 3 dienas
vecāks
revīzija
8a90e6d80e

+ 7
- 7
zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/order/OrderInitManager.java Parādīt failu

return res; return res;
} }




private void checkLocalOrder(OrderInitRequest request) throws ServiceHandleException { private void checkLocalOrder(OrderInitRequest request) throws ServiceHandleException {
IssueOrderinfo order = orderInfoRepo.findNormalByVehicleId(request.getVehiclePlate() + "_" + request.getVehiclePlateColor()); IssueOrderinfo order = orderInfoRepo.findNormalByVehicleId(request.getVehiclePlate() + "_" + request.getVehiclePlateColor());
if (order != null) { if (order != null) {
if (staff == null) { if (staff == null) {
throw newBusinessException("此业务员不存在"); throw newBusinessException("此业务员不存在");
} }
if (!req.getAgentId().equals(staff.getAgencyId())){
throw newBusinessException("当前渠道与业务员所属渠道不一致");
}
if (!req.getChannelId().equals(staff.getServiceHallId())){
throw newBusinessException("当前网点与业务员所属网点不一致");
if (!MyFinals.QTZL_AGENCY_ID.equals(staff.getAgencyId())) {
if (!req.getAgentId().equals(staff.getAgencyId())){
throw newBusinessException("当前渠道与业务员所属渠道不一致");
}
if (!req.getChannelId().equals(staff.getServiceHallId())){
throw newBusinessException("当前网点与业务员所属网点不一致");
}
} }
return staff; return staff;
} }

Notiek ielāde…
Atcelt
Saglabāt