商品审核查询修改

This commit is contained in:
苏尹岚
2020-05-29 09:39:11 +08:00
parent b58e2b6b75
commit 134150c15a

View File

@@ -4479,7 +4479,7 @@ func doStoreSkuAudit(ctx *jxcontext.Context, storeIDs []int, skuBindInfos []*Sto
//如果改的价比原价低排除
storeSkus, err := dao.GetStoreSkusByNameIDs(db, []int{storeID}, skuBindInfo.NameID)
if len(storeSkus) > 0 {
if skuBindInfo.UnitPrice <= int(storeSkus[0].UnitPrice) {
if skuBindInfo.UnitPrice < int(storeSkus[0].UnitPrice) {
if len(storeAudits) > 0 {
dao.DeleteEntityLogically(db, storeAudits[0], nil, ctx.GetUserName(), nil)
}