Browse Source

Merge pull request '修复查询版本bug' (#191) from fix_mps into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_CHEERSSON_BACKEND/pulls/191
pull/193/head
yehongyang 3 years ago
parent
commit
9e8bb1ca3b
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      dao/ap/implments/ArticleDemand.dao.impl.go
  2. +2
    -2
      task/k3cloud.go

+ 2
- 2
dao/ap/implments/ArticleDemand.dao.impl.go View File

@ -406,8 +406,8 @@ func (impl *ArticleDemandDAOImplement) RefreshArticleDemand() ([]model.ArticleDe
******************************************************************************/
func (impl *ArticleDemandDAOImplement) SelectTop() (*model.ArticleDemand, error) {
parameters := []interface{}{impl.plantNr}
where := fmt.Sprintf("%s = ?", meta.ArticleDemand_PlantNr.ColumnName)
parameters := []interface{}{impl.plantNr, 2}
where := fmt.Sprintf("%s = ? and %s = ?", meta.ArticleDemand_PlantNr.ColumnName, meta.ArticleDemand_Status.ColumnName)
session := impl.session.Table(impl.meta.TableName).Where(where, parameters...)
session = session.OrderBy(meta.ArticleDemand_PlantNr.ColumnName)


+ 2
- 2
task/k3cloud.go View File

@ -52,14 +52,14 @@ func TaskInit() {
//erp.PublishPlan(100, "admin")
i = false
}
time.Sleep(time.Minute * 30)
time.Sleep(time.Minute * 5)
}
}
//1天任务
func oneTask(_date time.Time) {
//需要定时登录erp
utils.K3configTestInit()
utils.K3configInit()
//if DaysBetweenDates(lastTime.OneTime, _date) >= 1 {


Loading…
Cancel
Save