package com.yuanchu.mom.dto; import com.baomidou.mybatisplus.annotation.TableField; import com.fasterxml.jackson.annotation.JsonFormat; import com.yuanchu.mom.annotation.ValueTableShow; import com.yuanchu.mom.common.OrderBy; import lombok.Data; import java.math.BigDecimal; import java.time.LocalDateTime; @Data public class CostStatisticsDto extends OrderBy { @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @ValueTableShow(value = 1, name = "下单时间") private LocalDateTime createTime; @ValueTableShow(value = 2, name = "委托编号") private String entrustCode; @ValueTableShow(value = 3, name = "样品名称") private String sample; @ValueTableShow(value = 4, name = "规格型号") private String model; @ValueTableShow(value = 5, name = "样品数量") private Integer num; @ValueTableShow(value = 6, name = "总价") private BigDecimal price; @ValueTableShow(value = 7, name = "试验项目") private String inspectionItem; @ValueTableShow(value = 8, name = "委托单位") private String company; @ValueTableShow(value = 9, name = "委托人") private String name; private Integer createUser; private Integer insSampleId; private Double cost;//工时 @TableField(exist = false,select = false) private String dates; public Integer getNum() { return num = 1; } }