Commit 60ec3d7e by wubh

包活干V2.2.0-增加日志打印

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@29300 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 13d03bb8
......@@ -101,16 +101,16 @@ public class DscFeedbackServiceImpl implements DscFeedbackService {
try {
this.logger.info("==== syncOrder order = {}", JSON.toJSONString(order));
//if (BizConstants.DA_SOU_CHE.equalsIgnoreCase(order.getChannel())) {
if (BizConstants.ORDER_TYPE_INSTALL == order.getOrderType()) {
dscResult = this.syncInstallOrder(order); // 安装单
} else if (BizConstants.ORDER_TYPE_DISMANTLE == order.getOrderType()) {
dscResult = this.syncDismantleOrder(order); // 拆除单
} else if (BizConstants.ORDER_TYPE_REPAIR == order.getOrderType()) {
dscResult = this.syncRepairOrder(order); // 检修单
} else { // 大搜车正常单
dscResult = new DSCResultObject(ResultCodeEnum.SUCCESS.getCode() + "",
ResultCodeEnum.SUCCESS.getMsg());
}
if (BizConstants.ORDER_TYPE_INSTALL == order.getOrderType()) {
dscResult = this.syncInstallOrder(order); // 安装单
} else if (BizConstants.ORDER_TYPE_DISMANTLE == order.getOrderType()) {
dscResult = this.syncDismantleOrder(order); // 拆除单
} else if (BizConstants.ORDER_TYPE_REPAIR == order.getOrderType()) {
dscResult = this.syncRepairOrder(order); // 检修单
} else { // 大搜车正常单
dscResult = new DSCResultObject(ResultCodeEnum.SUCCESS.getCode() + "",
ResultCodeEnum.SUCCESS.getMsg());
}
//} else {
// this.logger.info("==== Channel = {}, no need to sync to DaSouChe", order.getChannel());
// dscResult = new DSCResultObject(ResultCodeEnum.SUCCESS.getCode() + "",
......
......@@ -3815,6 +3815,8 @@ public class OrderServiceImpl implements IOrderService {
Class<? extends DeviceVerifyStrategy> beanClass = DeviceVerifyStrategyEnum.getBeanClass(channel);
DeviceVerifyStrategy strategy = SpringContextUtils.getBean(beanClass);
String verifyUrl = PropertiesUtil.getProperty(BizConstants.DEVICE_VERIFY_PREFIX + channel);
this.logger.info("==== deviceCheck code = {}, channel = {}, url = {}",
verifyCode, channel, verifyUrl);
if(StringUtils.isEmpty(verifyUrl)){
throw BusinessException.create(ResultCodeEnum.ERROR.getCode(), ResultCodeEnum.ERROR.getMsg());
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!