|
|
@@ -20,7 +20,7 @@ func (s ServiceAwardReturnFlowDb) GetServiceAwardReturnFlowTotal(types, createTi |
|
|
|
sess.And("type=?", types) |
|
|
|
} |
|
|
|
if createTime != "" { |
|
|
|
sess.And("date<?", createTime) |
|
|
|
sess.And("date<=?", createTime) |
|
|
|
} |
|
|
|
sum, _ = sess.Sum(&models.ServiceAwardReturnFlow{}, "sum") |
|
|
|
hasReturnMoney, _ = sess.Sum(&models.ServiceAwardReturnFlow{}, "has_return_money") |
|
|
|