HxpStock.java 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. package com.zd.chemical.domain;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import com.zd.common.core.annotation.Excel;
  4. import com.zd.common.core.web.domain.BaseEntity;
  5. import io.swagger.annotations.ApiModel;
  6. import io.swagger.annotations.ApiModelProperty;
  7. import org.hibernate.validator.constraints.Length;
  8. import javax.validation.constraints.NotBlank;
  9. import javax.validation.constraints.NotEmpty;
  10. import javax.validation.constraints.NotNull;
  11. import java.math.BigDecimal;
  12. import java.util.Date;
  13. /**
  14. * 库存管理对象 hxp_stock
  15. *
  16. * @author liubo
  17. * @date 2022-06-17
  18. */
  19. @ApiModel("库存管理")
  20. public class HxpStock extends BaseEntity {
  21. private static final long serialVersionUID = 1L;
  22. /**
  23. * 主键id
  24. */
  25. @ApiModelProperty(value = "${comment}")
  26. private Long id;
  27. /**
  28. * 化学品机柜关联表id
  29. */
  30. @NotNull(message = "化学品机柜关联表id不能为空")
  31. @ApiModelProperty(required = true, value = "化学品机柜关联表id")
  32. private Long joinId;
  33. @ApiModelProperty(required = true, value = "机柜id")
  34. private Long cabinetId;
  35. /**
  36. * 1-领用化学品 2-化学品入库 3-化学品出库 4-归还化学品 5-RFID标签更换 6-查询化学品
  37. */
  38. private Integer qType = 0;
  39. /**
  40. * 化学品编号
  41. */
  42. @NotNull(message = "化学品编号不能为空")
  43. @ApiModelProperty(required = true, value = "化学品编号")
  44. private String chemicalNum;
  45. /**
  46. * 化学品名字
  47. */
  48. @NotNull(message = "化学品名字不能为空")
  49. @ApiModelProperty(required = true, value = "化学品名字")
  50. private String chemicalName;
  51. /**
  52. * 机柜编号
  53. */
  54. @NotNull(message = "机柜编号不能为空")
  55. @ApiModelProperty(required = true, value = "机柜编号")
  56. private String cabinetNum;
  57. /**
  58. * 机柜名称
  59. */
  60. @NotNull(message = "机柜名称不能为空")
  61. @ApiModelProperty(required = true, value = "机柜名称")
  62. private String cabinetName;
  63. /**
  64. * 化学品分类
  65. */
  66. @NotNull(message = "化学品分类不能为空")
  67. @ApiModelProperty(required = true, value = "化学品分类ID")
  68. private Long chemicalClassify;
  69. @ApiModelProperty(required = true, value = "化学品分类名称")
  70. private String classifyName;
  71. @ApiModelProperty(required = true, value = "化学品属性名称")
  72. private String classifyAttribute;
  73. /**
  74. * 库存状态(1 入库,2 用结出库,3 作废出库)
  75. */
  76. @NotNull(message = "库存状态不能为空")
  77. @ApiModelProperty(required = true, value = "库存状态")
  78. private Integer status;
  79. /**
  80. * 化学品形态(固体,体液)
  81. */
  82. @NotNull(message = "化学品形态不能为空")
  83. @ApiModelProperty(value = "化学品形态")
  84. private Integer chemicalShape;
  85. @ApiModelProperty(value = "化学品形态名称")
  86. private String chemicalShapeName;
  87. /**
  88. * 标签类型
  89. */
  90. @NotNull(message = "标签类型不能为空")
  91. @ApiModelProperty(required = true, value = "标签类型")
  92. private Integer labelType;
  93. @ApiModelProperty(value = "是否打印二维码标签(1是,0否)")
  94. private Integer printCode;
  95. /**
  96. * 入库方式(1 称重,2 录入)
  97. */
  98. @NotNull(message = "入库方式不能为空")
  99. @ApiModelProperty(required = true, value = "入库方式(1 称重,2 录入)")
  100. private Integer joinType;
  101. /**
  102. * 入库人ID
  103. */
  104. @Excel(name = "入库人ID")
  105. @ApiModelProperty(value = "入库人ID")
  106. private Long joinUserId;
  107. /**
  108. * 入库时间
  109. */
  110. @JsonFormat(pattern = "yyyy-MM-dd")
  111. @ApiModelProperty(value = "入库时间")
  112. private Date joinTime;
  113. /**
  114. * 过期时间
  115. */
  116. @JsonFormat(pattern = "yyyy-MM-dd")
  117. @NotNull(message = "过期时间不能为空")
  118. @ApiModelProperty(required = true, value = "过期时间")
  119. private Date expirationTime;
  120. /**
  121. * 计量方式(1是重量,2是体积,3是个数)
  122. */
  123. @NotNull(message = "计量方式不能为空")
  124. @ApiModelProperty(required = true, value = "计量方式")
  125. private Integer measuringMethod;
  126. /**
  127. * 单位(mg,g,kg,t)
  128. */
  129. @NotBlank(message = "单位不能为空")
  130. @Length(message = "单位长度不能超过5")
  131. @ApiModelProperty(value = "单位")
  132. private String chemicalUnit;
  133. /**
  134. * 验证方式(1是单人验证,2是双人双卡)
  135. */
  136. @NotNull(message = "验证方式不能为空")
  137. @ApiModelProperty(required = true, value = "验证方式(1是单人验证,2是双人双卡)")
  138. private Integer verification;
  139. /**
  140. * 别名
  141. */
  142. @ApiModelProperty(value = "别名")
  143. private String anotherName;
  144. /**
  145. * cas号
  146. */
  147. @ApiModelProperty(value = "cas号")
  148. private String casNum;
  149. /**
  150. * 生产厂家
  151. */
  152. @ApiModelProperty(value = "生产厂家")
  153. private String factory;
  154. /**
  155. * 纯度
  156. */
  157. @ApiModelProperty(value = "纯度")
  158. private String purity;
  159. @ApiModelProperty(value = "化学品规格")
  160. private BigDecimal chemicalAmount;
  161. /**
  162. * 化学品规格单位
  163. */
  164. @ApiModelProperty(value = "化学品规格单位")
  165. private String chemicalAmountUnit;
  166. /**
  167. * 入库第一验证人
  168. */
  169. @ApiModelProperty(value = "入库第一验证人")
  170. private Long joinOneUser;
  171. /**
  172. * 入库第二验证人
  173. */
  174. @ApiModelProperty(value = "入库第二验证人")
  175. private Long joinTwoUser;
  176. @ApiModelProperty(value = "入库视频")
  177. private String joinVideo;
  178. /**
  179. * 标签编号(二维码编号)
  180. */
  181. @ApiModelProperty(value = "标签编号")
  182. private String tagCode;
  183. /**
  184. * RFID编号(标签类型是1 时,必须有)
  185. */
  186. @ApiModelProperty(value = "RFID编号(标签类型是1 时,不能为空!)")
  187. private String rfidCode;
  188. /**
  189. * 入库重量
  190. */
  191. @ApiModelProperty(value = "入库重量")
  192. @NotNull(message = "称重数量不能为空!")
  193. private BigDecimal usages;
  194. /**
  195. * 出库人ID
  196. */
  197. @ApiModelProperty(value = "出库人ID")
  198. private Long outUserId;
  199. /**
  200. * 出库时间
  201. */
  202. @JsonFormat(pattern = "yyyy-MM-dd")
  203. @ApiModelProperty(value = "出库时间")
  204. private Date outTime;
  205. /**
  206. * 剩余库存量(出库时计算存储)
  207. * 领用归还对库存进行实时操作
  208. */
  209. @ApiModelProperty(value = "剩余库存量")
  210. private BigDecimal outUsages;
  211. @ApiModelProperty(value = "库存净重量")
  212. private BigDecimal suttle;
  213. /**
  214. * 实验室id
  215. */
  216. @Excel(name = "实验室id")
  217. @NotNull(message = "实验室id不能为空")
  218. @ApiModelProperty(required = true, value = "实验室id")
  219. private Long subId;
  220. /**
  221. * 出库第一验证人
  222. */
  223. @ApiModelProperty(value = "出库第一验证人")
  224. private Long outOneUser;
  225. /**
  226. * 出库第二验证人
  227. */
  228. @ApiModelProperty(value = "出库第二验证人")
  229. private Long outTwoUser;
  230. @ApiModelProperty(value = "MSDS-ID")
  231. private Long hazardId;
  232. @ApiModelProperty(value = "当前领用信息")
  233. private HxpUserecord hxpUserecord;
  234. @ApiModelProperty(value = "化学品操作是否需要双人验证")
  235. private HxpClassifyConfig classifyConfig;
  236. private String safeUserId;
  237. @ApiModelProperty(value = "负责人")
  238. private String safeUserName;
  239. @ApiModelProperty(value = "容器重量")
  240. private BigDecimal tare;
  241. @ApiModelProperty(value = "识别号码")
  242. private String scanCode;
  243. /**
  244. * 一体机编号
  245. */
  246. private String machineCode;
  247. public void setId(Long id) {
  248. this.id = id;
  249. }
  250. public Long getId() {
  251. return id;
  252. }
  253. public void setJoinId(Long joinId) {
  254. this.joinId = joinId;
  255. }
  256. public Long getJoinId() {
  257. return joinId;
  258. }
  259. public void setChemicalNum(String chemicalNum) {
  260. this.chemicalNum = chemicalNum;
  261. }
  262. public String getChemicalNum() {
  263. return chemicalNum;
  264. }
  265. public void setChemicalName(String chemicalName) {
  266. this.chemicalName = chemicalName;
  267. }
  268. public String getChemicalName() {
  269. return chemicalName;
  270. }
  271. public void setCabinetNum(String cabinetNum) {
  272. this.cabinetNum = cabinetNum;
  273. }
  274. public String getCabinetNum() {
  275. return cabinetNum;
  276. }
  277. public void setCabinetName(String cabinetName) {
  278. this.cabinetName = cabinetName;
  279. }
  280. public String getCabinetName() {
  281. return cabinetName;
  282. }
  283. public void setChemicalClassify(Long chemicalClassify) {
  284. this.chemicalClassify = chemicalClassify;
  285. }
  286. public Long getChemicalClassify() {
  287. return chemicalClassify;
  288. }
  289. public void setStatus(Integer status) {
  290. this.status = status;
  291. }
  292. public Integer getStatus() {
  293. return status;
  294. }
  295. public Integer getLabelType() {
  296. return labelType;
  297. }
  298. public void setLabelType(Integer labelType) {
  299. this.labelType = labelType;
  300. }
  301. public void setJoinType(Integer joinType) {
  302. this.joinType = joinType;
  303. }
  304. public Integer getJoinType() {
  305. return joinType;
  306. }
  307. public void setJoinUserId(Long joinUserId) {
  308. this.joinUserId = joinUserId;
  309. }
  310. public Long getJoinUserId() {
  311. return joinUserId;
  312. }
  313. public void setJoinTime(Date joinTime) {
  314. this.joinTime = joinTime;
  315. }
  316. public Date getJoinTime() {
  317. return joinTime;
  318. }
  319. public void setExpirationTime(Date expirationTime) {
  320. this.expirationTime = expirationTime;
  321. }
  322. public Date getExpirationTime() {
  323. return expirationTime;
  324. }
  325. public void setMeasuringMethod(Integer measuringMethod) {
  326. this.measuringMethod = measuringMethod;
  327. }
  328. public Integer getMeasuringMethod() {
  329. return measuringMethod;
  330. }
  331. public void setChemicalUnit(String chemicalUnit) {
  332. this.chemicalUnit = chemicalUnit;
  333. }
  334. public String getChemicalUnit() {
  335. return chemicalUnit;
  336. }
  337. public void setVerification(Integer verification) {
  338. this.verification = verification;
  339. }
  340. public Integer getVerification() {
  341. return verification;
  342. }
  343. public void setAnotherName(String anotherName) {
  344. this.anotherName = anotherName;
  345. }
  346. public String getAnotherName() {
  347. return anotherName;
  348. }
  349. public void setCasNum(String casNum) {
  350. this.casNum = casNum;
  351. }
  352. public String getCasNum() {
  353. return casNum;
  354. }
  355. public void setFactory(String factory) {
  356. this.factory = factory;
  357. }
  358. public String getFactory() {
  359. return factory;
  360. }
  361. public void setPurity(String purity) {
  362. this.purity = purity;
  363. }
  364. public String getPurity() {
  365. return purity;
  366. }
  367. public void setTagCode(String tagCode) {
  368. this.tagCode = tagCode;
  369. }
  370. public String getTagCode() {
  371. return tagCode;
  372. }
  373. public void setUsages(BigDecimal usages) {
  374. this.usages = usages;
  375. }
  376. public BigDecimal getUsages() {
  377. return usages;
  378. }
  379. public void setOutUserId(Long outUserId) {
  380. this.outUserId = outUserId;
  381. }
  382. public Long getOutUserId() {
  383. return outUserId;
  384. }
  385. public void setOutTime(Date outTime) {
  386. this.outTime = outTime;
  387. }
  388. public Date getOutTime() {
  389. return outTime;
  390. }
  391. public void setOutUsages(BigDecimal outUsages) {
  392. this.outUsages = outUsages;
  393. }
  394. public BigDecimal getOutUsages() {
  395. return outUsages;
  396. }
  397. public void setSubId(Long subId) {
  398. this.subId = subId;
  399. }
  400. public Long getSubId() {
  401. return subId;
  402. }
  403. public String getRfidCode() {
  404. return rfidCode;
  405. }
  406. public void setRfidCode(String rfidCode) {
  407. this.rfidCode = rfidCode;
  408. }
  409. public Long getJoinOneUser() {
  410. return joinOneUser;
  411. }
  412. public void setJoinOneUser(Long joinOneUser) {
  413. this.joinOneUser = joinOneUser;
  414. }
  415. public Long getJoinTwoUser() {
  416. return joinTwoUser;
  417. }
  418. public void setJoinTwoUser(Long joinTwoUser) {
  419. this.joinTwoUser = joinTwoUser;
  420. }
  421. public Long getOutOneUser() {
  422. return outOneUser;
  423. }
  424. public void setOutOneUser(Long outOneUser) {
  425. this.outOneUser = outOneUser;
  426. }
  427. public Long getOutTwoUser() {
  428. return outTwoUser;
  429. }
  430. public void setOutTwoUser(Long outTwoUser) {
  431. this.outTwoUser = outTwoUser;
  432. }
  433. public HxpUserecord getHxpUserecord() {
  434. return hxpUserecord;
  435. }
  436. public void setHxpUserecord(HxpUserecord hxpUserecord) {
  437. this.hxpUserecord = hxpUserecord;
  438. }
  439. public Long getHazardId() {
  440. return hazardId;
  441. }
  442. public void setHazardId(Long hazardId) {
  443. this.hazardId = hazardId;
  444. }
  445. public String getClassifyName() {
  446. return classifyName;
  447. }
  448. public void setClassifyName(String classifyName) {
  449. this.classifyName = classifyName;
  450. }
  451. public String getClassifyAttribute() {
  452. return classifyAttribute;
  453. }
  454. public void setClassifyAttribute(String classifyAttribute) {
  455. this.classifyAttribute = classifyAttribute;
  456. }
  457. public HxpClassifyConfig getClassifyConfig() {
  458. return classifyConfig;
  459. }
  460. public void setClassifyConfig(HxpClassifyConfig classifyConfig) {
  461. this.classifyConfig = classifyConfig;
  462. }
  463. public BigDecimal getChemicalAmount() {
  464. return chemicalAmount;
  465. }
  466. public void setChemicalAmount(BigDecimal chemicalAmount) {
  467. this.chemicalAmount = chemicalAmount;
  468. }
  469. public String getChemicalAmountUnit() {
  470. return chemicalAmountUnit;
  471. }
  472. public void setChemicalAmountUnit(String chemicalAmountUnit) {
  473. this.chemicalAmountUnit = chemicalAmountUnit;
  474. }
  475. public String getSafeUserName() {
  476. return safeUserName;
  477. }
  478. public void setSafeUserName(String safeUserName) {
  479. this.safeUserName = safeUserName;
  480. }
  481. public String getSafeUserId() {
  482. return safeUserId;
  483. }
  484. public void setSafeUserId(String safeUserId) {
  485. this.safeUserId = safeUserId;
  486. }
  487. public BigDecimal getTare() {
  488. return tare;
  489. }
  490. public void setTare(BigDecimal tare) {
  491. this.tare = tare;
  492. }
  493. public Integer getPrintCode() {
  494. return printCode;
  495. }
  496. public void setPrintCode(Integer printCode) {
  497. this.printCode = printCode;
  498. }
  499. public String getScanCode() {
  500. return scanCode;
  501. }
  502. public void setScanCode(String scanCode) {
  503. this.scanCode = scanCode;
  504. }
  505. public BigDecimal getSuttle() {
  506. return suttle;
  507. }
  508. public void setSuttle(BigDecimal suttle) {
  509. this.suttle = suttle;
  510. }
  511. public String getMachineCode() {
  512. return machineCode;
  513. }
  514. public void setMachineCode(String machineCode) {
  515. this.machineCode = machineCode;
  516. }
  517. public Long getCabinetId() {
  518. return cabinetId;
  519. }
  520. public void setCabinetId(Long cabinetId) {
  521. this.cabinetId = cabinetId;
  522. }
  523. public Integer getChemicalShape() {
  524. return chemicalShape;
  525. }
  526. public void setChemicalShape(Integer chemicalShape) {
  527. this.chemicalShape = chemicalShape;
  528. }
  529. public String getChemicalShapeName() {
  530. return chemicalShapeName;
  531. }
  532. public void setChemicalShapeName(String chemicalShapeName) {
  533. this.chemicalShapeName = chemicalShapeName;
  534. }
  535. public Integer getqType() {
  536. return qType;
  537. }
  538. public void setqType(Integer qType) {
  539. this.qType = qType;
  540. }
  541. public String getJoinVideo() {
  542. return joinVideo;
  543. }
  544. public void setJoinVideo(String joinVideo) {
  545. this.joinVideo = joinVideo;
  546. }
  547. }