|
|
@@ -49,6 +49,9 @@ func (s Service) List(req model.ListReq) ([]accountModel.SettleAccountMain, int,
|
|
|
if entity.InstrumentId != 0 {
|
|
|
where += fmt.Sprintf(" AND InstrumentId='%v'", entity.InstrumentId)
|
|
|
}
|
|
|
+ if entity.InstrumentName != "" {
|
|
|
+ where += fmt.Sprintf(" AND InstrumentName LIKE '%%%v%%'", entity.InstrumentName)
|
|
|
+ }
|
|
|
if entity.AppointUserId != 0 {
|
|
|
where += fmt.Sprintf(" AND AppointUserId='%v'", entity.AppointUserId)
|
|
|
}
|
|
|
@@ -61,6 +64,9 @@ func (s Service) List(req model.ListReq) ([]accountModel.SettleAccountMain, int,
|
|
|
if entity.SettleStatus != "" {
|
|
|
where += fmt.Sprintf(" AND SettleStatus='%v'", entity.SettleStatus)
|
|
|
}
|
|
|
+ if entity.SettleUser != "" {
|
|
|
+ where += fmt.Sprintf(" AND SettleUser LIKE '%%%v%%'", entity.SettleUser)
|
|
|
+ }
|
|
|
if entity.FeeType != "" {
|
|
|
where += fmt.Sprintf(" AND FeeType='%v'", entity.FeeType)
|
|
|
}
|