|
@@ -47,7 +47,9 @@ public class UserHistoryServiceImpl extends ServiceImpl<UserHistoryMapper, UserH
|
|
|
UserHistory history = this.getOne(new LambdaQueryWrapper<UserHistory>()
|
|
|
.eq(UserHistory::getUserId, userId)
|
|
|
.eq(UserHistory::getProjectId, userHistory.getProjectId())
|
|
|
- .eq(UserHistory::getContractId, userHistory.getContractId()));
|
|
|
+ .eq(UserHistory::getContractId, userHistory.getContractId())
|
|
|
+ .last(" limit 1")
|
|
|
+ );
|
|
|
if (history == null){
|
|
|
//没有则新增
|
|
|
userHistory.setUserId(userId);
|