Bläddra i källkod

更新

tags/v2.4.1
xiaoying 1 år sedan
förälder
incheckning
709d4e988c
2 ändrade filer med 12 tillägg och 1 borttagningar
  1. +11
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/model/vo/TenantVo.java
  2. +1
    -1
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/ClientUserServiceImpl.java

+ 11
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/model/vo/TenantVo.java Visa fil

@@ -1,7 +1,10 @@
package com.tuoheng.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
@@ -61,4 +64,12 @@ public class TenantVo {
*/
private Long tenantId;

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime;

}

+ 1
- 1
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/ClientUserServiceImpl.java Visa fil

@@ -317,7 +317,7 @@ public class ClientUserServiceImpl implements ClientUserSevice {
* @return
*/
@Override
@Transactional
@Transactional(rollbackFor = Exception.class)
public JsonResult addTenant(OidcTenantDto dto, LoginUser loginUser) {

if (clientUserMapper.judgeCreateByUserName(dto.getUsername()) > 0) {

Laddar…
Avbryt
Spara