From c457bbddaa92c390d249b4f144234fe193dcd243 Mon Sep 17 00:00:00 2001 From: louwenzhi Date: Mon, 21 Jun 2021 10:19:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=AD=97=E6=AE=B5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dao/log/implments/ArtDemandHead.dao.impl.go | 2 +- dao/log/implments/ArtDemandHeadCache.dao.impl.go | 2 +- dao/log/implments/ArtDemandLst.dao.impl.go | 2 +- dao/log/implments/ArtDemandLstCache.dao.impl.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dao/log/implments/ArtDemandHead.dao.impl.go b/dao/log/implments/ArtDemandHead.dao.impl.go index dc17a2c..8707fc7 100644 --- a/dao/log/implments/ArtDemandHead.dao.impl.go +++ b/dao/log/implments/ArtDemandHead.dao.impl.go @@ -142,7 +142,7 @@ func (impl *ArtDemandHeadDAOImplement) UpdateOne(entity *model.ArtDemandHead) er func (impl *ArtDemandHeadDAOImplement) SyncUpdateOne(entity *model.SyncArtDemandHead) error { entity.PlantNr = impl.plantNr entity.LastUser = impl.userid - _, err := impl.session.Table(impl.meta.TableName).ID(core.PK{entity.PlantNr,entity.ArtId,entity.DemandId}).Update(entity) + _, err := impl.session.Table(impl.meta.TableName).Cols(impl.meta.UpdatingMembers...).ID(core.PK{entity.PlantNr,entity.ArtId,entity.DemandId}).Update(entity) if err != nil { return grmi.NewDataBaseError(err) } diff --git a/dao/log/implments/ArtDemandHeadCache.dao.impl.go b/dao/log/implments/ArtDemandHeadCache.dao.impl.go index 3968a7b..f8923a3 100644 --- a/dao/log/implments/ArtDemandHeadCache.dao.impl.go +++ b/dao/log/implments/ArtDemandHeadCache.dao.impl.go @@ -136,7 +136,7 @@ func (impl *ArtDemandHeadCacheDAOImplement) UpdateOne(entity *model.ArtDemandHea func (impl *ArtDemandHeadCacheDAOImplement) SyncUpdateOne(entity *model.SyncArtDemandHeadCache) error { entity.PlantNr = impl.plantNr entity.LastUser = impl.userid - _, err := impl.session.Table(impl.meta.TableName).ID(core.PK{entity.PlantNr,entity.ArtId,entity.DemandId}).Update(entity) + _, err := impl.session.Table(impl.meta.TableName).Cols(impl.meta.UpdatingMembers...).ID(core.PK{entity.PlantNr,entity.ArtId,entity.DemandId}).Update(entity) if err != nil { return grmi.NewDataBaseError(err) } diff --git a/dao/log/implments/ArtDemandLst.dao.impl.go b/dao/log/implments/ArtDemandLst.dao.impl.go index 6c95d32..7dc592b 100644 --- a/dao/log/implments/ArtDemandLst.dao.impl.go +++ b/dao/log/implments/ArtDemandLst.dao.impl.go @@ -140,7 +140,7 @@ func (impl *ArtDemandLstDAOImplement) UpdateOne(entity *model.ArtDemandLst) erro func (impl *ArtDemandLstDAOImplement) SyncUpdateOne(entity *model.SyncArtDemandLst) error { entity.PlantNr = impl.plantNr entity.LastUser = impl.userid - _, err := impl.session.Table(impl.meta.TableName).ID(core.PK{entity.PlantNr,entity.DemandId,entity.Pos}).Update(entity) + _, err := impl.session.Table(impl.meta.TableName).Cols(impl.meta.UpdatingMembers...).ID(core.PK{entity.PlantNr,entity.DemandId,entity.Pos}).Update(entity) if err != nil { return grmi.NewDataBaseError(err) } diff --git a/dao/log/implments/ArtDemandLstCache.dao.impl.go b/dao/log/implments/ArtDemandLstCache.dao.impl.go index fa9eea6..3ab85cc 100644 --- a/dao/log/implments/ArtDemandLstCache.dao.impl.go +++ b/dao/log/implments/ArtDemandLstCache.dao.impl.go @@ -136,7 +136,7 @@ func (impl *ArtDemandLstCacheDAOImplement) UpdateOne(entity *model.ArtDemandLstC func (impl *ArtDemandLstCacheDAOImplement) SyncUpdateOne(entity *model.SyncArtDemandLstCache) error { entity.PlantNr = impl.plantNr entity.LastUser = impl.userid - _, err := impl.session.Table(impl.meta.TableName).ID(core.PK{entity.PlantNr,entity.DemandId,entity.Pos}).Update(entity) + _, err := impl.session.Table(impl.meta.TableName).Cols(impl.meta.UpdatingMembers...).ID(core.PK{entity.PlantNr,entity.DemandId,entity.Pos}).Update(entity) if err != nil { return grmi.NewDataBaseError(err) }