AgentiaStatisticsVO.java
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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;
}
}