Browse Source

Merge pull request 'ods工序从头部里删除' (#66) from featrue_odesbug into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_GAAS_GFrame_BACKEND/pulls/66
Reviewed-by: weichenglei <chenglei.wei@le-it.com.cn>
pull/67/head
weichenglei 3 years ago
parent
commit
ef6c2c79bb
1 changed files with 0 additions and 22 deletions
  1. +0
    -22
      services/ods/implments/ArtRouteOdsLst.service.impl.go

+ 0
- 22
services/ods/implments/ArtRouteOdsLst.service.impl.go View File

@ -116,26 +116,6 @@ func (impl *ArtRouteOdsLstServiceImplement) InsertOne(user *models.Usertab, enti
if err != nil {
return err
}
type ArtRouteStepOdsLst struct {
PlantNr int `xorm:"pk int 'PlantNr'" json:"ODS_ArtRouteStepOdsLst-PlantNr"`
ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"ODS_ArtRouteStepOdsLst-ArtId"`
OperationNr int `xorm:"pk int 'OperationNr'" json:"ODS_ArtRouteStepOdsLst-OperationNr"`
Step int `xorm:"pk int 'Step'" json:"ODS_ArtRouteStepOdsLst-Step"`
Pos int `xorm:"pk int 'Pos'" json:"ODS_ArtRouteStepOdsLst-Pos"`
WorkPlaceId string `xorm:"nvarchar(40) 'WorkPlaceId' not null" json:"ODS_ArtRouteStepOdsLst-WorkPlaceId"`
Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"ODS_ArtRouteStepOdsLst-Descr"`
OdsId string `xorm:"nvarchar(40) 'OdsId' not null" json:"ODS_ArtRouteStepOdsLst-OdsId"`
OdsTypeId string `xorm:"nvarchar(40) 'OdsTypeId' not null" json:"ODS_ArtRouteStepOdsLst-OdsTypeId"`
OdsContentIdx string `xorm:"nvarchar(255) 'OdsContentIdx' not null" json:"ODS_ArtRouteStepOdsLst-OdsContentIdx"`
CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"ODS_ArtRouteStepOdsLst-CtrlPara1"`
CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"ODS_ArtRouteStepOdsLst-CtrlPara2"`
CtrlPara3 string `xorm:"nvarchar(100) 'CtrlPara3' not null" json:"ODS_ArtRouteStepOdsLst-CtrlPara3"`
CtrlPara4 string `xorm:"nvarchar(100) 'CtrlPara4' not null" json:"ODS_ArtRouteStepOdsLst-CtrlPara4"`
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"ODS_ArtRouteStepOdsLst-LastModify"`
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"ODS_ArtRouteStepOdsLst-LastUser"`
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"ODS_ArtRouteStepOdsLst-CreateTime"`
}
/**处理数据**/
for k, _ := range entity.Valst {
entity.Valst[k].ArtId = entity.ArtId
@ -143,8 +123,6 @@ func (impl *ArtRouteOdsLstServiceImplement) InsertOne(user *models.Usertab, enti
entity.Valst[k].Step = k+1
entity.Valst[k].Pos = entity.Pos
entity.Valst[k].WorkPlaceId = entity.WorkPlaceId
entity.Valst[k].OdsId = entity.OdsId
entity.Valst[k].OdsTypeId = entity.OdsTypeId
}
lstdao := dal.NewArtRouteStepOdsLstDAO(session, user.Pid, user.Userid)
err = lstdao.Insert(&entity.Valst)


Loading…
Cancel
Save