Commit e726be7440e85c61e9903b37cc238ba77e1a0b9b

Authored by zhangdaiscott
1 parent d081ca0a

【issues/I471XE】 钉钉人员同步时手机号未能正确同步

issues/2959 微服务版集成企业微信单点登录
【issues/2939】JEditable 下子表 addBefore()方法,在其中自定义调用其他方法不生效
ant-design-vue-jeecg/src/mixins/JEditableTableMixin.js
@@ -53,6 +53,7 @@ export const JEditableTableMixin = { @@ -53,6 +53,7 @@ export const JEditableTableMixin = {
53 this.tableReset(); 53 this.tableReset();
54 resolve(); 54 resolve();
55 }).then(() => { 55 }).then(() => {
  56 + if (typeof this.addBefore === 'function') this.addBefore()
56 // 默认新增空数据 57 // 默认新增空数据
57 let rowNum = this.addDefaultRowNum 58 let rowNum = this.addDefaultRowNum
58 if (typeof rowNum !== 'number') { 59 if (typeof rowNum !== 'number') {
ant-design-vue-jeecg/src/mixins/JEditableTableModelMixin.js
@@ -51,6 +51,7 @@ export const JEditableTableModelMixin = { @@ -51,6 +51,7 @@ export const JEditableTableModelMixin = {
51 this.tableReset(); 51 this.tableReset();
52 resolve(); 52 resolve();
53 }).then(() => { 53 }).then(() => {
  54 + if (typeof this.addBefore === 'function') this.addBefore()
54 // 默认新增空数据 55 // 默认新增空数据
55 let rowNum = this.addDefaultRowNum 56 let rowNum = this.addDefaultRowNum
56 if (typeof rowNum !== 'number') { 57 if (typeof rowNum !== 'number') {
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/RestUtil.java
@@ -25,6 +25,12 @@ public class RestUtil { @@ -25,6 +25,12 @@ public class RestUtil {
25 public static String getDomain() { 25 public static String getDomain() {
26 if (domain == null) { 26 if (domain == null) {
27 domain = SpringContextUtils.getDomain(); 27 domain = SpringContextUtils.getDomain();
  28 + // issues/2959
  29 + // 微服务版集成企业微信单点登录
  30 + // 因为微服务版没有端口号,导致 SpringContextUtils.getDomain() 方法获取的域名的端口号变成了:-1所以出问题了,只需要把这个-1给去掉就可以了。
  31 + if (domain.endsWith(":-1")) {
  32 + domain = domain.substring(0, domain.length() - 3);
  33 + }
28 } 34 }
29 return domain; 35 return domain;
30 } 36 }
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/ThirdAppDingtalkServiceImpl.java
@@ -538,7 +538,6 @@ public class ThirdAppDingtalkServiceImpl implements IThirdAppService { @@ -538,7 +538,6 @@ public class ThirdAppDingtalkServiceImpl implements IThirdAppService {
538 SysUser sysUser = new SysUser(); 538 SysUser sysUser = new SysUser();
539 BeanUtils.copyProperties(oldSysUser, sysUser); 539 BeanUtils.copyProperties(oldSysUser, sysUser);
540 sysUser.setRealname(dtUser.getName()); 540 sysUser.setRealname(dtUser.getName());
541 - sysUser.setPhone(dtUser.getMobile());  
542 sysUser.setTelephone(dtUser.getTelephone()); 541 sysUser.setTelephone(dtUser.getTelephone());
543 542
544 // 因为唯一键约束的原因,如果原数据和旧数据相同,就不更新 543 // 因为唯一键约束的原因,如果原数据和旧数据相同,就不更新