Bläddra i källkod

1制作记录

master
huangjiajun 6 månader sedan
förälder
incheckning
a0d10e658a
3 ändrade filer med 7 tillägg och 0 borttagningar
  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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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()


Laddar…
Avbryt
Spara