提交 0bc001c0 作者: 张小凤

Requirements(update)

上级 956d3fd5
...@@ -1351,9 +1351,12 @@ public class RequirementsServiceImpl implements RequirementsService { ...@@ -1351,9 +1351,12 @@ public class RequirementsServiceImpl implements RequirementsService {
BigDecimal tempTotalAmount = new BigDecimal(0); BigDecimal tempTotalAmount = new BigDecimal(0);
String json = stringRedisTemplate.opsForValue().get(requirementsEditVO.getWechatPayOrderNumber() + requirementsEditVO.getUserAccountId()); String json = stringRedisTemplate.opsForValue().get(requirementsEditVO.getWechatPayOrderNumber() + requirementsEditVO.getUserAccountId());
GetOrderNumberDTO getOrderNumberDTO = JSONObject.parseObject(json, GetOrderNumberDTO.class); GetOrderNumberDTO getOrderNumberDTO = JSONObject.parseObject(json, GetOrderNumberDTO.class);
if (getOrderNumberDTO == null) { if (requirementsEditVO.getWechatPayOrderNumber() != null) {
return ResultBody.error("订单支付失败"); if (getOrderNumberDTO == null) {
return ResultBody.error("订单支付失败");
}
} }
tempTotalAmount = orderAmount; tempTotalAmount = orderAmount;
for (String type : objects) { for (String type : objects) {
switch (type) { switch (type) {
...@@ -1399,7 +1402,7 @@ public class RequirementsServiceImpl implements RequirementsService { ...@@ -1399,7 +1402,7 @@ public class RequirementsServiceImpl implements RequirementsService {
return ResultBody.error("支付失败,请重新支付"); return ResultBody.error("支付失败,请重新支付");
} }
} }
//先退款 //先退款
if (requirementsInfoDO.getCashAmount().compareTo(BigDecimal.ZERO) != 0 || if (requirementsInfoDO.getCashAmount().compareTo(BigDecimal.ZERO) != 0 ||
requirementsInfoDO.getSalaryAmount().compareTo(BigDecimal.ZERO) != 0) { requirementsInfoDO.getSalaryAmount().compareTo(BigDecimal.ZERO) != 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论