价格审核测试
This commit is contained in:
@@ -4461,17 +4461,17 @@ func doStoreSkuAudit(ctx *jxcontext.Context, storeIDs []int, skuBindInfos []*Sto
|
||||
return false, err
|
||||
}
|
||||
//运营排除
|
||||
if (ctx.GetFullUser().Type & model.UserTypeOperator) != 0 {
|
||||
if len(storeAudits) > 0 {
|
||||
dao.DeleteEntityLogically(db, storeAudits[0], nil, ctx.GetUserName(), nil)
|
||||
}
|
||||
globals.SugarLogger.Debugf("doStoreSkuAudit return2 storeID : %v nameID: %v", storeID, skuBindInfo.NameID)
|
||||
return false, err
|
||||
}
|
||||
if ctx.GetLoginType() != weixin.AuthTypeMP && ctx.GetLoginType() != weixin.AuthTypeMini {
|
||||
globals.SugarLogger.Debugf("doStoreSkuAudit return3 storeID : %v nameID: %v", storeID, skuBindInfo.NameID)
|
||||
return false, err
|
||||
}
|
||||
// if (ctx.GetFullUser().Type & model.UserTypeOperator) != 0 {
|
||||
// if len(storeAudits) > 0 {
|
||||
// dao.DeleteEntityLogically(db, storeAudits[0], nil, ctx.GetUserName(), nil)
|
||||
// }
|
||||
// globals.SugarLogger.Debugf("doStoreSkuAudit return2 storeID : %v nameID: %v", storeID, skuBindInfo.NameID)
|
||||
// return false, err
|
||||
// }
|
||||
// if ctx.GetLoginType() != weixin.AuthTypeMP && ctx.GetLoginType() != weixin.AuthTypeMini {
|
||||
// globals.SugarLogger.Debugf("doStoreSkuAudit return3 storeID : %v nameID: %v", storeID, skuBindInfo.NameID)
|
||||
// return false, err
|
||||
// }
|
||||
//如果改的价比原价低排除
|
||||
storeSkus, err := dao.GetStoreSkusByNameIDs(db, []int{storeID}, skuBindInfo.NameID)
|
||||
if len(storeSkus) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user