...
|
...
|
@@ -1218,9 +1218,10 @@ func (cashPoolService *CashPoolService) UpdateExchangeCashPerson(updateExchangeC |
|
|
activityFoundExchangedSuMoney := activityFound.ExchangedSuMoney
|
|
|
activityFoundExchangedCash := activityFound.ExchangedCash
|
|
|
|
|
|
// TODO 更改:根据uid和companyId,判断当前员工是否有效
|
|
|
//更改:根据uid和companyId,判断当前员工是否有效
|
|
|
getEmployee := map[string]interface{}{
|
|
|
"account": personFound.EmployeeInfo.EmployeeAccount,
|
|
|
"uid": personFound.EmployeeInfo.Uid,
|
|
|
//"account": personFound.EmployeeInfo.EmployeeAccount,
|
|
|
"companyId": activityFound.CompanyId,
|
|
|
}
|
|
|
employeeFound, err := employeeRepository.FindOne(getEmployee)
|
...
|
...
|
@@ -1535,9 +1536,10 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc |
|
|
cashPoolFoundUnExchangeCash := cashPoolFound.UnExchangeCash // 当前公司现金池未兑换现金
|
|
|
cashPoolFoundExchangedCash := cashPoolFound.ExchangedCash // 当前公司现金池已兑换现金
|
|
|
|
|
|
// TODO 更改:根据uid和companyId,判断当前员工是否有效
|
|
|
// 更改:根据uid和companyId,判断当前员工是否有效
|
|
|
getEmployee := map[string]interface{}{
|
|
|
"account": createExchangeCashPersonCommand.PersonAccount,
|
|
|
"uid": createExchangeCashPersonCommand.Uid,
|
|
|
//"account": createExchangeCashPersonCommand.PersonAccount,
|
|
|
"companyId": activityFound.CompanyId,
|
|
|
}
|
|
|
employeeFound, err := employeeRepository.FindOne(getEmployee)
|
...
|
...
|
@@ -1563,9 +1565,10 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc |
|
|
}
|
|
|
employeeFoundSuMoney := employeeFound.SuMoney // 当前导入员工持有的素币值
|
|
|
|
|
|
// TODO 更改:根据uid和activityId判断当前员工是否已经在素币兑换清单中,
|
|
|
// 更改:根据uid和activityId判断当前员工是否已经在素币兑换清单中,
|
|
|
personFound, _ := exchangeCashPersonListRepository.FindOne(map[string]interface{}{
|
|
|
"employeeAccount": employeeFound.EmployeeInfo.EmployeeAccount,
|
|
|
"uid": employeeFound.EmployeeInfo.Uid,
|
|
|
//"employeeAccount": employeeFound.EmployeeInfo.EmployeeAccount,
|
|
|
"activityId": activityFound.ActivityId,
|
|
|
})
|
|
|
if personFound == nil { // 当前人员不在兑换素币清单中,新增兑换素币清单
|
...
|
...
|
|