|
@@ -82,6 +82,7 @@ func (c *OrderController) Order_Add() {
|
|
|
T_sn := c.GetString("T_sn")
|
|
|
T_receiving := c.GetString("T_receiving")
|
|
|
ShippingUnit := c.GetString("ShippingUnit")
|
|
|
+ ShippingName := c.GetString("ShippingName")
|
|
|
EstimateStartTime := c.GetString("EstimateStartTime")
|
|
|
EstimateEndTime := c.GetString("EstimateEndTime")
|
|
|
T_text := c.GetString("T_text")
|
|
@@ -131,6 +132,7 @@ func (c *OrderController) Order_Add() {
|
|
|
CouriesId: CouriesId,
|
|
|
DeliveryAddress: DeliveryAddress,
|
|
|
ReceivingAddress: ReceivingAddress,
|
|
|
+ ShippingName: ShippingName,
|
|
|
}
|
|
|
if var_.IsExpatriate == 2 {
|
|
|
if len(var_.Phone) < 0 {
|
|
@@ -202,6 +204,7 @@ func (c *OrderController) Order_Edit() {
|
|
|
T_sn := c.GetString("T_sn")
|
|
|
T_receiving := c.GetString("T_receiving")
|
|
|
ShippingUnit := c.GetString("ShippingUnit")
|
|
|
+ ShippingName := c.GetString("ShippingName")
|
|
|
EstimateStartTime := c.GetString("EstimateStartTime")
|
|
|
EstimateEndTime := c.GetString("EstimateEndTime")
|
|
|
T_text := c.GetString("T_text")
|
|
@@ -236,6 +239,9 @@ func (c *OrderController) Order_Edit() {
|
|
|
if len(ReceivingAddress) > 0 {
|
|
|
r.ReceivingAddress = ReceivingAddress
|
|
|
}
|
|
|
+ if len(ShippingName) > 0 {
|
|
|
+ r.ShippingName = ShippingName
|
|
|
+ }
|
|
|
if len(T_sn) > 0 {
|
|
|
r.T_sn = T_sn
|
|
|
}
|
|
@@ -278,7 +284,7 @@ func (c *OrderController) Order_Edit() {
|
|
|
if T_State != 0 {
|
|
|
r.T_State = T_State
|
|
|
}
|
|
|
- is := Function.Update_Order(r, "waybill_no", "t_sn", "t_receiving", "shipping_unit", "estimate_start_time", "estimate_end_time", "peer_list", "device_type", "is_expatriate", "phone", "child_pid", "t__state", "t_text", "couries_name", "couries_id")
|
|
|
+ is := Function.Update_Order(r, "waybill_no", "t_sn", "t_receiving", "shipping_unit", "estimate_start_time", "estimate_end_time", "peer_list", "device_type", "is_expatriate", "phone", "child_pid", "t__state", "t_text", "couries_name", "couries_id", "delivery_address", "receiving_address", "shipping_name")
|
|
|
if !is {
|
|
|
c.Data["json"] = lib.JSONS{Code: 202, Msg: "修改失败!"}
|
|
|
c.ServeJSON()
|