forked from rongchao/epmet-cloud-rizhao
5 changed files with 109 additions and 1 deletions
@ -0,0 +1,29 @@ |
|||||
|
package com.epmet.dto.indexcal; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 指标计算通用入参DTO |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2020/8/26 10:49 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CalculateCommonFormDTO implements Serializable { |
||||
|
/** |
||||
|
* 月份id: yyyyMM |
||||
|
*/ |
||||
|
private String monthId; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
public CalculateCommonFormDTO(String customerId, String monthId) { |
||||
|
this.monthId=monthId; |
||||
|
this.customerId=customerId; |
||||
|
} |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.epmet.dto.indexcal; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* 最值通用DTO |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2020/8/26 10:39 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ExtremeValueCommonDTO implements Serializable { |
||||
|
|
||||
|
/** |
||||
|
* 最小值 |
||||
|
*/ |
||||
|
private BigDecimal minValue; |
||||
|
|
||||
|
/** |
||||
|
* 最小值 |
||||
|
*/ |
||||
|
private BigDecimal maxValue; |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.service.indexcal; |
||||
|
|
||||
|
import com.epmet.dto.indexcal.CalculateCommonFormDTO; |
||||
|
|
||||
|
/** |
||||
|
* 网格相关指标计算 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2020/8/26 10:34 |
||||
|
*/ |
||||
|
public interface GridCorreLationService { |
||||
|
|
||||
|
/** |
||||
|
* @return java.lang.Boolean |
||||
|
* @param formDTO |
||||
|
* @author yinzuomei |
||||
|
* @description 网格相关,分值计算 |
||||
|
* @Date 2020/8/26 10:51 |
||||
|
**/ |
||||
|
Boolean calculateGridCorreLation(CalculateCommonFormDTO formDTO); |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package com.epmet.service.indexcal.impl; |
||||
|
|
||||
|
import com.epmet.dto.indexcal.CalculateCommonFormDTO; |
||||
|
import com.epmet.service.indexcal.GridCorreLationService; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* 网格相关service |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2020/8/26 10:35 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class GridCorreLationServiceImpl implements GridCorreLationService { |
||||
|
|
||||
|
/** |
||||
|
* @param formDTO |
||||
|
* @return java.lang.Boolean |
||||
|
* @author yinzuomei |
||||
|
* @description 网格相关,分值计算 |
||||
|
* @Date 2020/8/26 10:51 |
||||
|
**/ |
||||
|
@Override |
||||
|
public Boolean calculateGridCorreLation(CalculateCommonFormDTO formDTO) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue