作者 陈志颖

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

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