Browse Source

Merge pull request '将部分常量声明移动到了合适的位置' (#23) from fix_MODEL into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_GAAS_GFrame_BACKEND/pulls/23
Reviewed-by: louwenzhi <wenzhi.lou@le-it.com.cn>
pull/24/head
weichenglei 4 years ago
parent
commit
135bc80ad4
2 changed files with 25 additions and 21 deletions
  1. +0
    -10
      models/log/ArtDemandLst.model.go
  2. +25
    -11
      models/log/log.go

+ 0
- 10
models/log/ArtDemandLst.model.go View File

@ -67,13 +67,3 @@ type ArtDemandLst struct {
func (self *ArtDemandLst) GetKey() core.PK {
return core.PK{self.PlantNr, self.ArtId, self.DemandTime.Restore()}
}
// 供应商需求明细状态值
const (
WaitReceivingStatus int = iota // 初始状态
ReceivedStatus // 已接收
ConfirmedStatus // 已确认
AccomplishedStatus // 已完成
)

+ 25
- 11
models/log/log.go View File

@ -1,22 +1,36 @@
/******************************************************************************
* @Function Name :
*-----------------------------------------------------------------------------
* @Description :
* @Function Parameters:
* @Return Value :
* @Author : Zhang Xin
* @Date : 2021/3/3 11:02
******************************************************************************/
package log
// 供应商需求明细状态值
const (
WaitReceivingStatus int = iota // 初始状态
ReceivedStatus // 已接收
ConfirmedStatus // 已确认
AccomplishedStatus // 已完成
)
// 修改供应商需求明细状态绑定结构体
/******************************************************************************
*
* @Description : 修改供应商需求明细状态绑定结构体
*
* @Author : Zhang Xin
*
* @Date : 2021/3/3
*
******************************************************************************/
type ArtDemandLstStatusChange struct {
ArtId string `json:"artId"`
DemandTime string `json:"demandTime"`
}
// 修改供应商需求明细状态绑定结构体外层切片
/******************************************************************************
*
* @Description : 修改供应商需求明细状态绑定结构体外层切片
*
* @Author : Zhang Xin
*
* @Date : 2021/3/3
*
******************************************************************************/
type ArtDemandLstStatusChangeRecords struct {
Records []ArtDemandLstStatusChange
}

Loading…
Cancel
Save