正在显示
3 个修改的文件
包含
6 行增加
和
2 行删除
@@ -1598,7 +1598,7 @@ func (cashPoolService *CashPoolService) ListExchangeCashPersonById(exportExchang | @@ -1598,7 +1598,7 @@ func (cashPoolService *CashPoolService) ListExchangeCashPersonById(exportExchang | ||
1598 | } | 1598 | } |
1599 | } | 1599 | } |
1600 | 1600 | ||
1601 | -// TODO 员工兑换清单榜单 | 1601 | +// 员工兑换清单榜单 |
1602 | func (cashPoolService *CashPoolService) ExchangeListRanking(exchangeListRankingQuery *query.ExchangeListRankingQuery) (interface{}, error) { | 1602 | func (cashPoolService *CashPoolService) ExchangeListRanking(exchangeListRankingQuery *query.ExchangeListRankingQuery) (interface{}, error) { |
1603 | if err := exchangeListRankingQuery.ValidateCommand(); err != nil { | 1603 | if err := exchangeListRankingQuery.ValidateCommand(); err != nil { |
1604 | return nil, application.ThrowError(application.ARG_ERROR, err.Error()) | 1604 | return nil, application.ThrowError(application.ARG_ERROR, err.Error()) |
@@ -77,7 +77,7 @@ func (dao *CashPoolDao) CalculateActivityExchangedSuMoney(activityId int64) (map | @@ -77,7 +77,7 @@ func (dao *CashPoolDao) CalculateActivityExchangedSuMoney(activityId int64) (map | ||
77 | }, nil | 77 | }, nil |
78 | } | 78 | } |
79 | 79 | ||
80 | -// TODO 返回兑换清单榜单 | 80 | +// 返回兑换清单榜单 |
81 | func (dao *CashPoolDao) ExchangeCashListRanking(queryOptions map[string]interface{}) (map[string]interface{}, error) { | 81 | func (dao *CashPoolDao) ExchangeCashListRanking(queryOptions map[string]interface{}) (map[string]interface{}, error) { |
82 | var retPeople []struct { | 82 | var retPeople []struct { |
83 | Uid int | 83 | Uid int |
@@ -155,6 +155,10 @@ func (repository *TaskRepository) Find(queryOptions map[string]interface{}) (int | @@ -155,6 +155,10 @@ func (repository *TaskRepository) Find(queryOptions map[string]interface{}) (int | ||
155 | if taskContentMatch, ok := queryOptions["taskContentMatch"]; ok && (taskContentMatch != "") { | 155 | if taskContentMatch, ok := queryOptions["taskContentMatch"]; ok && (taskContentMatch != "") { |
156 | query = query.Where("task.task_name LIKE ?", fmt.Sprintf("%%%s%%", taskContentMatch.(string))) | 156 | query = query.Where("task.task_name LIKE ?", fmt.Sprintf("%%%s%%", taskContentMatch.(string))) |
157 | } | 157 | } |
158 | + if taskNameMatch, ok := queryOptions["taskNameMatch"]; ok && (taskNameMatch != "") { | ||
159 | + query = query.Where("task.task_name LIKE ?", fmt.Sprintf("%%%s%%", taskNameMatch.(string))) | ||
160 | + query = query.Where("task.task_type IN (?)", pg.In([]int{1, 2})) | ||
161 | + } | ||
158 | if isRewardTake, ok := queryOptions["isRewardTake"]; ok && (isRewardTake != false) { | 162 | if isRewardTake, ok := queryOptions["isRewardTake"]; ok && (isRewardTake != false) { |
159 | query = query.Where(`task.is_reward_take = ?`, isRewardTake) | 163 | query = query.Where(`task.is_reward_take = ?`, isRewardTake) |
160 | } | 164 | } |
-
请 注册 或 登录 后发表评论