...
|
...
|
@@ -481,7 +481,7 @@ func (c *OrderInfoController) OrderDisable() { |
|
|
//RemoveOrderReal 删除意向订单
|
|
|
func (c *OrderInfoController) RemoveOrderReal() {
|
|
|
type Parameter struct {
|
|
|
Id int64 `json:"id"`
|
|
|
Id string `json:"id"`
|
|
|
}
|
|
|
var (
|
|
|
param Parameter
|
...
|
...
|
@@ -493,8 +493,9 @@ func (c *OrderInfoController) RemoveOrderReal() { |
|
|
return
|
|
|
}
|
|
|
companyId := c.GetUserCompany()
|
|
|
id, _ := strconv.ParseInt(param.Id, 10, 64)
|
|
|
orderSrv := orderService.NewOrderInfoService(nil)
|
|
|
err = orderSrv.DeleteOrder(param.Id, companyId)
|
|
|
err = orderSrv.DeleteOrder(id, companyId)
|
|
|
if err != nil {
|
|
|
c.ResponseError(err)
|
|
|
return
|
...
|
...
|
|