| | |
| | | `item_no` VARCHAR(36) COMMENT '指标编码' , |
| | | `item_name` VARCHAR(36) COMMENT '指标名称' , |
| | | `item_type` VARCHAR(20) COMMENT '指标类型' , |
| | | `item_category` VARCHAR(20) COMMENT '指标分类' , |
| | | `item_category` VARCHAR(36) COMMENT '指标分类' , |
| | | `coefficient` decimal(10, 4) COMMENT '转换系数', |
| | | `precision` int COMMENT '指标精度', |
| | | `time_granularity` VARCHAR(10) COMMENT '时间粒度' , |
对比新文件 |
| | |
| | | package com.iailab.module.data.common.enums; |
| | | |
| | | /** |
| | | * @author PanZhibao |
| | | * @Description |
| | | * @createTime 2024年05月27日 |
| | | */ |
| | | public interface IndTimeRangeConst { |
| | | |
| | | /** |
| | | * 自定义 |
| | | */ |
| | | String CUSTOM = "CUSTOM"; |
| | | |
| | | /** |
| | | * 今天 |
| | | */ |
| | | String TODAY = "TODAY"; |
| | | |
| | | /** |
| | | * 昨天 |
| | | */ |
| | | String YESTERDAY = "YESTERDAY"; |
| | | |
| | | /** |
| | | * 最近7天 |
| | | */ |
| | | String LAST_DAY_7 = "LAST_DAY_7"; |
| | | |
| | | /** |
| | | * 最近30天 |
| | | */ |
| | | String LAST_DAY_30 = "LAST_DAY_30"; |
| | | |
| | | /** |
| | | * 当前月 |
| | | */ |
| | | String THIS_MONTH = "THIS_MONTH"; |
| | | |
| | | /** |
| | | * 最近12个月 |
| | | */ |
| | | String LAST_MONTH_12 = "LAST_MONTH_12"; |
| | | |
| | | /** |
| | | * 当年月份 |
| | | */ |
| | | String THIS_YEAR_MONTH = "THIS_YEAR_MONTH"; |
| | | |
| | | /** |
| | | * 去年 |
| | | */ |
| | | String LAST_YEAR = "LAST_YEAR"; |
| | | |
| | | /** |
| | | * 今年 |
| | | */ |
| | | String THIS_YEAR = "THIS_YEAR"; |
| | | |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.data.common.enums; |
| | | |
| | | /** |
| | | * @author PanZhibao |
| | | * @Description |
| | | * @createTime 2024年05月25日 |
| | | */ |
| | | public enum IndTimeRangeEnum { |
| | | |
| | | LAST_YEAR("LAST_YEAR", "LAST_YEAR"), |
| | | THIS_YEAR("THIS_YEAR", "THIS_YEAR"), |
| | | LAST_MONTH_12("LAST_MONTH_12", "LAST_MONTH_12"), |
| | | YESTERDAY("YESTERDAY", "YESTERDAY"), |
| | | TODAY("TODAY", "TODAY"), |
| | | LAST_DAY_7("LAST_DAY_7", "LAST_DAY_7"), |
| | | LAST_DAY_30("LAST_DAY_30", "LAST_DAY_30"); |
| | | |
| | | private String code; |
| | | |
| | | private String name; |
| | | |
| | | IndTimeRangeEnum(String code, String name) { |
| | | this.code = code; |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | } |
| | |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * 指标类型 |
| | | * |
| | | * @author PanZhibao |
| | | * @Description |
| | | * @createTime 2023年05月03日 19:10:00 |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @DSTransactional(rollbackFor= Exception.class) |
| | | public void create(IndItemSaveReqVO createReqVO) { |
| | | IndItemEntity entity = BeanUtils.toBean(createReqVO, IndItemEntity.class); |
| | |
| | | |
| | | @Override |
| | | public List<DaPointDTO> list(Map<String, Object> params) { |
| | | Object page = params.get("page"); |
| | | Object limit = params.get("limit"); |
| | | Object pointType = params.get("pointType"); |
| | | List<String> pointNos = new ArrayList<>(); |
| | | if (params.get("pointNos") != null) { |
| | |
| | | - t_ind_item_category |
| | | - t_ind_item |
| | | - t_ind_item_atom |
| | | - t_ind_item_der |
| | | - t_ind_item_cal |
| | | app: |
| | | app-key: data |
| | | app-secret: 85b0df7edc3df3611913df34ed695011 |