This commit is contained in:
苏尹岚
2021-02-23 10:16:36 +08:00
parent eb93724cbb
commit 7f94d2b48f
7 changed files with 102 additions and 29 deletions

View File

@@ -3992,3 +3992,17 @@ func RefreshMTWMToken(ctx *jxcontext.Context) (err error) {
// dao.GetStoresMapList(db, []int{model.VendorIDMTWM}, nil, nil, status, isSync, "", "", globals.Mtwm2Code)
return err
}
func StoreConfirmAct(ctx *jxcontext.Context, msgStatusID int) (err error) {
msgStatus := &model.MessageStatus{}
msgStatus.ID = msgStatusID
db := dao.GetDB()
if err = dao.GetEntity(db, msgStatus); err != nil {
return err
}
msgStatus.ReadCount++
msgStatus.ConfirmStatus = model.YES
dao.WrapUpdateULEntity(msgStatus, ctx.GetUserName())
_, err = dao.UpdateEntity(db, msgStatus, "ReadCount", "ConfirmStatus")
return err
}