init
This commit is contained in:
@@ -49,6 +49,8 @@ public class AgreementSetting implements Serializable {
|
||||
|
||||
private String contractTemplate;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
||||
@@ -207,4 +207,6 @@ public class Borrow implements Serializable {
|
||||
@Schema(description = "修改时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
}
|
||||
|
||||
@@ -17,5 +17,5 @@ public class BorrowLog {
|
||||
private Long id;
|
||||
private Double withdrawAccount;
|
||||
private Long customerId;
|
||||
|
||||
private String tenantId;
|
||||
}
|
||||
|
||||
@@ -64,4 +64,6 @@ public class BorrowStatus implements Serializable {
|
||||
@Schema(description = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -154,6 +154,8 @@ public class CustomerInfo implements Serializable {
|
||||
@Schema(description = "签名")
|
||||
private String signature;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
private Boolean allowSignature = true;
|
||||
|
||||
@TableField(exist = false)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -56,6 +56,8 @@ public class LoansSetting implements Serializable {
|
||||
*/
|
||||
private String serviceRate;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user