This commit is contained in:
@@ -100,6 +100,9 @@ func normalizeFundSummaryPage(page, pageSize int) (int, int) {
|
||||
}
|
||||
|
||||
func applyFundSummaryFilters(db *gorm.DB, req dto.ShopFundSummaryListReq) *gorm.DB {
|
||||
if req.ShopID != nil {
|
||||
db = db.Where("tb_shop.id = ?", *req.ShopID)
|
||||
}
|
||||
if shopName := strings.TrimSpace(req.ShopName); shopName != "" {
|
||||
db = db.Where("shop_name ILIKE ?", "%"+shopName+"%")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user