a
This commit is contained in:
@@ -885,11 +885,13 @@ func DeleteActStoreSkuBind(ctx *jxcontext.Context, db *dao.DaoDB, actID int, act
|
|||||||
if isNeedCancelAct {
|
if isNeedCancelAct {
|
||||||
act := &model.Act{}
|
act := &model.Act{}
|
||||||
act.ID = actID
|
act.ID = actID
|
||||||
if _, err = dao.UpdateEntityLogically(db, act,
|
if err == nil {
|
||||||
map[string]interface{}{
|
if _, err = dao.UpdateEntityLogically(db, act,
|
||||||
model.FieldStatus: model.ActStatusCanceled,
|
map[string]interface{}{
|
||||||
}, ctx.GetUserName(), nil); err != nil {
|
model.FieldStatus: model.ActStatusCanceled,
|
||||||
return 0, err
|
}, ctx.GetUserName(), nil); err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dao.Commit(db)
|
dao.Commit(db)
|
||||||
|
|||||||
Reference in New Issue
Block a user