|
@ -354,7 +354,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
}
|
|
|
|
|
|
|
|
|
public Map<String,Object> selectOrderByRelationCode(String relationCode,String tradeType,String wechatId) throws Exception {
|
|
|
public Map<String,Object> selectOrderByRelationCode(String relationCode,String tradeType,String wechatId,boolean payFlag) throws Exception {
|
|
|
WxWechatDO wxWechatDO = wechatDao.findById(wechatId);
|
|
|
BusinessOrderDO businessOrderDO = businessOrderDao.selectByRelationCode(relationCode);
|
|
|
String body = businessOrderDO.getDescription();
|
|
@ -374,7 +374,12 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
|
|
|
String url = wxWechatDO.getBaseUrl();
|
|
|
String notifyUrl =url;
|
|
|
Map<String,Object> map = unifiedorder(wechatId,body,totalFee,tradeType,openid,ourTradeNo,notifyUrl);
|
|
|
Map<String,Object> map = new HashedMap();
|
|
|
if (payFlag){
|
|
|
map = unifiedorder(wechatId,body,totalFee,tradeType,openid,ourTradeNo,notifyUrl);
|
|
|
}else {
|
|
|
updatePayStatusByRelation(relationCode);
|
|
|
}
|
|
|
return map;
|
|
|
}
|
|
|
|