aa
This commit is contained in:
@@ -1773,6 +1773,15 @@ func updateCourierStores(ctx *jxcontext.Context, storeID int) (err error) {
|
|||||||
if err = err2; err2 == nil {
|
if err = err2; err2 == nil {
|
||||||
if storeDetail.VendorStoreID != "" && storeDetail.AuditStatus == model.StoreAuditStatusOnline {
|
if storeDetail.VendorStoreID != "" && storeDetail.AuditStatus == model.StoreAuditStatusOnline {
|
||||||
err = updateCourierStore(ctx, storeDetail)
|
err = updateCourierStore(ctx, storeDetail)
|
||||||
|
if err == nil {
|
||||||
|
//美团配送修改门店信息后要待审核
|
||||||
|
if k == model.VendorIDMTPS {
|
||||||
|
if couriers, err := dao.GetStoreCourierList(db, []int{storeID}, []int{model.VendorIDMTPS}, model.StoreStatusAll, model.StoreAuditStatusAll); len(couriers) > 0 && err == nil {
|
||||||
|
couriers[0].AuditStatus = model.StoreAuditStatusUpdated
|
||||||
|
dao.UpdateEntity(db, couriers[0], "AuditStatus")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
errList.AddErr(err)
|
errList.AddErr(err)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ var (
|
|||||||
mtpsapi.ShopStatusAuditRejected: model.StoreAuditStatusRejected,
|
mtpsapi.ShopStatusAuditRejected: model.StoreAuditStatusRejected,
|
||||||
mtpsapi.ShopStatusAuditPassed: model.StoreAuditStatusCreated,
|
mtpsapi.ShopStatusAuditPassed: model.StoreAuditStatusCreated,
|
||||||
mtpsapi.ShopStatusAuditOnline: model.StoreAuditStatusOnline,
|
mtpsapi.ShopStatusAuditOnline: model.StoreAuditStatusOnline,
|
||||||
mtpsapi.ShopStatusAuditUpdatePassed: model.StoreAuditStatusUpdated,
|
mtpsapi.ShopStatusAuditUpdatePassed: model.StoreAuditStatusOnline,
|
||||||
mtpsapi.ShopStatusAuditUpdateRejected: model.StoreAuditStatusRejected,
|
mtpsapi.ShopStatusAuditUpdateRejected: model.StoreAuditStatusRejected,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user