|
|
@@ -181,6 +181,12 @@ func QueryHisAmountLog(c *gin.Context) {
|
|
|
if len(req.OperateType) > 0 {
|
|
|
s = s.And(fmt.Sprintf("HIS_TAACCOUNTLOG.OPERATETYPE in (%s)", req.OperateType))
|
|
|
}
|
|
|
+ if len(req.StartDate) > 0 {
|
|
|
+ s = s.And(fmt.Sprintf("to_date(HIS_TAACCOUNTLOG.HISTRADEDATE,'yyyyMMdd') >= to_date('%s','yyyy-MM-dd')", req.StartDate))
|
|
|
+ }
|
|
|
+ if len(req.EndDate) > 0 {
|
|
|
+ s = s.And(fmt.Sprintf("to_date(HIS_TAACCOUNTLOG.HISTRADEDATE,'yyyyMMdd') <= to_date('%s','yyyy-MM-dd')", req.EndDate))
|
|
|
+ }
|
|
|
if err := s.Find(&datas); err != nil {
|
|
|
// 查询失败
|
|
|
logger.GetLogger().Errorf("QueryHisAmountLog failed: %s", err.Error())
|