Browse Source

更新查询创建,更新时间精确时分秒

tags/v2.4.1
xiaoying 1 year ago
parent
commit
561fd48798
4 changed files with 19 additions and 4 deletions
  1. +16
    -3
      tuoheng_oidc_admin/src/main/java/com/tuoheng/model/vo/UserVo.java
  2. +3
    -1
      tuoheng_oidc_admin/src/main/resources/mapper/ClientUserMapper.xml
  3. BIN
      tuoheng_oidc_admin/target/classes/com/tuoheng/common/BaseQuery.class
  4. BIN
      tuoheng_oidc_admin/target/classes/com/tuoheng/service/impl/ClientUserServiceImpl.class

+ 16
- 3
tuoheng_oidc_admin/src/main/java/com/tuoheng/model/vo/UserVo.java View File

@@ -1,15 +1,20 @@
package com.tuoheng.model.vo;

import com.tuoheng.model.po.UserPo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
* @Author xiaoying
* @Date 2023/3/1 14:03
*/
@Data
public class UserVo extends UserPo {
public class UserVo {

private String username;
/**
* 平台code
*/
@@ -18,6 +23,14 @@ public class UserVo extends UserPo {
/**
* 平台名称
*/
private String platformName;
private String platformName;

@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;

}

+ 3
- 1
tuoheng_oidc_admin/src/main/resources/mapper/ClientUserMapper.xml View File

@@ -40,7 +40,9 @@
</select>
<select id="selectByTenantIdAndPage" resultType="com.tuoheng.model.vo.UserVo">
SELECT
u.*,
u.username,
u.create_time,
u.update_time,
a.authority platformCode
FROM
users u,

BIN
tuoheng_oidc_admin/target/classes/com/tuoheng/common/BaseQuery.class View File


BIN
tuoheng_oidc_admin/target/classes/com/tuoheng/service/impl/ClientUserServiceImpl.class View File


Loading…
Cancel
Save