资源管理添加环境以及到期时间
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -104,4 +104,14 @@ public class ZtComputerSourceQo extends BaseQo {
|
|||||||
|
|
||||||
private String ip;
|
private String ip;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 使用环境:生产环境/备用环境/开发环境/测试环境/UAT环境/办公环境
|
||||||
|
*/
|
||||||
|
private String useEnv;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 到期时间
|
||||||
|
*/
|
||||||
|
private Date expireDate;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user