AgentiaStatisticsVO.java 1.1 KB
package com.skua.modules.erp.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.skua.core.util.ConvertUtils;
import com.skua.tool.util.JSUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 药剂结算单详情
 */
@Data
@ApiModel(value="AgentiaStatistics药剂统计对象", description="药剂统计对象")
public class AgentiaStatisticsVO {
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "部门名称")
    private String departName;

    @ApiModelProperty(value = "物料名称")
    private String sparepartName;

    @ApiModelProperty(value = "计划数量")
    private String planNum;

    @ApiModelProperty(value = "供货数量")
    private String materialNum;

    @TableField(exist=false)
    @ApiModelProperty(value = "剩余数量")
    private String leaveNum;

    public String getLeaveNum() {
        leaveNum = JSUtils.format(ConvertUtils.getDouble(  this.planNum,0d ) - ConvertUtils.getDouble(this.materialNum,0d));
        return leaveNum;
    }
}