|
@@ -46,7 +46,7 @@ func (c *GoodsOrderController) GoodsOrder_List() {
|
|
|
|
|
|
T_pid := Account.User_r.T_pid
|
|
|
if T_pid == 0 {
|
|
|
- T_pid, _ = c.GetInt("T_pid")
|
|
|
+ T_pid, _ = strconv.Atoi(c.Ctx.Request.Header.Get("T_pid"))
|
|
|
}
|
|
|
|
|
|
Name := c.GetString("T_name")
|
|
@@ -65,7 +65,7 @@ func (c *GoodsOrderController) GoodsOrder_Get() {
|
|
|
id, _ := c.GetInt("T_id")
|
|
|
T_pid := Account.User_r.T_pid
|
|
|
if T_pid == 0 {
|
|
|
- T_pid, _ = c.GetInt("T_pid")
|
|
|
+ T_pid, _ = strconv.Atoi(c.Ctx.Request.Header.Get("T_pid"))
|
|
|
}
|
|
|
|
|
|
r := Function.Read_GoodsOrder_ById(id)
|
|
@@ -103,7 +103,7 @@ func (c *GoodsOrderController) GoodsOrder_Add() {
|
|
|
}
|
|
|
T_pid := Account.User_r.T_pid
|
|
|
if T_pid == 0 {
|
|
|
- T_pid, _ = c.GetInt("T_pid")
|
|
|
+ T_pid, _ = strconv.Atoi(c.Ctx.Request.Header.Get("T_pid"))
|
|
|
}
|
|
|
|
|
|
T_start_Ut_, err := time.ParseInLocation("2006-01-02 15:04:05", T_time_s[0], time.Local)
|
|
@@ -145,7 +145,7 @@ func (c *GoodsOrderController) GoodsOrder_Edit() {
|
|
|
|
|
|
T_pid := Account.User_r.T_pid
|
|
|
if T_pid == 0 {
|
|
|
- T_pid, _ = c.GetInt("T_pid")
|
|
|
+ T_pid, _ = strconv.Atoi(c.Ctx.Request.Header.Get("T_pid"))
|
|
|
}
|
|
|
|
|
|
r := Function.Read_GoodsOrder_ById(id)
|
|
@@ -227,7 +227,7 @@ func (c *GoodsOrderController) GoodsOrder_Del() {
|
|
|
Id, _ := c.GetInt("T_id")
|
|
|
T_pid := Account.User_r.T_pid
|
|
|
if T_pid == 0 {
|
|
|
- T_pid, _ = c.GetInt("T_pid")
|
|
|
+ T_pid, _ = strconv.Atoi(c.Ctx.Request.Header.Get("T_pid"))
|
|
|
}
|
|
|
r := Function.Read_GoodsOrder_ById(Id)
|
|
|
|