作者 陈志颖

fix:修复更新现金池后投入现金池现金展示问题

@@ -1702,6 +1702,7 @@ func (cashPoolService *CashPoolService) RemoveExchangeCashPerson(removeExchangeC @@ -1702,6 +1702,7 @@ func (cashPoolService *CashPoolService) RemoveExchangeCashPerson(removeExchangeC
1702 // 更新现金池命令 1702 // 更新现金池命令
1703 updateCashPoolCommand := &command.UpdateCashPoolCommand{ 1703 updateCashPoolCommand := &command.UpdateCashPoolCommand{
1704 CashPoolId: cashPoolsFound[0].CashPoolId, 1704 CashPoolId: cashPoolsFound[0].CashPoolId,
  1705 + Cash: cashPoolsFound[0].Cash,
1705 ExchangedCash: cashPoolsFound[0].ExchangedCash - personFound.ExchangedCash, 1706 ExchangedCash: cashPoolsFound[0].ExchangedCash - personFound.ExchangedCash,
1706 UnExchangeCash: cashPoolsFound[0].UnExchangeCash + personFound.ExchangedCash, 1707 UnExchangeCash: cashPoolsFound[0].UnExchangeCash + personFound.ExchangedCash,
1707 Rate: newRate, 1708 Rate: newRate,
@@ -150,7 +150,6 @@ func (dao *TaskDao) CalculateSystemTask(companyId int64) (map[string]interface{} @@ -150,7 +150,6 @@ func (dao *TaskDao) CalculateSystemTask(companyId int64) (map[string]interface{}
150 } else { 150 } else {
151 underway = int64(count) 151 underway = int64(count)
152 } 152 }
153 - // TODO 同步搜索任务条件  
154 if count, err := tx.Model(taskModel). 153 if count, err := tx.Model(taskModel).
155 Where("task.company_id = ?", companyId). 154 Where("task.company_id = ?", companyId).
156 Where("task.task_status = ? ", domain.TASK_STATUS_COMPLETED). 155 Where("task.task_status = ? ", domain.TASK_STATUS_COMPLETED).
@@ -174,7 +173,6 @@ func (dao *TaskDao) CalculateSystemTask(companyId int64) (map[string]interface{} @@ -174,7 +173,6 @@ func (dao *TaskDao) CalculateSystemTask(companyId int64) (map[string]interface{}
174 reward = int64(count) 173 reward = int64(count)
175 } 174 }
176 return map[string]interface{}{ 175 return map[string]interface{}{
177 - //"released": released + underway + completed,  
178 "released": released, 176 "released": released,
179 "underway": underway, 177 "underway": underway,
180 "completed": completed, 178 "completed": completed,