Commit b98caaa1 by wubh

包活干V2.3.0-E盾接口同步方式修改

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@30481 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 5517700f
...@@ -82,7 +82,7 @@ public class EdunOrderSyncStrategy extends BaseOrderSyncStrategy { ...@@ -82,7 +82,7 @@ public class EdunOrderSyncStrategy extends BaseOrderSyncStrategy {
* @param req 请求参数 * @param req 请求参数
*/ */
private void wrapBizParam(JSONObject req, SysOrder order) { private void wrapBizParam(JSONObject req, SysOrder order) {
//this.wrapOrderInfo(req, order); this.wrapOrderInfo(req, order);
this.wrapDeviceInfo(req, order); this.wrapDeviceInfo(req, order);
this.wrapInstallPicture(req, order); this.wrapInstallPicture(req, order);
this.wrapStatusName(req, order); this.wrapStatusName(req, order);
...@@ -168,30 +168,30 @@ public class EdunOrderSyncStrategy extends BaseOrderSyncStrategy { ...@@ -168,30 +168,30 @@ public class EdunOrderSyncStrategy extends BaseOrderSyncStrategy {
deviceList = super.orderDeviceList; deviceList = super.orderDeviceList;
} }
// TODO 使用 UserUtils 获取技工信息 //// TODO 使用 UserUtils 获取技工信息
String mechanicName; //String mechanicName;
String mechanicNumberPhone; //String mechanicNumberPhone;
JSONObject mechanicObj = userClient.getMechanicById(order.getMechanicId()); //JSONObject mechanicObj = userClient.getMechanicById(order.getMechanicId());
if (mechanicObj != null //if (mechanicObj != null
&& mechanicObj.getIntValue("code") == ResultCodeEnum.SUCCESS.getCode()) { // && mechanicObj.getIntValue("code") == ResultCodeEnum.SUCCESS.getCode()) {
JSONObject data = mechanicObj.getJSONObject("data"); // JSONObject data = mechanicObj.getJSONObject("data");
mechanicName = data.getString("name"); // mechanicName = data.getString("name");
mechanicNumberPhone = data.getString("phoneNumber"); // mechanicNumberPhone = data.getString("phoneNumber");
} else { //} else {
mechanicName = ""; // mechanicName = "";
mechanicNumberPhone = ""; // mechanicNumberPhone = "";
} //}
// TODO 使用 UserUtils 获取服务商信息 //// TODO 使用 UserUtils 获取服务商信息
String providerName; //String providerName;
JSONObject providerObj = userClient.getServiceById(order.getMerchantId()); //JSONObject providerObj = userClient.getServiceById(order.getMerchantId());
if (providerObj != null //if (providerObj != null
&& providerObj.getIntValue("code") == ResultCodeEnum.SUCCESS.getCode()) { // && providerObj.getIntValue("code") == ResultCodeEnum.SUCCESS.getCode()) {
JSONObject data = providerObj.getJSONObject("data"); // JSONObject data = providerObj.getJSONObject("data");
providerName = data.getString("providerName"); // providerName = data.getString("providerName");
} else { //} else {
providerName = ""; // providerName = "";
} //}
String repairTypeName; String repairTypeName;
if (ifRepair) { if (ifRepair) {
...@@ -210,8 +210,8 @@ public class EdunOrderSyncStrategy extends BaseOrderSyncStrategy { ...@@ -210,8 +210,8 @@ public class EdunOrderSyncStrategy extends BaseOrderSyncStrategy {
deviceInfo.put("installDeviceType", orderDevice.getDeviceType()); deviceInfo.put("installDeviceType", orderDevice.getDeviceType());
deviceInfo.put("installLocation", (orderDevice.getInstallLocation() == null) deviceInfo.put("installLocation", (orderDevice.getInstallLocation() == null)
? "" : orderDevice.getInstallLocation()); ? "" : orderDevice.getInstallLocation());
deviceInfo.put("mechanicName", mechanicName); //deviceInfo.put("mechanicName", mechanicName);
deviceInfo.put("mechanicNumberPhone", mechanicNumberPhone); //deviceInfo.put("mechanicNumberPhone", mechanicNumberPhone);
String newSn; String newSn;
if (ifRepair && repairType == 1) { if (ifRepair && repairType == 1) {
...@@ -226,7 +226,7 @@ public class EdunOrderSyncStrategy extends BaseOrderSyncStrategy { ...@@ -226,7 +226,7 @@ public class EdunOrderSyncStrategy extends BaseOrderSyncStrategy {
deviceInfo.put("newSn", (newSn == null) ? "" : newSn); deviceInfo.put("newSn", (newSn == null) ? "" : newSn);
deviceInfo.put("newStandNo", ""); deviceInfo.put("newStandNo", "");
deviceInfo.put("repairType", repairTypeName); deviceInfo.put("repairType", repairTypeName);
deviceInfo.put("serviceName", providerName); //deviceInfo.put("serviceName", providerName);
deviceInfo.put("sn", orderDevice.getDeviceNo()); deviceInfo.put("sn", orderDevice.getDeviceNo());
deviceInfos.add(deviceInfo); deviceInfos.add(deviceInfo);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!