This commit is contained in:
77
2024-05-19 00:45:31 +08:00
parent 32933c2840
commit 92134f6ed2
26 changed files with 67 additions and 45 deletions

View File

@@ -49,6 +49,8 @@ public class AgreementSetting implements Serializable {
private String contractTemplate;
private String tenantId;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

View File

@@ -207,4 +207,6 @@ public class Borrow implements Serializable {
@Schema(description = "修改时间")
private LocalDateTime updateTime;
private String tenantId;
}

View File

@@ -17,5 +17,5 @@ public class BorrowLog {
private Long id;
private Double withdrawAccount;
private Long customerId;
private String tenantId;
}

View File

@@ -64,4 +64,6 @@ public class BorrowStatus implements Serializable {
@Schema(description = "修改时间")
private Date updateTime;
private String tenantId;
}

View File

@@ -95,6 +95,8 @@ public class Customer implements Serializable {
@Schema(description = "修改时间")
private LocalDateTime updateTime;
private String tenantId;
@TableField(exist = false)
private static final long serialVersionUID = 1L;

View File

@@ -154,6 +154,8 @@ public class CustomerInfo implements Serializable {
@Schema(description = "签名")
private String signature;
private String tenantId;
private Boolean allowSignature = true;
@TableField(exist = false)

View File

@@ -43,6 +43,7 @@ public class HomeSetting implements Serializable {
private Boolean openWithdrawCode;
private String defaultCoinUnit;
private String randomPhoneVersion;
private String tenantId;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

View File

@@ -56,6 +56,8 @@ public class LoansSetting implements Serializable {
*/
private String serviceRate;
private String tenantId;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

View File

@@ -2,6 +2,7 @@ package com.ruoyi.dk.kit;
import cn.dev33.satoken.secure.BCrypt;
import cn.dev33.satoken.stp.StpUtil;
import com.ruoyi.component.tenant.helper.TenantHelper;
import com.ruoyi.dk.domain.Customer;
import com.ruoyi.dk.executor.ExecutorConstant;
import com.ruoyi.dk.service.CustomerService;
@@ -67,7 +68,7 @@ public class DkLoginKit {
loginUser.setRoleId(null);
loginUser.setUserId(user.getId());
loginUser.setUserType(UserType.APP_USER.getUserType());
// loginUser.setTenantId(user);
loginUser.setTenantId(user.getTenantId());
LoginHelper.login(loginUser);
sysLoginService.recordLogininfor(loginUser.getUsername(), UserType.APP_USER.getUserType(), Constants.LOGIN_SUCCESS, MessageUtils.message("user.login.success"));
return StpUtil.getTokenValue();