MesLineProcess.java 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. package com.jeesite.modules.mes.entity;
  2. import javax.validation.Valid;
  3. import javax.validation.constraints.Size;
  4. import com.jeesite.common.entity.Extend;
  5. import java.util.Date;
  6. import com.jeesite.common.mybatis.annotation.JoinTable;
  7. import com.jeesite.common.mybatis.annotation.JoinTable.Type;
  8. import com.fasterxml.jackson.annotation.JsonFormat;
  9. import java.util.List;
  10. import com.jeesite.common.collect.ListUtils;
  11. import com.jeesite.common.entity.DataEntity;
  12. import com.jeesite.common.mybatis.annotation.Column;
  13. import com.jeesite.common.mybatis.annotation.Table;
  14. import com.jeesite.common.mybatis.mapper.query.QueryType;
  15. /**
  16. * 生成工序表Entity
  17. * @author hzd
  18. * @version 2023-06-18
  19. */
  20. @Table(name="mes_line_process", alias="a", label="生成工序表信息", columns={
  21. @Column(name="id", attrName="id", label="编号", isPK=true),
  22. @Column(name="line_id", attrName="lineId", label="生产线id"),
  23. @Column(name="title", attrName="title", label="工序名称", queryType=QueryType.LIKE),
  24. @Column(name="remark", attrName="remark", label="备注",queryType=QueryType.LIKE),
  25. @Column(name="status", attrName="status", label="状态", comment="状态(0正常 1删除 2停用)", isUpdate=false),
  26. @Column(name="sorts", attrName="sorts", label="排序正序", isUpdateForce=true),
  27. @Column(name="create_by", attrName="createBy", label="创建人", isUpdate=false, isQuery=false),
  28. @Column(name="create_date", attrName="createDate", label="创建日期", isUpdate=false, isQuery=false, isUpdateForce=true),
  29. @Column(name="update_by", attrName="updateBy", label="修改人", isQuery=false),
  30. @Column(name="update_date", attrName="updateDate", label="修改时间", isQuery=false, isUpdateForce=true),
  31. @Column(name="oprno", attrName="oprno", label="工序号", queryType=QueryType.LIKE),
  32. @Column(name="repeat", attrName="repeat", label="重复工作"),
  33. @Column(name="quality", attrName="quality", label="防呆"),
  34. @Column(name="devices", attrName="devices", label="设备编号"),
  35. @Column(name="gzs", attrName="gzs", label="工装编号"),
  36. @Column(name="stop", attrName="stop", label="设备启动"),
  37. @Column(name="type", attrName="type", label="类型"),
  38. @Column(name="duration", attrName="duration", label="时长"),
  39. @Column(name="max_duration", attrName="maxDuration", label="最长加工时长", comment="最长加工时长(分钟)", isUpdateForce=true),
  40. @Column(name="is_pz", attrName="isPz", label="拍照"),
  41. @Column(name="is_qm", attrName="isQm", label="气密"),
  42. @Column(name="qm_num", attrName="qmNum", label="次数"),
  43. @Column(name="qm_max_times", attrName="qmMaxTimes", label="气密最大NG次数", isUpdateForce=true),
  44. @Column(name="pid", attrName="pid", label="父级ID",queryType=QueryType.EQ),
  45. },
  46. joinTable={
  47. @JoinTable(type=Type.JOIN, entity=MesLine.class, attrName="this", alias="b",
  48. on="b.id = a.line_id",
  49. columns={
  50. @Column(name="title", attrName="lineTitle", label="名称"),
  51. @Column(name="sn", attrName="lineSn", label="产线编号"),
  52. }),
  53. }, orderBy="a.sorts ASC,a.create_date ASC"
  54. )
  55. public class MesLineProcess extends DataEntity<MesLineProcess> {
  56. private static final long serialVersionUID = 1L;
  57. private String lineId; // 生产线id
  58. private String title; // 工序名称
  59. private String remark; // 备注
  60. private Integer sorts; // 排序正序
  61. private String lineTitle;
  62. private String lineSn;
  63. private String oprno;
  64. private String repeat;
  65. private String quality;
  66. private String devices;
  67. private String gzs;
  68. private Integer stop;
  69. private String stopTitle;
  70. private String pid;
  71. private Integer shiftCount;
  72. private Integer dayCount;
  73. private Integer shift5305;
  74. private Integer day5305;
  75. private Integer shift5308;
  76. private Integer day5308;
  77. private Integer shift8301;
  78. private Integer day8301;
  79. private Integer shift8302;
  80. private Integer day8302;
  81. private Integer shift7939;
  82. private Integer day7939;
  83. private Integer shift7933;
  84. private Integer day7933;
  85. private Integer shiftyn; //印尼版
  86. private Integer dayyn; //印尼版
  87. private String type;
  88. private Integer duration;
  89. private Integer maxDuration;
  90. private String isPz;
  91. private String isQm;
  92. private Integer qmNum;
  93. private Integer qmMaxTimes;
  94. //用于工位授权
  95. private String userCode;
  96. private String userProcessString;
  97. private String line;
  98. private List<MesLineProcessUser> mesLineProcessUserList = ListUtils.newArrayList(); // 子表列表
  99. public MesLineProcess() {
  100. this(null);
  101. }
  102. public MesLineProcess(String id) {
  103. super(id);
  104. }
  105. @Size(min=0, max=64, message="生产线id长度不能超过 64 个字符")
  106. public String getLineId() {
  107. return lineId;
  108. }
  109. public void setLineId(String lineId) {
  110. this.lineId = lineId;
  111. }
  112. @Size(min=0, max=100, message="工序名称长度不能超过 100 个字符")
  113. public String getTitle() {
  114. return title;
  115. }
  116. public void setTitle(String title) {
  117. this.title = title;
  118. }
  119. @Size(min=0, max=100, message="工序号长度不能超过 100 个字符")
  120. public String getOprno() {
  121. return oprno;
  122. }
  123. public void setOprno(String oprno) {
  124. this.oprno = oprno;
  125. }
  126. @Size(min=0, max=255, message="备注长度不能超过 255 个字符")
  127. public String getRemark() {
  128. return remark;
  129. }
  130. public void setRemark(String remark) {
  131. this.remark = remark;
  132. }
  133. public Integer getSorts() {
  134. return sorts;
  135. }
  136. public void setSorts(Integer sorts) {
  137. this.sorts = sorts;
  138. }
  139. public String getLineTitle() {
  140. return lineTitle;
  141. }
  142. public void setLineTitle(String lineTitle) {
  143. this.lineTitle = lineTitle;
  144. }
  145. public String getRepeat() {
  146. return repeat;
  147. }
  148. public void setRepeat(String repeat) {
  149. this.repeat = repeat;
  150. }
  151. public String getQuality() {
  152. return quality;
  153. }
  154. public void setQuality(String quality) {
  155. this.quality = quality;
  156. }
  157. public String getDevices() {
  158. return devices;
  159. }
  160. public void setDevices(String devices) {
  161. this.devices = devices;
  162. }
  163. public String getGzs() {
  164. return gzs;
  165. }
  166. public void setGzs(String gzs) {
  167. this.gzs = gzs;
  168. }
  169. public String getLineSn() {
  170. return lineSn;
  171. }
  172. public void setLineSn(String lineSn) {
  173. this.lineSn = lineSn;
  174. }
  175. public Integer getStop() {
  176. return stop;
  177. }
  178. public void setStop(Integer stop) {
  179. this.stop = stop;
  180. }
  181. public String getPid() {
  182. return pid;
  183. }
  184. public void setPid(String pid) {
  185. this.pid = pid;
  186. }
  187. public Integer getShiftCount() {
  188. return shiftCount;
  189. }
  190. public void setShiftCount(Integer shiftCount) {
  191. this.shiftCount = shiftCount;
  192. }
  193. public Integer getDayCount() {
  194. return dayCount;
  195. }
  196. public void setDayCount(Integer dayCount) {
  197. this.dayCount = dayCount;
  198. }
  199. public Integer getShift5305() {
  200. return shift5305;
  201. }
  202. public void setShift5305(Integer shift5305) {
  203. this.shift5305 = shift5305;
  204. }
  205. public Integer getDay5305() {
  206. return day5305;
  207. }
  208. public void setDay5305(Integer day5305) {
  209. this.day5305 = day5305;
  210. }
  211. public Integer getShift5308() {
  212. return shift5308;
  213. }
  214. public void setShift5308(Integer shift5308) {
  215. this.shift5308 = shift5308;
  216. }
  217. public Integer getDay5308() {
  218. return day5308;
  219. }
  220. public void setDay5308(Integer day5308) {
  221. this.day5308 = day5308;
  222. }
  223. public Integer getShift8301() {
  224. return shift8301;
  225. }
  226. public void setShift8301(Integer shift8301) {
  227. this.shift8301 = shift8301;
  228. }
  229. public Integer getDay8301() {
  230. return day8301;
  231. }
  232. public void setDay8301(Integer day8301) {
  233. this.day8301 = day8301;
  234. }
  235. public Integer getShift8302() {
  236. return shift8302;
  237. }
  238. public void setShift8302(Integer shift8302) {
  239. this.shift8302 = shift8302;
  240. }
  241. public Integer getDay8302() {
  242. return day8302;
  243. }
  244. public void setDay8302(Integer day8302) {
  245. this.day8302 = day8302;
  246. }
  247. public Integer getShift7939() {
  248. return shift7939;
  249. }
  250. public void setShift7939(Integer shift7939) {
  251. this.shift7939 = shift7939;
  252. }
  253. public Integer getDay7939() {
  254. return day7939;
  255. }
  256. public void setDay7939(Integer day7939) {
  257. this.day7939 = day7939;
  258. }
  259. public Integer getShift7933() {
  260. return shift7933;
  261. }
  262. public void setShift7933(Integer shift7933) {
  263. this.shift7933 = shift7933;
  264. }
  265. public Integer getDay7933() {
  266. return day7933;
  267. }
  268. public void setDay7933(Integer day7933) {
  269. this.day7933 = day7933;
  270. }
  271. public String getStopTitle() {
  272. return stopTitle;
  273. }
  274. public void setStopTitle(String stopTitle) {
  275. this.stopTitle = stopTitle;
  276. }
  277. public Integer getShiftyn() {
  278. return shiftyn;
  279. }
  280. public void setShiftyn(Integer shiftyn) {
  281. this.shiftyn = shiftyn;
  282. }
  283. public Integer getDayyn() {
  284. return dayyn;
  285. }
  286. public void setDayyn(Integer dayyn) {
  287. this.dayyn = dayyn;
  288. }
  289. public String getUserCode() {
  290. return userCode;
  291. }
  292. public void setUserCode(String userCode) {
  293. this.userCode = userCode;
  294. }
  295. public String getUserProcessString() {
  296. return userProcessString;
  297. }
  298. public void setUserProcessString(String userProcessString) {
  299. this.userProcessString = userProcessString;
  300. }
  301. public String getLine() {
  302. return line;
  303. }
  304. public void setLine(String line) {
  305. this.line = line;
  306. }
  307. public List<MesLineProcessUser> getMesLineProcessUserList() {
  308. return mesLineProcessUserList;
  309. }
  310. public void setMesLineProcessUserList(List<MesLineProcessUser> mesLineProcessUserList) {
  311. this.mesLineProcessUserList = mesLineProcessUserList;
  312. }
  313. public Integer getDuration() {
  314. return duration;
  315. }
  316. public void setDuration(Integer duration) {
  317. this.duration = duration;
  318. }
  319. public Integer getMaxDuration() {
  320. return maxDuration;
  321. }
  322. public void setMaxDuration(Integer maxDuration) {
  323. this.maxDuration = maxDuration;
  324. }
  325. public String getType() {
  326. return type;
  327. }
  328. public void setType(String type) {
  329. this.type = type;
  330. }
  331. public String getIsPz() {
  332. return isPz;
  333. }
  334. public void setIsPz(String isPz) {
  335. this.isPz = isPz;
  336. }
  337. public String getIsQm() {
  338. return isQm;
  339. }
  340. public void setIsQm(String isQm) {
  341. this.isQm = isQm;
  342. }
  343. public Integer getQmNum() {
  344. return qmNum;
  345. }
  346. public void setQmNum(Integer qmNum) {
  347. this.qmNum = qmNum;
  348. }
  349. public Integer getQmMaxTimes() {
  350. return qmMaxTimes;
  351. }
  352. public void setQmMaxTimes(Integer qmMaxTimes) {
  353. this.qmMaxTimes = qmMaxTimes;
  354. }
  355. }