Authored by qinchao

fix bug

package com.yohoufo.inboxclient.model;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;
/**
... ... @@ -21,6 +22,7 @@ import org.apache.commons.lang3.StringUtils;
* }
* Created by chang@yoho.cn on 2015/11/3.
*/
@ToString
public class InBoxResponse {
private static String DEFAULT_MSG = "操作成功";
... ...
... ... @@ -350,7 +350,8 @@ public class AppraiseService {
//发消息给卖家
QualityCheck qualityCheck = qualityCheckMapper.selectByOrderCode(orderCode);
int type = 1 ;//鉴定不通过
if(qualityCheck!=null&&EnumQualityCheckType.MINI_FAULT.getCode().equals(qualityCheck.getType())){
if(qualityCheck!=null&&qualityCheck.getType()!=null&&qualityCheck.getStatus()!=null
&&EnumQualityCheckType.MINI_FAULT.getCode().intValue()==qualityCheck.getType().intValue()){
if(EnumQualityCheckStatus.REJECT_BY_BUYER.getCode().intValue()==qualityCheck.getStatus().intValue()){
type = 2;//用户不接受瑕疵
}else if(EnumQualityCheckStatus.REJECT_BY_OUTER_TIME.getCode().intValue()==qualityCheck.getStatus().intValue()){
... ...
... ... @@ -599,7 +599,7 @@ public class InBoxFacade {
InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt);
InBoxResponse resp = inBoxSDK.addInbox(req);
logger.info("record sellerQualityCheckNotPass_send_back inbox msg, SellerOrderGoods {} ,sellerUid {}, prdName {}, sizeName {},type {}resp {}",
logger.info("record sellerQualityCheckNotPass_send_back inbox msg, SellerOrderGoods {} ,sellerUid {}, prdName {}, sizeName {},type {}, resp {}",
JSON.toJSONString(sog),sellerUid, prdName, sizeName,type , resp);
//短信
... ... @@ -617,8 +617,8 @@ public class InBoxFacade {
}
String content = getReplacedContent(sms.getContent(),prdName,orderCode,wayBillCode);
sendSmsService.smsSendByMobile(content, mobileList);
logger.info("record sellerQualityCheckNotPass_send_back inbox sms msg,sellerUid {}, prdName {},orderCode {}",
sellerUid, prdName,orderCode);
logger.info("record sellerQualityCheckNotPass_send_back inbox sms msg,sellerUid {}, prdName {},type {},orderCode {}",
sellerUid, prdName,type,orderCode);
});
} catch (Exception e) {
... ...