Browse Source

去掉创建内部订单得计划开始时间得校验

pull/379/head
zhangxin 3 years ago
parent
commit
e9e5fc412d
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      services/om/implments/WorkOrder.service.impl.go

+ 5
- 5
services/om/implments/WorkOrder.service.impl.go View File

@ -154,11 +154,11 @@ func (impl *WorkOrderServiceImplement) InsertOne(user *models.Usertab, entity *m
if workStatus.Status != baseModel.WO_STATUS_UNPLANNED { if workStatus.Status != baseModel.WO_STATUS_UNPLANNED {
return grmi.NewBusinessError("创建的订单状态不合规,status:" + strconv.Itoa(entity.Status)) return grmi.NewBusinessError("创建的订单状态不合规,status:" + strconv.Itoa(entity.Status))
} }
endTime := workOrder.PlanEndTime.Restore()
startTime := workOrder.PlanStartTime.Restore()
if endTime.Before(startTime) || endTime.Equal(startTime){
return grmi.NewBusinessError("创建的订单状态计划时间不合规")
}
//endTime := workOrder.PlanEndTime.Restore()
//startTime := workOrder.PlanStartTime.Restore()
//if endTime.Before(startTime) || endTime.Equal(startTime){
// return grmi.NewBusinessError("创建的订单状态计划时间不合规")
//}
startDate := workOrder.PlanStartDate.Restore() startDate := workOrder.PlanStartDate.Restore()
endDate := workOrder.PlanEndDate.Restore() endDate := workOrder.PlanEndDate.Restore()
if endDate.Before(startDate) { if endDate.Before(startDate) {


Loading…
Cancel
Save