MesLineProcess.java 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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="pid", attrName="pid", label="父级ID",queryType=QueryType.EQ),
  38. },
  39. joinTable={
  40. @JoinTable(type=Type.JOIN, entity=MesLine.class, attrName="this", alias="b",
  41. on="b.id = a.line_id",
  42. columns={
  43. @Column(name="title", attrName="lineTitle", label="名称"),
  44. @Column(name="sn", attrName="lineSn", label="产线编号"),
  45. }),
  46. }, orderBy="a.sorts ASC,a.create_date ASC"
  47. )
  48. public class MesLineProcess extends DataEntity<MesLineProcess> {
  49. private static final long serialVersionUID = 1L;
  50. private String lineId; // 生产线id
  51. private String title; // 工序名称
  52. private String remark; // 备注
  53. private Integer sorts; // 排序正序
  54. private String lineTitle;
  55. private String lineSn;
  56. private String oprno;
  57. private String repeat;
  58. private String quality;
  59. private String devices;
  60. private String gzs;
  61. private Integer stop;
  62. private String stopTitle;
  63. private String pid;
  64. private Integer shiftCount;
  65. private Integer dayCount;
  66. private Integer shiftOkCount;
  67. private Integer shiftNgCount;
  68. private Integer shift5305;
  69. private Integer day5305;
  70. private Integer shift5308;
  71. private Integer day5308;
  72. private Integer shift8301;
  73. private Integer day8301;
  74. private Integer shift8302;
  75. private Integer day8302;
  76. private Integer shift7939;
  77. private Integer day7939;
  78. private Integer shift7933;
  79. private Integer day7933;
  80. private Integer shiftyn; //印尼版
  81. private Integer dayyn; //印尼版
  82. //用于工位授权
  83. private String userCode;
  84. private String userProcessString;
  85. private String line;
  86. private List<MesLineProcessUser> mesLineProcessUserList = ListUtils.newArrayList(); // 子表列表
  87. @Size(min=0, max=64, message="生产线id长度不能超过 64 个字符")
  88. public String getLineId() {
  89. return lineId;
  90. }
  91. public void setLineId(String lineId) {
  92. this.lineId = lineId;
  93. }
  94. @Size(min=0, max=100, message="工序名称长度不能超过 100 个字符")
  95. public String getTitle() {
  96. return title;
  97. }
  98. public void setTitle(String title) {
  99. this.title = title;
  100. }
  101. @Size(min=0, max=100, message="工序号长度不能超过 100 个字符")
  102. public String getOprno() {
  103. return oprno;
  104. }
  105. public void setOprno(String oprno) {
  106. this.oprno = oprno;
  107. }
  108. @Size(min=0, max=255, message="备注长度不能超过 255 个字符")
  109. public String getRemark() {
  110. return remark;
  111. }
  112. public void setRemark(String remark) {
  113. this.remark = remark;
  114. }
  115. public Integer getSorts() {
  116. return sorts;
  117. }
  118. public void setSorts(Integer sorts) {
  119. this.sorts = sorts;
  120. }
  121. public String getLineTitle() {
  122. return lineTitle;
  123. }
  124. public void setLineTitle(String lineTitle) {
  125. this.lineTitle = lineTitle;
  126. }
  127. public String getRepeat() {
  128. return repeat;
  129. }
  130. public void setRepeat(String repeat) {
  131. this.repeat = repeat;
  132. }
  133. public String getQuality() {
  134. return quality;
  135. }
  136. public void setQuality(String quality) {
  137. this.quality = quality;
  138. }
  139. public String getDevices() {
  140. return devices;
  141. }
  142. public void setDevices(String devices) {
  143. this.devices = devices;
  144. }
  145. public String getGzs() {
  146. return gzs;
  147. }
  148. public void setGzs(String gzs) {
  149. this.gzs = gzs;
  150. }
  151. public String getLineSn() {
  152. return lineSn;
  153. }
  154. public void setLineSn(String lineSn) {
  155. this.lineSn = lineSn;
  156. }
  157. public Integer getStop() {
  158. return stop;
  159. }
  160. public void setStop(Integer stop) {
  161. this.stop = stop;
  162. }
  163. public String getPid() {
  164. return pid;
  165. }
  166. public void setPid(String pid) {
  167. this.pid = pid;
  168. }
  169. public Integer getShiftCount() {
  170. return shiftCount;
  171. }
  172. public void setShiftCount(Integer shiftCount) {
  173. this.shiftCount = shiftCount;
  174. }
  175. public Integer getDayCount() {
  176. return dayCount;
  177. }
  178. public void setDayCount(Integer dayCount) {
  179. this.dayCount = dayCount;
  180. }
  181. public Integer getShiftOkCount() {
  182. return shiftOkCount;
  183. }
  184. public void setShiftOkCount(Integer shiftOkCount) {
  185. this.shiftOkCount = shiftOkCount;
  186. }
  187. public Integer getShiftNgCount() {
  188. return shiftNgCount;
  189. }
  190. public void setShiftNgCount(Integer shiftNgCount) {
  191. this.shiftNgCount = shiftNgCount;
  192. }
  193. public Integer getShift5305() {
  194. return shift5305;
  195. }
  196. public void setShift5305(Integer shift5305) {
  197. this.shift5305 = shift5305;
  198. }
  199. public Integer getDay5305() {
  200. return day5305;
  201. }
  202. public void setDay5305(Integer day5305) {
  203. this.day5305 = day5305;
  204. }
  205. public Integer getShift5308() {
  206. return shift5308;
  207. }
  208. public void setShift5308(Integer shift5308) {
  209. this.shift5308 = shift5308;
  210. }
  211. public Integer getDay5308() {
  212. return day5308;
  213. }
  214. public void setDay5308(Integer day5308) {
  215. this.day5308 = day5308;
  216. }
  217. public Integer getShift8301() {
  218. return shift8301;
  219. }
  220. public void setShift8301(Integer shift8301) {
  221. this.shift8301 = shift8301;
  222. }
  223. public Integer getDay8301() {
  224. return day8301;
  225. }
  226. public void setDay8301(Integer day8301) {
  227. this.day8301 = day8301;
  228. }
  229. public Integer getShift8302() {
  230. return shift8302;
  231. }
  232. public void setShift8302(Integer shift8302) {
  233. this.shift8302 = shift8302;
  234. }
  235. public Integer getDay8302() {
  236. return day8302;
  237. }
  238. public void setDay8302(Integer day8302) {
  239. this.day8302 = day8302;
  240. }
  241. public Integer getShift7939() {
  242. return shift7939;
  243. }
  244. public void setShift7939(Integer shift7939) {
  245. this.shift7939 = shift7939;
  246. }
  247. public Integer getDay7939() {
  248. return day7939;
  249. }
  250. public void setDay7939(Integer day7939) {
  251. this.day7939 = day7939;
  252. }
  253. public Integer getShift7933() {
  254. return shift7933;
  255. }
  256. public void setShift7933(Integer shift7933) {
  257. this.shift7933 = shift7933;
  258. }
  259. public Integer getDay7933() {
  260. return day7933;
  261. }
  262. public void setDay7933(Integer day7933) {
  263. this.day7933 = day7933;
  264. }
  265. public String getStopTitle() {
  266. return stopTitle;
  267. }
  268. public void setStopTitle(String stopTitle) {
  269. this.stopTitle = stopTitle;
  270. }
  271. public Integer getShiftyn() {
  272. return shiftyn;
  273. }
  274. public void setShiftyn(Integer shiftyn) {
  275. this.shiftyn = shiftyn;
  276. }
  277. public Integer getDayyn() {
  278. return dayyn;
  279. }
  280. public void setDayyn(Integer dayyn) {
  281. this.dayyn = dayyn;
  282. }
  283. public String getUserCode() {
  284. return userCode;
  285. }
  286. public void setUserCode(String userCode) {
  287. this.userCode = userCode;
  288. }
  289. public String getUserProcessString() {
  290. return userProcessString;
  291. }
  292. public void setUserProcessString(String userProcessString) {
  293. this.userProcessString = userProcessString;
  294. }
  295. public String getLine() {
  296. return line;
  297. }
  298. public void setLine(String line) {
  299. this.line = line;
  300. }
  301. public List<MesLineProcessUser> getMesLineProcessUserList() {
  302. return mesLineProcessUserList;
  303. }
  304. public void setMesLineProcessUserList(List<MesLineProcessUser> mesLineProcessUserList) {
  305. this.mesLineProcessUserList = mesLineProcessUserList;
  306. }
  307. }