商品价格审核
This commit is contained in:
@@ -4463,7 +4463,8 @@ func doStoreSkuAudit(ctx *jxcontext.Context, storeIDs []int, skuBindInfos []*Sto
|
|||||||
//运营排除
|
//运营排除
|
||||||
// if (ctx.GetFullUser().Type & model.UserTypeOperator) != 0 {
|
// if (ctx.GetFullUser().Type & model.UserTypeOperator) != 0 {
|
||||||
// if len(storeAudits) > 0 {
|
// if len(storeAudits) > 0 {
|
||||||
// dao.DeleteEntityLogically(db, storeAudits[0], nil, ctx.GetUserName(), nil)
|
// storeAudits[0].DeletedAt = time.Now()
|
||||||
|
// dao.UpdateEntity(db, storeAudits[0], "DeletedAt")
|
||||||
// }
|
// }
|
||||||
// globals.SugarLogger.Debugf("doStoreSkuAudit return2 storeID : %v nameID: %v", storeID, skuBindInfo.NameID)
|
// globals.SugarLogger.Debugf("doStoreSkuAudit return2 storeID : %v nameID: %v", storeID, skuBindInfo.NameID)
|
||||||
// return false, err
|
// return false, err
|
||||||
@@ -4483,7 +4484,8 @@ func doStoreSkuAudit(ctx *jxcontext.Context, storeIDs []int, skuBindInfos []*Sto
|
|||||||
return false, err
|
return false, err
|
||||||
} else {
|
} else {
|
||||||
if len(storeAudits) > 0 {
|
if len(storeAudits) > 0 {
|
||||||
dao.DeleteEntityLogically(db, storeAudits[0], nil, ctx.GetUserName(), nil)
|
storeAudits[0].DeletedAt = time.Now()
|
||||||
|
dao.UpdateEntity(db, storeAudits[0], "DeletedAt")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -4497,7 +4499,7 @@ func doStoreSkuAudit(ctx *jxcontext.Context, storeIDs []int, skuBindInfos []*Sto
|
|||||||
UnitPrice: skuBindInfo.UnitPrice,
|
UnitPrice: skuBindInfo.UnitPrice,
|
||||||
OriginUnitPrice: int(storeSkus[0].UnitPrice),
|
OriginUnitPrice: int(storeSkus[0].UnitPrice),
|
||||||
}
|
}
|
||||||
dao.WrapAddIDCULEntity(storeSkuAudit, ctx.GetUserName())
|
dao.WrapAddIDCULDEntity(storeSkuAudit, ctx.GetUserName())
|
||||||
err = dao.CreateEntity(db, storeSkuAudit)
|
err = dao.CreateEntity(db, storeSkuAudit)
|
||||||
return true, err
|
return true, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user