|
|
@ -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 |
|
|
|
} |