|
@@ -1218,9 +1218,10 @@ func (cashPoolService *CashPoolService) UpdateExchangeCashPerson(updateExchangeC |
|
@@ -1218,9 +1218,10 @@ func (cashPoolService *CashPoolService) UpdateExchangeCashPerson(updateExchangeC |
1218
|
activityFoundExchangedSuMoney := activityFound.ExchangedSuMoney
|
1218
|
activityFoundExchangedSuMoney := activityFound.ExchangedSuMoney
|
1219
|
activityFoundExchangedCash := activityFound.ExchangedCash
|
1219
|
activityFoundExchangedCash := activityFound.ExchangedCash
|
1220
|
|
1220
|
|
1221
|
- // TODO 更改:根据uid和companyId,判断当前员工是否有效
|
1221
|
+ //更改:根据uid和companyId,判断当前员工是否有效
|
1222
|
getEmployee := map[string]interface{}{
|
1222
|
getEmployee := map[string]interface{}{
|
1223
|
- "account": personFound.EmployeeInfo.EmployeeAccount,
|
1223
|
+ "uid": personFound.EmployeeInfo.Uid,
|
|
|
1224
|
+ //"account": personFound.EmployeeInfo.EmployeeAccount,
|
1224
|
"companyId": activityFound.CompanyId,
|
1225
|
"companyId": activityFound.CompanyId,
|
1225
|
}
|
1226
|
}
|
1226
|
employeeFound, err := employeeRepository.FindOne(getEmployee)
|
1227
|
employeeFound, err := employeeRepository.FindOne(getEmployee)
|
|
@@ -1535,9 +1536,10 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc |
|
@@ -1535,9 +1536,10 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc |
1535
|
cashPoolFoundUnExchangeCash := cashPoolFound.UnExchangeCash // 当前公司现金池未兑换现金
|
1536
|
cashPoolFoundUnExchangeCash := cashPoolFound.UnExchangeCash // 当前公司现金池未兑换现金
|
1536
|
cashPoolFoundExchangedCash := cashPoolFound.ExchangedCash // 当前公司现金池已兑换现金
|
1537
|
cashPoolFoundExchangedCash := cashPoolFound.ExchangedCash // 当前公司现金池已兑换现金
|
1537
|
|
1538
|
|
1538
|
- // TODO 更改:根据uid和companyId,判断当前员工是否有效
|
1539
|
+ // 更改:根据uid和companyId,判断当前员工是否有效
|
1539
|
getEmployee := map[string]interface{}{
|
1540
|
getEmployee := map[string]interface{}{
|
1540
|
- "account": createExchangeCashPersonCommand.PersonAccount,
|
1541
|
+ "uid": createExchangeCashPersonCommand.Uid,
|
|
|
1542
|
+ //"account": createExchangeCashPersonCommand.PersonAccount,
|
1541
|
"companyId": activityFound.CompanyId,
|
1543
|
"companyId": activityFound.CompanyId,
|
1542
|
}
|
1544
|
}
|
1543
|
employeeFound, err := employeeRepository.FindOne(getEmployee)
|
1545
|
employeeFound, err := employeeRepository.FindOne(getEmployee)
|
|
@@ -1563,9 +1565,10 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc |
|
@@ -1563,9 +1565,10 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc |
1563
|
}
|
1565
|
}
|
1564
|
employeeFoundSuMoney := employeeFound.SuMoney // 当前导入员工持有的素币值
|
1566
|
employeeFoundSuMoney := employeeFound.SuMoney // 当前导入员工持有的素币值
|
1565
|
|
1567
|
|
1566
|
- // TODO 更改:根据uid和activityId判断当前员工是否已经在素币兑换清单中,
|
1568
|
+ // 更改:根据uid和activityId判断当前员工是否已经在素币兑换清单中,
|
1567
|
personFound, _ := exchangeCashPersonListRepository.FindOne(map[string]interface{}{
|
1569
|
personFound, _ := exchangeCashPersonListRepository.FindOne(map[string]interface{}{
|
1568
|
- "employeeAccount": employeeFound.EmployeeInfo.EmployeeAccount,
|
1570
|
+ "uid": employeeFound.EmployeeInfo.Uid,
|
|
|
1571
|
+ //"employeeAccount": employeeFound.EmployeeInfo.EmployeeAccount,
|
1569
|
"activityId": activityFound.ActivityId,
|
1572
|
"activityId": activityFound.ActivityId,
|
1570
|
})
|
1573
|
})
|
1571
|
if personFound == nil { // 当前人员不在兑换素币清单中,新增兑换素币清单
|
1574
|
if personFound == nil { // 当前人员不在兑换素币清单中,新增兑换素币清单
|