YJMonthDataVO.java 1.3 KB
package com.skua.modules.dataAnalysis.vo;

import com.skua.tool.util.JSUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 药剂月消耗数据
 */
@Data
@ApiModel(value="药剂月消耗数据", description="药剂月消耗数据")
public class YJMonthDataVO {
    @ApiModelProperty(value = "药剂名称")
    private String  yjName;
    @ApiModelProperty(value = "药剂Code")
    private String  yjCode;
    @ApiModelProperty(value = "年目标")
    private String  yearTarge;//年目标
    @ApiModelProperty(value = "月目标")
    private String  monthTarge;//月目标
    @ApiModelProperty(value = "本月值")
    private String  value;//本月值
    @ApiModelProperty(value = "环比")
    private String  valueHB;//环比
    @ApiModelProperty(value = "同比")
    private String  valueTB;//同比

    public String getMonthTarge() {
        monthTarge = JSUtils.divide(yearTarge,12);
        return monthTarge;
    }

    public YJMonthDataVO(){
    }

    public YJMonthDataVO(String yjName, String yjCode, String yearTarge, String value, String valueHB, String valueTB) {
        this.yjName = yjName;
        this.yjCode = yjCode;
        this.yearTarge = yearTarge;
        this.value = value;
        this.valueHB = valueHB;
        this.valueTB = valueTB;
    }
}