FormDataDto.java 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. package com.boman.domain.dto;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.alibaba.fastjson.annotation.JSONField;
  4. import java.io.Serializable;
  5. import java.util.List;
  6. /**
  7. * @author:zc
  8. * @since:2018/12/27
  9. * @createat:2018/12/274:41 PM
  10. */
  11. public class FormDataDto implements Serializable {
  12. private static final long serialVersionUID = -8653990707913725671L;
  13. @JSONField(name = "id")
  14. private Long id;
  15. @JSONField(name = "objId")
  16. private Long objId;
  17. @JSONField(name = "fixedData")
  18. private JSONObject fixedData;
  19. @JSONField(name = "table")
  20. private String table;
  21. @JSONField(name = "tableName")
  22. private String tableName;
  23. /**
  24. * 逻辑删除,数据库对应的属性名称
  25. */
  26. @JSONField(name = "logicDelName")
  27. private String logicDelName;
  28. /**
  29. * 逻辑删除,数据库对应的属性值
  30. */
  31. @JSONField(name = "logicDelValue")
  32. private String logicDelValue;
  33. /**
  34. * 删除时,前台传过来需要删除的idList
  35. */
  36. @JSONField(name = "idList")
  37. private List<Long> idList;
  38. /**
  39. * 批量提交时,提交到后台的数据
  40. */
  41. @JSONField(name = "commitData")
  42. private List<JSONObject> commitData;
  43. /**
  44. * orderBy eg: order_by columnName desc
  45. */
  46. @JSONField(name = "orderBy")
  47. private String orderBy;
  48. /**
  49. * 分页
  50. */
  51. @JSONField(name = "pageNo")
  52. private Integer pageNo;
  53. /**
  54. * 分页
  55. */
  56. @JSONField(name = "pageSize")
  57. private Integer pageSize;
  58. /**
  59. * 状态
  60. */
  61. @JSONField(name = "status")
  62. private String status;
  63. /**
  64. * username
  65. */
  66. private String username;
  67. /**
  68. * 跳转新增或者编辑页面显示的类型带不带折叠,如果isUi=true, 带折叠
  69. */
  70. @JSONField(name = "isUi")
  71. private Boolean isUi;
  72. /**
  73. * 表单类型
  74. */
  75. private String other;
  76. /**
  77. * 提交来源
  78. * @return
  79. */
  80. private String submitSource;
  81. private String candidatorTableName;
  82. private Long moduleId;
  83. private Long nodeId;
  84. public int getLimit() {
  85. try {
  86. return pageNo == 0 ? 0 : (pageNo - 1) * pageSize;
  87. } catch (Exception e) {
  88. e.printStackTrace();
  89. return 1;
  90. }
  91. }
  92. public int getOffset(){
  93. try {
  94. return pageSize == 0 ? 10 : pageSize;
  95. } catch (Exception e) {
  96. e.printStackTrace();
  97. return 10;
  98. }
  99. }
  100. public static long getSerialVersionUID() {
  101. return serialVersionUID;
  102. }
  103. public Long getObjId() {
  104. return objId;
  105. }
  106. public void setObjId(Long objId) {
  107. this.objId = objId;
  108. }
  109. public JSONObject getFixedData() {
  110. return fixedData;
  111. }
  112. public void setFixedData(JSONObject fixedData) {
  113. this.fixedData = fixedData;
  114. }
  115. public String getTable() {
  116. return table;
  117. }
  118. public void setTable(String table) {
  119. this.table = table;
  120. }
  121. public String getLogicDelName() {
  122. return logicDelName;
  123. }
  124. public void setLogicDelName(String logicDelName) {
  125. this.logicDelName = logicDelName;
  126. }
  127. public String getLogicDelValue() {
  128. return logicDelValue;
  129. }
  130. public void setLogicDelValue(String logicDelValue) {
  131. this.logicDelValue = logicDelValue;
  132. }
  133. public List<Long> getIdList() {
  134. return idList;
  135. }
  136. public void setIdList(List<Long> idList) {
  137. this.idList = idList;
  138. }
  139. public List<JSONObject> getCommitData() {
  140. return commitData;
  141. }
  142. public void setCommitData(List<JSONObject> commitData) {
  143. this.commitData = commitData;
  144. }
  145. public String getOrderBy() {
  146. return orderBy;
  147. }
  148. public void setOrderBy(String orderBy) {
  149. this.orderBy = orderBy;
  150. }
  151. public String getStatus() {
  152. return status;
  153. }
  154. public void setStatus(String status) {
  155. this.status = status;
  156. }
  157. public Integer getPageNo() {
  158. return pageNo;
  159. }
  160. public void setPageNo(Integer pageNo) {
  161. this.pageNo = pageNo;
  162. }
  163. public Integer getPageSize() {
  164. return pageSize;
  165. }
  166. public void setPageSize(Integer pageSize) {
  167. this.pageSize = pageSize;
  168. }
  169. public Boolean getIsUi() {
  170. return isUi;
  171. }
  172. public void setIsUi(Boolean ui) {
  173. isUi = ui;
  174. }
  175. public String getUsername() {
  176. return username;
  177. }
  178. public void setUsername(String username) {
  179. this.username = username;
  180. }
  181. public String getOther() {
  182. return other;
  183. }
  184. public void setOther(String other) {
  185. this.other = other;
  186. }
  187. public String getSubmitSource() {
  188. return submitSource;
  189. }
  190. public void setSubmitSource(String submitSource) {
  191. this.submitSource = submitSource;
  192. }
  193. public String getTableName() {
  194. return tableName;
  195. }
  196. public void setTableName(String tableName) {
  197. this.tableName = tableName;
  198. }
  199. public Long getId() {
  200. return id;
  201. }
  202. public void setId(Long id) {
  203. this.id = id;
  204. }
  205. public String getCandidatorTableName() {
  206. return candidatorTableName;
  207. }
  208. public void setCandidatorTableName(String candidatorTableName) {
  209. this.candidatorTableName = candidatorTableName;
  210. }
  211. public Long getModuleId() {
  212. return moduleId;
  213. }
  214. public void setModuleId(Long moduleId) {
  215. this.moduleId = moduleId;
  216. }
  217. public Long getNodeId() {
  218. return nodeId;
  219. }
  220. public void setNodeId(Long nodeId) {
  221. this.nodeId = nodeId;
  222. }
  223. }