aa
This commit is contained in:
@@ -1021,6 +1021,7 @@ func DeleteActStoreSkuBind(ctx *jxcontext.Context, db *dao.DaoDB, actID int, act
|
|||||||
for storeID := range actStoreSkuMap {
|
for storeID := range actStoreSkuMap {
|
||||||
for _, actStoreSku := range actStoreSkuMap[storeID] {
|
for _, actStoreSku := range actStoreSkuMap[storeID] {
|
||||||
if actStoreSkuParam == nil || actStoreSkuParamMap[jxutils.Combine2Int(actStoreSku.StoreID, actStoreSku.SkuID)] != nil {
|
if actStoreSkuParam == nil || actStoreSkuParamMap[jxutils.Combine2Int(actStoreSku.StoreID, actStoreSku.SkuID)] != nil {
|
||||||
|
fmt.Println("222222222222222222222222222", utils.Format4Output(act, true))
|
||||||
if act.Type == model.ActSkuFake {
|
if act.Type == model.ActSkuFake {
|
||||||
_, err = dao.DeleteEntityLogically(db, &model.ActStoreSkuMap{}, nil, ctx.GetUserName(),
|
_, err = dao.DeleteEntityLogically(db, &model.ActStoreSkuMap{}, nil, ctx.GetUserName(),
|
||||||
map[string]interface{}{
|
map[string]interface{}{
|
||||||
@@ -1029,7 +1030,6 @@ func DeleteActStoreSkuBind(ctx *jxcontext.Context, db *dao.DaoDB, actID int, act
|
|||||||
model.FieldSkuID: actStoreSku.SkuID,
|
model.FieldSkuID: actStoreSku.SkuID,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("2222222222222222222222222222222222222222222")
|
|
||||||
_, err = dao.UpdateEntityLogically(db, partner.ActStoreSku2ActStoreSkuMap(actStoreSku),
|
_, err = dao.UpdateEntityLogically(db, partner.ActStoreSku2ActStoreSkuMap(actStoreSku),
|
||||||
map[string]interface{}{
|
map[string]interface{}{
|
||||||
model.FieldSyncStatus: actStoreSku.SyncStatus | model.SyncFlagDeletedMask,
|
model.FieldSyncStatus: actStoreSku.SyncStatus | model.SyncFlagDeletedMask,
|
||||||
@@ -1049,8 +1049,8 @@ func DeleteActStoreSkuBind(ctx *jxcontext.Context, db *dao.DaoDB, actID int, act
|
|||||||
isDeleteAll = true
|
isDeleteAll = true
|
||||||
isDeleteAtLeastOne = true
|
isDeleteAtLeastOne = true
|
||||||
}
|
}
|
||||||
|
fmt.Println("111111111111111111111111", isDeleteAll, isDeleteAtLeastOne)
|
||||||
if isDeleteAll || isDeleteAtLeastOne {
|
if isDeleteAll || isDeleteAtLeastOne {
|
||||||
fmt.Println("1111111111111111111111111111111111111111111111")
|
|
||||||
syncStatus := int8(model.SyncFlagModifiedMask)
|
syncStatus := int8(model.SyncFlagModifiedMask)
|
||||||
if isDeleteAll {
|
if isDeleteAll {
|
||||||
syncStatus = model.SyncFlagDeletedMask
|
syncStatus = model.SyncFlagDeletedMask
|
||||||
|
|||||||
Reference in New Issue
Block a user