提交 187a1ecc 作者: 张小凤

DemandReleaseOrderServiceImpl(update)

上级 5827e9a5
...@@ -63,9 +63,18 @@ public class DemandReleaseOrderServiceImpl implements DemandReleaseOrderService ...@@ -63,9 +63,18 @@ public class DemandReleaseOrderServiceImpl implements DemandReleaseOrderService
@Override @Override
public ResultBody orderPayment(CommonPaymentVO commonPaymentVO, HttpServletRequest request, Integer userAccountId) { public ResultBody orderPayment(CommonPaymentVO commonPaymentVO, HttpServletRequest request, Integer userAccountId) {
String token = request.getHeader("token"); String token = request.getHeader("token");
orderPost(commonPaymentVO,token);
//发布服务需求支付 if ("3".equals(commonPaymentVO.getOrderPort().toString())){
publishServicePay(commonPaymentVO,token,userAccountId); ResultBody resultBody = orderPost(commonPaymentVO, token);
return resultBody;
}
if ("4".equals(commonPaymentVO.getOrderPort().toString())){
//发布服务需求支付
ResultBody resultBody = publishServicePay(commonPaymentVO, token, userAccountId);
return resultBody;
}
return ResultBody.success(); return ResultBody.success();
} }
...@@ -77,6 +86,7 @@ public class DemandReleaseOrderServiceImpl implements DemandReleaseOrderService ...@@ -77,6 +86,7 @@ public class DemandReleaseOrderServiceImpl implements DemandReleaseOrderService
* @return * @return
*/ */
private ResultBody publishServicePay(CommonPaymentVO commonPaymentVO, String token,Integer userAccountId) { private ResultBody publishServicePay(CommonPaymentVO commonPaymentVO, String token,Integer userAccountId) {
if ("4".equals(commonPaymentVO.getOrderPort().toString())){ if ("4".equals(commonPaymentVO.getOrderPort().toString())){
String orderNumber = commonPaymentVO.getOrderNumber(); String orderNumber = commonPaymentVO.getOrderNumber();
String json = stringRedisTemplate.opsForValue().get(orderNumber); String json = stringRedisTemplate.opsForValue().get(orderNumber);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论