Browse Source

修复bug

feature_shunyin
zhangxin 2 years ago
parent
commit
f1d619b992
2 changed files with 12 additions and 12 deletions
  1. +11
    -11
      dao/pln/implments/ToyotaCalloff.dao.impl.go
  2. +1
    -1
      services/pln/implments/ToyotaDeliveryOrder.service.impl.go

+ 11
- 11
dao/pln/implments/ToyotaCalloff.dao.impl.go View File

@ -322,17 +322,17 @@ func (impl *ToyotaCalloffDAOImplement) SelectAndPaging(paging *grmi.Paging, pred
return grmi.EmptyPagingResult, err
}
orderBy := " order by " + meta.ToyotaCalloff_PlantNr.ColumnName
if orderByFields != nil {
for _, field := range orderByFields {
if orderBy == " order by " {
orderBy += field.ColumnName
} else {
orderBy += ", " + field.ColumnName
}
}
}
//orderBy := " order by " + meta.ToyotaCalloff_RecordId.SortColumnName + " desc "
//orderBy := " order by " + meta.ToyotaCalloff_PlantNr.ColumnName
//if orderByFields != nil {
// for _, field := range orderByFields {
// if orderBy == " order by " {
// orderBy += field.ColumnName
// } else {
// orderBy += ", " + field.ColumnName
// }
// }
//}
orderBy := " order by " + meta.ToyotaCalloff_RecordId.SortColumnName + " desc "
parameters = append(parameters, paging.Offset(), paging.Size)
data := make([]model.ToyotaCalloff, 0, 10)
where = " where " + where


+ 1
- 1
services/pln/implments/ToyotaDeliveryOrder.service.impl.go View File

@ -370,7 +370,7 @@ func (impl *ToyotaDeliveryOrderServiceImplement) WriteDeliveryDataToPLCTask() {
}
common.ToyotaWriteCallOffToPLCStatus = 1
defer func() {
common.ToyotaExtractCallOffTaskStatus = 0
common.ToyotaWriteCallOffToPLCStatus = 0
}()
log, _ := logger.NewLogger("CallOff", "JIT")
engine := db.Eloquent.Master()


Loading…
Cancel
Save