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