Commit e0f2cc3a by wubh

包活干V2.2.0-去除订单同步的渠道校验

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@29289 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 4360824a
...@@ -100,7 +100,7 @@ public class DscFeedbackServiceImpl implements DscFeedbackService { ...@@ -100,7 +100,7 @@ public class DscFeedbackServiceImpl implements DscFeedbackService {
DSCResultObject dscResult; DSCResultObject dscResult;
try { try {
this.logger.info("==== syncOrder order = {}", JSON.toJSONString(order)); this.logger.info("==== syncOrder order = {}", JSON.toJSONString(order));
if (BizConstants.DA_SOU_CHE.equalsIgnoreCase(order.getChannel())) { //if (BizConstants.DA_SOU_CHE.equalsIgnoreCase(order.getChannel())) {
if (BizConstants.ORDER_TYPE_INSTALL == order.getOrderType()) { if (BizConstants.ORDER_TYPE_INSTALL == order.getOrderType()) {
dscResult = this.syncInstallOrder(order); // 安装单 dscResult = this.syncInstallOrder(order); // 安装单
} else if (BizConstants.ORDER_TYPE_DISMANTLE == order.getOrderType()) { } else if (BizConstants.ORDER_TYPE_DISMANTLE == order.getOrderType()) {
...@@ -111,11 +111,11 @@ public class DscFeedbackServiceImpl implements DscFeedbackService { ...@@ -111,11 +111,11 @@ public class DscFeedbackServiceImpl implements DscFeedbackService {
dscResult = new DSCResultObject(ResultCodeEnum.SUCCESS.getCode() + "", dscResult = new DSCResultObject(ResultCodeEnum.SUCCESS.getCode() + "",
ResultCodeEnum.SUCCESS.getMsg()); ResultCodeEnum.SUCCESS.getMsg());
} }
} else { //} else {
this.logger.info("==== Channel = {}, no need to sync to DaSouChe", order.getChannel()); // this.logger.info("==== Channel = {}, no need to sync to DaSouChe", order.getChannel());
dscResult = new DSCResultObject(ResultCodeEnum.SUCCESS.getCode() + "", // dscResult = new DSCResultObject(ResultCodeEnum.SUCCESS.getCode() + "",
ResultCodeEnum.SUCCESS.getMsg()); // ResultCodeEnum.SUCCESS.getMsg());
} //}
} catch (DSCBusinessException e) { } catch (DSCBusinessException e) {
this.logger.error("==== DscFeedbackService syncOrder ERROR: ", e); this.logger.error("==== DscFeedbackService syncOrder ERROR: ", e);
dscResult = e.getResultEntity(); dscResult = e.getResultEntity();
......
...@@ -73,10 +73,10 @@ public class OraReturnOrderFinishTask implements Callable<OraResultObject> { ...@@ -73,10 +73,10 @@ public class OraReturnOrderFinishTask implements Callable<OraResultObject> {
throw BusinessException.create(OraResultCode.PARAM_ERROR.getCode(), throw BusinessException.create(OraResultCode.PARAM_ERROR.getCode(),
"未找到工单数据"); "未找到工单数据");
} }
if (!BizConstants.CC_ORA.equals(order.getChannel())) { //if (!BizConstants.CC_ORA.equals(order.getChannel())) {
this.logger.info("==== Channel = {}, not need to sync to Ora", order.getChannel()); // this.logger.info("==== Channel = {}, not need to sync to Ora", order.getChannel());
return new OraResultObject(OraResultCode.SUCCESS); // return new OraResultObject(OraResultCode.SUCCESS);
} //}
//业务参数封装 //业务参数封装
JSONObject object = this.setBusinessParams(order); JSONObject object = this.setBusinessParams(order);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!