Commit c8d889ae by zhanghj

V1.0.0--修复提交订单,获取商户的服务类型错误bug

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18751 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 225b7bb6
......@@ -1973,6 +1973,14 @@ public class OrderServiceImpl implements IOrderService {
}
sysOrder.setShopId(userId);
/*
* 获取商户的服务类型
*/
JSONObject data = getMerchantById(userId);
if (data != null) {
String serviceType = data.getString("serviceType");
sysOrder.setServiceType(serviceType);
}
String installDeviceType = sysOrder.getInstallDeviceType();
/*
* 校验门店是否分配服务商
......@@ -1993,11 +2001,6 @@ public class OrderServiceImpl implements IOrderService {
&& installDeviceType.equals(serviceKey)) {
Integer merchantId = resourMatching.getUserId();
sysOrder.setMerchantId(merchantId);
JSONObject data = getMerchantById(merchantId);
if (data != null) {
String serviceType = data.getString("serviceType");
sysOrder.setServiceType(serviceType);
}
sysOrder.setActiveStatus(
(byte) OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_NOT_ASSIGN_MECHANIC.getActiveStatus());
} else if (userType != null && userType != com.glsx.common.constants.Constants.USER_TYPE_SP
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!