|
|
@@ -11,6 +11,7 @@ import (
|
|
|
accountModel "lims_adapter/model/account"
|
|
|
"math"
|
|
|
"strconv"
|
|
|
+ "strings"
|
|
|
)
|
|
|
|
|
|
// Service 会议室服务
|
|
|
@@ -74,6 +75,12 @@ func (s Service) List(req model.ListReq) ([]accountModel.SettleAccountMain, int,
|
|
|
if entity.AppointStartDate != "" && entity.AppointEndDate != "" {
|
|
|
where += fmt.Sprintf(" AND AppointStartDate>'%v' AND AppointEndDate<'%v'", entity.AppointStartDate, entity.AppointEndDate)
|
|
|
}
|
|
|
+ if entity.SettleDate != "" {
|
|
|
+ timelist := strings.Split(entity.SettleDate,",")
|
|
|
+ if len(timelist) == 2 {
|
|
|
+ where += fmt.Sprintf(" AND SettleDate>'%v' AND SettleDate<'%v'", timelist[0],timelist[1])
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
entityModel = entityModel.Where(where)
|
|
|
total, err := entityModel.Count()
|