Browse Source

修改同步到artDemandLst的orderStatus

pull/167/head
zhangxin 3 years ago
parent
commit
9b9e32059b
2 changed files with 11 additions and 1 deletions
  1. +1
    -1
      services/om/implments/DemandHead.service.impl.go
  2. +10
    -0
      services/schedule/Scheduler.Ctrl_test.go

+ 1
- 1
services/om/implments/DemandHead.service.impl.go View File

@ -1002,7 +1002,7 @@ func (impl *DemandHeadServiceImplement) DealArtDemand(pid int,
var artDemandStatus int
// 外部status 转换成内部status
if innerStatus == model.WO_STATUS_PLANNED {
artDemandStatus = baseModel.WO_STATUS_PLANNED
artDemandStatus = baseModel.WO_STATUS_RELEASED
} else if innerStatus == model.WO_STATUS_RUNNING1 || innerStatus == model.WO_STATUS_RUNNING2 {
artDemandStatus = baseModel.WO_STATUS_RUNNING
} else if innerStatus == model.WO_STATUS_FINISHED1 || innerStatus == model.WO_STATUS_FINISHED2 {


+ 10
- 0
services/schedule/Scheduler.Ctrl_test.go View File

@ -0,0 +1,10 @@
/******************************************************************************
* @Function Name :
*-----------------------------------------------------------------------------
* @Description :
* @Function Parameters:
* @Return Value :
* @Author : Zhang Xin
* @Date : 2021/3/3 11:02
******************************************************************************/
package schedule

Loading…
Cancel
Save