BugDetail.java 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. package edu.nju.entities;
  2. import org.springframework.data.annotation.Id;
  3. import org.springframework.data.annotation.PersistenceConstructor;
  4. import org.springframework.data.mongodb.core.mapping.Document;
  5. import java.util.List;
  6. import java.util.Set;
  7. /**
  8. * @Author JiaWei Xu
  9. * @Date 2020-12-24 15:53
  10. * @Email xjwhhh233@outlook.com
  11. */
  12. @Document
  13. public class BugDetail implements java.io.Serializable {
  14. //bug属性
  15. @Id
  16. private String id;
  17. private String bugCategory;
  18. private String severity;
  19. private String recurrent;
  20. private String bugCreateTime;
  21. private String bugPage;
  22. private String title;
  23. private String bugDescription;
  24. private String imgUrl;
  25. private int score;
  26. private String parent;
  27. private List<String> children;
  28. private String root;
  29. private int goodNum;
  30. private Set<String> goodWorkerId;
  31. private int badNum;
  32. private Set<String> badWorkerId;
  33. //测试用例属性
  34. private String testCaseId;
  35. private String testCaseName;
  36. private String testCaseFront;
  37. private String testCaseBehind;
  38. private String testCaseDescription;
  39. private String testCaseCreateTime;
  40. //report属性
  41. private String reportId;
  42. private String reportName;
  43. private String reportCreateTime;
  44. private String scriptLocation;
  45. private String reportLocation;
  46. private String logLocation;
  47. private String deviceModel;
  48. private String deviceBrand;
  49. private String deviceOs;
  50. //工人属性
  51. private String workerId;
  52. //众测任务属性
  53. private String caseAppName;
  54. private String casePaperType;
  55. private String caseTestType;
  56. private String caseDescription;
  57. private String caseRequireDoc;
  58. //原系统中的case_take_id
  59. private String caseTakeId;
  60. //与目前系统中的哪个case对应
  61. private String originalCaseId;
  62. //cp系统序列号
  63. private String cpSerialNum;
  64. public BugDetail(){};
  65. @PersistenceConstructor
  66. public BugDetail(String id, String bugCategory, String severity, String recurrent, String bugCreateTime, String bugPage, String title, String bugDescription, String imgUrl, int score, String parent, List<String> children, String root, int goodNum, Set<String> goodWorkerId, int badNum, Set<String> badWorkerId, String testCaseId, String testCaseName, String testCaseFront, String testCaseBehind, String testCaseDescription, String testCaseCreateTime, String reportId, String reportName, String reportCreateTime, String scriptLocation, String reportLocation, String logLocation, String deviceModel, String deviceBrand, String deviceOs, String workerId, String caseAppName, String casePaperType, String caseTestType, String caseDescription, String caseRequireDoc, String caseTakeId, String originalCaseId, String cpSerialNum) {
  67. this.id = id;
  68. this.bugCategory = bugCategory;
  69. this.severity = severity;
  70. this.recurrent = recurrent;
  71. this.bugCreateTime = bugCreateTime;
  72. this.bugPage = bugPage;
  73. this.title = title;
  74. this.bugDescription = bugDescription;
  75. this.imgUrl = imgUrl;
  76. this.score = score;
  77. this.parent = parent;
  78. this.children = children;
  79. this.root = root;
  80. this.goodNum = goodNum;
  81. this.goodWorkerId = goodWorkerId;
  82. this.badNum = badNum;
  83. this.badWorkerId = badWorkerId;
  84. this.testCaseId = testCaseId;
  85. this.testCaseName = testCaseName;
  86. this.testCaseFront = testCaseFront;
  87. this.testCaseBehind = testCaseBehind;
  88. this.testCaseDescription = testCaseDescription;
  89. this.testCaseCreateTime = testCaseCreateTime;
  90. this.reportId = reportId;
  91. this.reportName = reportName;
  92. this.reportCreateTime = reportCreateTime;
  93. this.scriptLocation = scriptLocation;
  94. this.reportLocation = reportLocation;
  95. this.logLocation = logLocation;
  96. this.deviceModel = deviceModel;
  97. this.deviceBrand = deviceBrand;
  98. this.deviceOs = deviceOs;
  99. this.workerId = workerId;
  100. this.caseAppName = caseAppName;
  101. this.casePaperType = casePaperType;
  102. this.caseTestType = caseTestType;
  103. this.caseDescription = caseDescription;
  104. this.caseRequireDoc = caseRequireDoc;
  105. this.caseTakeId = caseTakeId;
  106. this.originalCaseId = originalCaseId;
  107. this.cpSerialNum = cpSerialNum;
  108. }
  109. public String getId() {
  110. return id;
  111. }
  112. public void setId(String id) {
  113. this.id = id;
  114. }
  115. public String getBugCategory() {
  116. return bugCategory;
  117. }
  118. public void setBugCategory(String bugCategory) {
  119. this.bugCategory = bugCategory;
  120. }
  121. public String getSeverity() {
  122. return severity;
  123. }
  124. public void setSeverity(String severity) {
  125. this.severity = severity;
  126. }
  127. public String getRecurrent() {
  128. return recurrent;
  129. }
  130. public void setRecurrent(String recurrent) {
  131. this.recurrent = recurrent;
  132. }
  133. public String getBugCreateTime() {
  134. return bugCreateTime;
  135. }
  136. public void setBugCreateTime(String bugCreateTime) {
  137. this.bugCreateTime = bugCreateTime;
  138. }
  139. public String getBugPage() {
  140. return bugPage;
  141. }
  142. public void setBugPage(String bugPage) {
  143. this.bugPage = bugPage;
  144. }
  145. public String getTitle() {
  146. return title;
  147. }
  148. public void setTitle(String title) {
  149. this.title = title;
  150. }
  151. public String getBugDescription() {
  152. return bugDescription;
  153. }
  154. public void setBugDescription(String bugDescription) {
  155. this.bugDescription = bugDescription;
  156. }
  157. public String getImgUrl() {
  158. return imgUrl;
  159. }
  160. public void setImgUrl(String imgUrl) {
  161. this.imgUrl = imgUrl;
  162. }
  163. public int getScore() {
  164. return score;
  165. }
  166. public void setScore(int score) {
  167. this.score = score;
  168. }
  169. public String getParent() {
  170. return parent;
  171. }
  172. public void setParent(String parent) {
  173. this.parent = parent;
  174. }
  175. public List<String> getChildren() {
  176. return children;
  177. }
  178. public void setChildren(List<String> children) {
  179. this.children = children;
  180. }
  181. public String getRoot() {
  182. return root;
  183. }
  184. public void setRoot(String root) {
  185. this.root = root;
  186. }
  187. public Set<String> getGoodWorkerId() {
  188. return goodWorkerId;
  189. }
  190. public int getGoodNum() {
  191. return goodNum;
  192. }
  193. public void setGoodNum(int goodNum) {
  194. this.goodNum = goodNum;
  195. }
  196. public int getBadNum() {
  197. return badNum;
  198. }
  199. public void setBadNum(int badNum) {
  200. this.badNum = badNum;
  201. }
  202. public void setGoodWorkerId(Set<String> goodWorkerId) {
  203. this.goodWorkerId = goodWorkerId;
  204. }
  205. public Set<String> getBadWorkerId() {
  206. return badWorkerId;
  207. }
  208. public void setBadWorkerId(Set<String> badWorkerId) {
  209. this.badWorkerId = badWorkerId;
  210. }
  211. public String getTestCaseId() {
  212. return testCaseId;
  213. }
  214. public void setTestCaseId(String testCaseId) {
  215. this.testCaseId = testCaseId;
  216. }
  217. public String getTestCaseName() {
  218. return testCaseName;
  219. }
  220. public void setTestCaseName(String testCaseName) {
  221. this.testCaseName = testCaseName;
  222. }
  223. public String getTestCaseFront() {
  224. return testCaseFront;
  225. }
  226. public void setTestCaseFront(String testCaseFront) {
  227. this.testCaseFront = testCaseFront;
  228. }
  229. public String getTestCaseBehind() {
  230. return testCaseBehind;
  231. }
  232. public void setTestCaseBehind(String testCaseBehind) {
  233. this.testCaseBehind = testCaseBehind;
  234. }
  235. public String getTestCaseDescription() {
  236. return testCaseDescription;
  237. }
  238. public void setTestCaseDescription(String testCaseDescription) {
  239. this.testCaseDescription = testCaseDescription;
  240. }
  241. public String getTestCaseCreateTime() {
  242. return testCaseCreateTime;
  243. }
  244. public void setTestCaseCreateTime(String testCaseCreateTime) {
  245. this.testCaseCreateTime = testCaseCreateTime;
  246. }
  247. public String getReportId() {
  248. return reportId;
  249. }
  250. public void setReportId(String reportId) {
  251. this.reportId = reportId;
  252. }
  253. public String getReportName() {
  254. return reportName;
  255. }
  256. public void setReportName(String reportName) {
  257. this.reportName = reportName;
  258. }
  259. public String getReportCreateTime() {
  260. return reportCreateTime;
  261. }
  262. public void setReportCreateTime(String reportCreateTime) {
  263. this.reportCreateTime = reportCreateTime;
  264. }
  265. public String getScriptLocation() {
  266. return scriptLocation;
  267. }
  268. public void setScriptLocation(String scriptLocation) {
  269. this.scriptLocation = scriptLocation;
  270. }
  271. public String getReportLocation() {
  272. return reportLocation;
  273. }
  274. public void setReportLocation(String reportLocation) {
  275. this.reportLocation = reportLocation;
  276. }
  277. public String getLogLocation() {
  278. return logLocation;
  279. }
  280. public void setLogLocation(String logLocation) {
  281. this.logLocation = logLocation;
  282. }
  283. public String getDeviceModel() {
  284. return deviceModel;
  285. }
  286. public void setDeviceModel(String deviceModel) {
  287. this.deviceModel = deviceModel;
  288. }
  289. public String getDeviceBrand() {
  290. return deviceBrand;
  291. }
  292. public void setDeviceBrand(String deviceBrand) {
  293. this.deviceBrand = deviceBrand;
  294. }
  295. public String getDeviceOs() {
  296. return deviceOs;
  297. }
  298. public void setDeviceOs(String deviceOs) {
  299. this.deviceOs = deviceOs;
  300. }
  301. public String getWorkerId() {
  302. return workerId;
  303. }
  304. public void setWorkerId(String workerId) {
  305. this.workerId = workerId;
  306. }
  307. public String getCaseAppName() {
  308. return caseAppName;
  309. }
  310. public void setCaseAppName(String caseAppName) {
  311. this.caseAppName = caseAppName;
  312. }
  313. public String getCasePaperType() {
  314. return casePaperType;
  315. }
  316. public void setCasePaperType(String casePaperType) {
  317. this.casePaperType = casePaperType;
  318. }
  319. public String getCaseTestType() {
  320. return caseTestType;
  321. }
  322. public void setCaseTestType(String caseTestType) {
  323. this.caseTestType = caseTestType;
  324. }
  325. public String getCaseDescription() {
  326. return caseDescription;
  327. }
  328. public void setCaseDescription(String caseDescription) {
  329. this.caseDescription = caseDescription;
  330. }
  331. public String getCaseRequireDoc() {
  332. return caseRequireDoc;
  333. }
  334. public void setCaseRequireDoc(String caseRequireDoc) {
  335. this.caseRequireDoc = caseRequireDoc;
  336. }
  337. public String getCaseTakeId() {
  338. return caseTakeId;
  339. }
  340. public void setCaseTakeId(String caseTakeId) {
  341. this.caseTakeId = caseTakeId;
  342. }
  343. public String getOriginalCaseId() {
  344. return originalCaseId;
  345. }
  346. public void setOriginalCaseId(String originalCaseId) {
  347. this.originalCaseId = originalCaseId;
  348. }
  349. public String getCpSerialNum() {
  350. return cpSerialNum;
  351. }
  352. public void setCpSerialNum(String cpSerialNum) {
  353. this.cpSerialNum = cpSerialNum;
  354. }
  355. }