diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index eeddde1f8..2828f8ae7 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -449,7 +449,7 @@ func RefreshStoreManageState(ctx *jxcontext.Context) { } storeDetail, _ := dao.GetStoreDetail(db, storeMap.StoreID, vendorID, storeMap.VendorOrgCode) storeManage := buildStoreManageState(ctx, db, storeMap, storeDetail, messageFlag) - dao.UpdateEntity(db, storeManage) + dao.CreateEntity(db, storeManage) return retVal, err }, createList) tasksch.HandleTask(task3, task, true).Run() @@ -462,7 +462,7 @@ func RefreshStoreManageState(ctx *jxcontext.Context) { } storeDetail, _ := dao.GetStoreDetail(db, storeMap.StoreID, vendorID, storeMap.VendorOrgCode) storeManage := buildStoreManageState(ctx, db, storeMap, storeDetail, messageFlag) - dao.CreateEntity(db, storeManage) + dao.UpdateEntity(db, storeManage) return retVal, err }, updateList) tasksch.HandleTask(task4, task, true).Run()