TbAsset.java 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. package com.ruoyi.asset.domain;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import com.baomidou.mybatisplus.annotation.TableField;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import com.baomidou.mybatisplus.annotation.TableName;
  7. import com.fasterxml.jackson.annotation.JsonFormat;
  8. import org.apache.commons.lang3.builder.ToStringBuilder;
  9. import org.apache.commons.lang3.builder.ToStringStyle;
  10. import com.ruoyi.common.annotation.Excel;
  11. import com.ruoyi.common.core.domain.BaseEntity;
  12. /**
  13. * 资产信息对象 tb_asset
  14. *
  15. * @author 原动力
  16. * @date 2023-03-27
  17. */
  18. @TableName("tb_asset")
  19. public class TbAsset extends BaseEntity
  20. {
  21. private static final long serialVersionUID = 1L;
  22. /** 编号 */
  23. @Excel(name = "编号")
  24. @TableId("id")
  25. private Long id;
  26. /** 条形码 */
  27. @Excel(name = "条形码")
  28. @TableField("bar_code")
  29. private String barCode;
  30. /** 资产编号 */
  31. @Excel(name = "资产编号")
  32. @TableField("number")
  33. private String number;
  34. /** 资产名称 */
  35. @Excel(name = "资产名称")
  36. @TableField("name")
  37. private String name;
  38. /** 资产种类 */
  39. @Excel(name = "资产种类")
  40. @TableField("kind")
  41. private String kind;
  42. /** 资产分类编号 */
  43. @Excel(name = "资产分类编号")
  44. @TableField("category_number")
  45. private String categoryNumber;
  46. /** 资产原值 */
  47. @Excel(name = "资产原值")
  48. @TableField("amount")
  49. private BigDecimal amount;
  50. /** 数量 */
  51. @Excel(name = "数量")
  52. @TableField("quantity")
  53. private Long quantity;
  54. /** 数量计量单位 */
  55. @Excel(name = "数量计量单位")
  56. @TableField("quantity_unit")
  57. private String quantityUnit;
  58. /** 取得时间 */
  59. @JsonFormat(pattern = "yyyy-MM-dd")
  60. @Excel(name = "取得时间", width = 30, dateFormat = "yyyy-MM-dd")
  61. @TableField("build_date")
  62. private Date buildDate;
  63. /** 存放地点 */
  64. @Excel(name = "存放地点")
  65. @TableField("place_name")
  66. private String placeName;
  67. /** 资产用途 */
  68. @Excel(name = "资产用途")
  69. @TableField("purpose")
  70. private String purpose;
  71. /** 使用部门ID */
  72. @Excel(name = "使用部门ID")
  73. @TableField("dept_id")
  74. private Long deptId;
  75. /** 登记人 */
  76. @Excel(name = "登记人")
  77. @TableField("registrant")
  78. private String registrant;
  79. /** 规格型号 */
  80. @Excel(name = "规格型号")
  81. @TableField("specifications_model")
  82. private String specificationsModel;
  83. /** 生产厂商 */
  84. @Excel(name = "生产厂商")
  85. @TableField("manufacturer")
  86. private String manufacturer;
  87. /** 品牌型号 */
  88. @Excel(name = "品牌型号")
  89. @TableField("brand")
  90. private String brand;
  91. /** 供应商 */
  92. @Excel(name = "供应商")
  93. @TableField("supplier")
  94. private String supplier;
  95. /** 状态 */
  96. @Excel(name = "状态")
  97. @TableField("status")
  98. private Long status;
  99. public void setId(Long id)
  100. {
  101. this.id = id;
  102. }
  103. public Long getId()
  104. {
  105. return id;
  106. }
  107. public void setBarCode(String barCode)
  108. {
  109. this.barCode = barCode;
  110. }
  111. public String getBarCode()
  112. {
  113. return barCode;
  114. }
  115. public void setNumber(String number)
  116. {
  117. this.number = number;
  118. }
  119. public String getNumber()
  120. {
  121. return number;
  122. }
  123. public void setName(String name)
  124. {
  125. this.name = name;
  126. }
  127. public String getName()
  128. {
  129. return name;
  130. }
  131. public void setKind(String kind)
  132. {
  133. this.kind = kind;
  134. }
  135. public String getKind()
  136. {
  137. return kind;
  138. }
  139. public void setCategoryNumber(String categoryNumber)
  140. {
  141. this.categoryNumber = categoryNumber;
  142. }
  143. public String getCategoryNumber()
  144. {
  145. return categoryNumber;
  146. }
  147. public void setAmount(BigDecimal amount)
  148. {
  149. this.amount = amount;
  150. }
  151. public BigDecimal getAmount()
  152. {
  153. return amount;
  154. }
  155. public void setQuantity(Long quantity)
  156. {
  157. this.quantity = quantity;
  158. }
  159. public Long getQuantity()
  160. {
  161. return quantity;
  162. }
  163. public String getQuantityUnit() {
  164. return quantityUnit;
  165. }
  166. public void setQuantityUnit(String quantityUnit) {
  167. this.quantityUnit = quantityUnit;
  168. }
  169. public void setBuildDate(Date buildDate)
  170. {
  171. this.buildDate = buildDate;
  172. }
  173. public Date getBuildDate()
  174. {
  175. return buildDate;
  176. }
  177. public void setPlaceName(String placeName)
  178. {
  179. this.placeName = placeName;
  180. }
  181. public String getPlaceName()
  182. {
  183. return placeName;
  184. }
  185. public void setPurpose(String purpose)
  186. {
  187. this.purpose = purpose;
  188. }
  189. public String getPurpose()
  190. {
  191. return purpose;
  192. }
  193. public void setDeptId(Long deptId)
  194. {
  195. this.deptId = deptId;
  196. }
  197. public Long getDeptId()
  198. {
  199. return deptId;
  200. }
  201. public void setRegistrant(String registrant)
  202. {
  203. this.registrant = registrant;
  204. }
  205. public String getRegistrant()
  206. {
  207. return registrant;
  208. }
  209. public void setSpecificationsModel(String specificationsModel)
  210. {
  211. this.specificationsModel = specificationsModel;
  212. }
  213. public String getSpecificationsModel()
  214. {
  215. return specificationsModel;
  216. }
  217. public void setManufacturer(String manufacturer)
  218. {
  219. this.manufacturer = manufacturer;
  220. }
  221. public String getManufacturer()
  222. {
  223. return manufacturer;
  224. }
  225. public void setBrand(String brand)
  226. {
  227. this.brand = brand;
  228. }
  229. public String getBrand()
  230. {
  231. return brand;
  232. }
  233. public void setSupplier(String supplier)
  234. {
  235. this.supplier = supplier;
  236. }
  237. public String getSupplier()
  238. {
  239. return supplier;
  240. }
  241. public void setStatus(Long status)
  242. {
  243. this.status = status;
  244. }
  245. public Long getStatus()
  246. {
  247. return status;
  248. }
  249. @Override
  250. public String toString() {
  251. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  252. .append("id", getId())
  253. .append("barCode", getBarCode())
  254. .append("number", getNumber())
  255. .append("name", getName())
  256. .append("kind", getKind())
  257. .append("categoryNumber", getCategoryNumber())
  258. .append("amount", getAmount())
  259. .append("quantity", getQuantity())
  260. .append("buildDate", getBuildDate())
  261. .append("placeName", getPlaceName())
  262. .append("purpose", getPurpose())
  263. .append("deptId", getDeptId())
  264. .append("registrant", getRegistrant())
  265. .append("specificationsModel", getSpecificationsModel())
  266. .append("remark", getRemark())
  267. .append("manufacturer", getManufacturer())
  268. .append("brand", getBrand())
  269. .append("supplier", getSupplier())
  270. .append("status", getStatus())
  271. .toString();
  272. }
  273. }