取消支付接口

This commit is contained in:
2024-10-09 16:37:30 +08:00
parent 9dc8ab767d
commit bd9aecf574
2 changed files with 20 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import cn.hutool.json.JSONUtil;
import com.chaozhanggui.system.cashierservice.entity.Enum.PayTypeConstant;
import com.chaozhanggui.system.cashierservice.interceptor.RequestWrapper;
import com.chaozhanggui.system.cashierservice.service.PayService;
import com.chaozhanggui.system.cashierservice.sign.Result;
import com.chaozhanggui.system.cashierservice.util.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@@ -86,6 +87,16 @@ public class NotifyController {
return null;
}
/**
* 支付取消
* @param orderId 订单id
* @return 影响数量
*/
@PostMapping("cancel")
public Result notifyCancel(@RequestParam Integer orderId) {
return Result.successWithData(payService.cancelOrder(orderId));
}
@RequestMapping("notifyfstCallBack")
public String notifyfstCallBack(HttpServletRequest request){