From 371800dcf7bc452ceab9864e0e71e9d081135746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 17 Mar 2021 17:07:32 +0800 Subject: [PATCH] aa --- business/jxstore/report/report.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index 8fbb9d562..65af0a03f 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -448,7 +448,10 @@ 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) + if storeManageStates, err := dao.GetStoreManageStateSimple(db, []int{storeDetail.ID}, nil, vendorID); err == nil && len(storeManageStates) > 0 { + storeManage.ID = storeManageStates[0].ID + dao.CreateEntity(db, storeManage) + } return retVal, err }, createList) tasksch.HandleTask(task3, task, true).Run()