| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | /** 数据中心对应的接口地址 */ |
| | | private String apiUrl; |
| | | |
| | | } |
| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import com.ycl.platform.domain.query.DataCenterQuery; |
| | | import com.ycl.platform.domain.result.HK.*; |
| | | import com.ycl.platform.domain.result.UY.OneMachineFileResult; |
| | | import com.ycl.platform.domain.result.UY.RecordMetaDSumResult; |
| | | import com.ycl.platform.service.DataCenterService; |
| | | import com.ycl.system.Result; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 数据中心接口 |
| | |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="state" column="state" /> |
| | | <result property="deleted" column="deleted" /> |
| | | <result property="apiUrl" column="api_url" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectCheckRuleVo"> |
| | |
| | | |
| | | <select id="selectCheckRuleList" resultMap="CheckRuleResult"> |
| | | select cr.id, cr.rule_name, cr.rule_index, cr.rule_category, cr.rule_condition, cr.rule_description, |
| | | cr.update_time, cr.state, cr.deleted,cr.icon |
| | | cr.update_time, cr.state, cr.deleted,cr.icon, cr.api_url |
| | | from t_check_rule cr |
| | | <where> |
| | | <if test="ruleName != null and ruleName != ''"> and rule_name like concat('%', #{ruleName}, '%')</if> |