Explorar el Código

1制作记录

master
huangjiajun hace 6 meses
padre
commit
a0d10e658a
Se han modificado 3 ficheros con 7 adiciones y 0 borrados
  1. +3
    -0
      app/admin/svc/svc_make_record.go
  2. +1
    -0
      app/db/model/order_goods_doing_flow.go
  3. +3
    -0
      app/ipad/svc/svc_order_make.go

+ 3
- 0
app/admin/svc/svc_make_record.go Ver fichero

@@ -32,6 +32,9 @@ func MarkRecord(c *gin.Context) {
if ok1 {
adminName = adminMap[v.AdminId].Name
}
if adminName == "" {
adminName = v.AdminName
}
var tmp = map[string]string{
"id": utils.IntToStr(v.Id),
"state_str": stateArr[v.State],


+ 1
- 0
app/db/model/order_goods_doing_flow.go Ver fichero

@@ -17,4 +17,5 @@ type OrderGoodsDoingFlow struct {
AdminId int `json:"admin_id" xorm:"default 0 comment('admin 的id') INT(11)"`
Sku string `json:"sku" xorm:"comment('规格数据') VARCHAR(1000)"`
GoodsTitle string `json:"goods_title" xorm:"comment('商品标题') VARCHAR(255)"`
AdminName string `json:"admin_name" xorm:"comment('') VARCHAR(255)"`
}

+ 3
- 0
app/ipad/svc/svc_order_make.go Ver fichero

@@ -158,6 +158,9 @@ func commNewMake(c *gin.Context, args map[string]string) {
GoodsTitle: orderGoods.GoodsTitle,
Sku: orderGoods.Sku,
}
var admin model.Staff
sess.Where("id=?", recordFlow.AdminId).Get(&admin)
recordFlow.AdminName = admin.Name
one, err := sess.InsertOne(recordFlow)
if one == 0 || err != nil {
sess.Rollback()


Cargando…
Cancelar
Guardar