Browse Source

修复客户订单取消数量查询工单失败得bug

test_scheduler
zhangxin 2 years ago
parent
commit
b9690b07ce
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      dao/om/implments/SerialOrder.dao.impl.go

+ 3
- 2
dao/om/implments/SerialOrder.dao.impl.go View File

@ -844,10 +844,11 @@ func (impl *SerialOrderDAOImplement) SelectCustOrderQtyInfo(custOrderId string)
session := impl.session.Table(impl.meta.TableName).Join("LEFT", meta.SerialOrderStatus.TableName, condition)
var accomplishQty, otherQty int64
var err error
accomplishQty, err = session.Where(where, accomplishedParameters...).Count(&model.VOmSerialorder{})
accomplishQty, err = session.Where(where, accomplishedParameters...).Count(impl.meta.Indicator)
if err != nil {
return accomplishQty, otherQty, err
}
otherQty, err = session.Where(where2, otherParameters...).Count(&model.VOmSerialorder{})
session = impl.session.Table(impl.meta.TableName).Join("LEFT", meta.SerialOrderStatus.TableName, condition)
otherQty, err = session.Where(where2, otherParameters...).Count(impl.meta.Indicator)
return accomplishQty, otherQty, err
}

Loading…
Cancel
Save