Explorar o código

导入账号增加邮箱密码字段

zoujiajian hai 1 ano
pai
achega
ea1d728885

+ 6 - 0
netflix-dao/src/main/java/com/cyksj/model/excel/ExcelBannedAccountData.java

@@ -29,6 +29,12 @@ public class ExcelBannedAccountData {
 	@ExcelProperty("关联邮箱")
 	private String relateEmail;
 
+	/**
+	 * 邮箱密码
+	 */
+	@ExcelProperty("邮箱密码")
+	private String gptEmailPwd;
+
 	/**
 	 * 到期日期
 	 */

+ 7 - 1
netflix-dao/src/main/java/com/cyksj/model/excel/ExcelImportAccountData.java

@@ -47,11 +47,17 @@ public class ExcelImportAccountData {
 	private String secondEmail;
 
 	/**
-	 * 辅助邮箱
+	 * 关联邮箱
 	 */
 	@ExcelProperty("关联邮箱")
 	private String relateEmail;
 
+	/**
+	 * 邮箱密码
+	 */
+	@ExcelProperty("邮箱密码")
+	private String gptEmailPwd;
+
 	/**
 	 * 备注
 	 */

+ 6 - 0
netflix-web/src/main/java/com/cyksj/web/controller/manage/account/CmsAccountController.java

@@ -364,6 +364,10 @@ public class CmsAccountController {
 							account.setExpiryTime(DateUtil.parse(data.getExpiryTime()));
 							flag = true;
 						}
+						if (StrUtil.isNotBlank(data.getGptEmailPwd())) {
+							account.setGptEmailPwd(data.getGptEmailPwd());
+							flag = true;
+						}
 						String new_pass = data.getPassword();
 						if (StrUtil.isNotBlank(new_pass) && !new_pass.trim().equals(account.getPassword())) {
 							account.setPassword(new_pass.trim());
@@ -555,6 +559,7 @@ public class CmsAccountController {
 				at.setVerifyLink(data.getVerifyLink());
 				at.setRelateEmail(data.getRelateEmail());
 				at.setEmail(data.getSecondEmail());
+				at.setGptEmailPwd(data.getGptEmailPwd());
 				if (StrUtil.isNotBlank(startTime)) {
 					at.setStartTime(DateUtil.parse(startTime));
 				} else {
@@ -1141,6 +1146,7 @@ public class CmsAccountController {
 				if (StrUtil.isNotBlank(data.getRemark())) {
 					dbAccount.setRemark(data.getRemark());
 				}
+				dbAccount.setGptEmailPwd(data.getGptEmailPwd());
 				accountService.updateById(dbAccount);
 
 				GroupsTrips groupsTrips = groupsMapper.selectOne(Wrappers.lambdaQuery(GroupsTrips.class)