Browse Source

Merge pull request '全字段更新' (#329) from fix_portalUP into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_GAAS_GFrame_BACKEND/pulls/329
Reviewed-by: zhangxin <xin.zhang@le-it.com.cn>
pull/330/head
zhangxin 3 years ago
parent
commit
fd616d49e0
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      dao/log/implments/ArtDemandHead.dao.impl.go
  2. +1
    -1
      dao/log/implments/ArtDemandHeadCache.dao.impl.go
  3. +1
    -1
      dao/log/implments/ArtDemandLst.dao.impl.go
  4. +1
    -1
      dao/log/implments/ArtDemandLstCache.dao.impl.go

+ 1
- 1
dao/log/implments/ArtDemandHead.dao.impl.go View File

@ -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)
}


+ 1
- 1
dao/log/implments/ArtDemandHeadCache.dao.impl.go View File

@ -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)
}


+ 1
- 1
dao/log/implments/ArtDemandLst.dao.impl.go View File

@ -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)
}


+ 1
- 1
dao/log/implments/ArtDemandLstCache.dao.impl.go View File

@ -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)
}


Loading…
Cancel
Save