资源管理添加环境以及到期时间

This commit is contained in:
2026-05-25 14:14:24 +08:00
parent 739e864699
commit 58e4e55a61
4 changed files with 36 additions and 1 deletions

View File

@@ -103,4 +103,14 @@ public class ZtComputerSourceDTO implements Serializable {
private String code; private String code;
private String ip; private String ip;
/**
* 使用环境:生产环境/备用环境/开发环境/测试环境/UAT环境/办公环境
*/
private String useEnv;
/**
* 到期时间
*/
private Date expireDate;
} }

View File

@@ -104,4 +104,14 @@ public class ZtComputerSource implements Serializable {
private String code; private String code;
private String ip; private String ip;
/**
* 使用环境:生产环境/备用环境/开发环境/测试环境/UAT环境/办公环境
*/
private String useEnv;
/**
* 到期时间
*/
private Date expireDate;
} }

View File

@@ -104,4 +104,14 @@ public class ZtComputerSourceQo extends BaseQo {
private String ip; private String ip;
/**
* 使用环境:生产环境/备用环境/开发环境/测试环境/UAT环境/办公环境
*/
private String useEnv;
/**
* 到期时间
*/
private Date expireDate;
} }

View File

@@ -60,7 +60,12 @@
<if test=" qo.house != null and qo.house != ''"> <if test=" qo.house != null and qo.house != ''">
and house = #{qo.house} and house = #{qo.house}
</if> </if>
order by id desc <if test="qo.useEnv != null and qo.useEnv != ''">
and use_env = #{qo.useEnv}
</if>
order by
CASE WHEN expire_date IS NOT NULL AND expire_date <![CDATA[<]]> NOW() THEN 0 ELSE 1 END ASC,
id desc
</select> </select>
</mapper> </mapper>