|
@@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -59,6 +60,7 @@ public class TbOrdersController extends BaseController {
|
|
TbOrders orders = service.getById(id);
|
|
TbOrders orders = service.getById(id);
|
|
if (orders != null && orders.getState() == 0) {
|
|
if (orders != null && orders.getState() == 0) {
|
|
orders.setState(-1);
|
|
orders.setState(-1);
|
|
|
|
+ orders.setPayCancelTime(new Date());
|
|
service.updateById(orders);
|
|
service.updateById(orders);
|
|
return AjaxResult.success(orders);
|
|
return AjaxResult.success(orders);
|
|
}
|
|
}
|