feat:增加科技产品数据模型管理

This commit is contained in:
henry
2021-11-26 10:15:49 +08:00
parent f82457a503
commit 3908a05bfa
15 changed files with 458 additions and 84 deletions

View File

@ -113,7 +113,7 @@ func (c *Demand) Form(params *DemandParams) error {
if params.ID > 0 {
mTechnologyDemand.ID = params.ID
isExist, err := model2.FirstField(mTechnologyDemand.TechnologyDemand, []string{"id", "uid", "status"})
isExist, err := model2.FirstField(mTechnologyDemand.TechnologyDemand, []string{"id", "m_uid", "status"})
if err != nil {
return err
@ -166,7 +166,7 @@ func (c *Demand) Delete(id uint64) error {
mTechnologyDemand := model.NewTechnologyDemand()
mTechnologyDemand.ID = id
isExist, err := model2.FirstField(mTechnologyDemand.TechnologyDemand, []string{"id", "uid", "status"})
isExist, err := model2.FirstField(mTechnologyDemand.TechnologyDemand, []string{"id", "m_uid", "status"})
if err != nil {
return err