TOrderNewBo.java 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. package com.goafanti.order.bo;
  2. import com.goafanti.common.constant.AFTConstants;
  3. import com.goafanti.common.model.TOrderNew;
  4. import com.goafanti.order.enums.NewOrderDunType;
  5. import com.goafanti.order.enums.OrderDunSubject;
  6. import org.apache.commons.lang3.StringUtils;
  7. import org.apache.commons.lang3.time.DateFormatUtils;
  8. import java.math.BigDecimal;
  9. import java.util.List;
  10. public class TOrderNewBo extends TOrderNew{
  11. private String id;
  12. private String signDate;
  13. private String userName;
  14. private String nickname;
  15. private String salesmanName;
  16. private String managerName;
  17. private String managerId;
  18. private String financeName;
  19. private String consultantName;
  20. private String dunSubject;
  21. private String startDate;
  22. private String financeMobile;
  23. private String salesmanMobile;
  24. private Integer backStatus;
  25. private String initiateName;
  26. private String reason;
  27. private String backDate;
  28. private String backId;
  29. private String uid;
  30. private String email;
  31. private String depName;
  32. //应收款
  33. private BigDecimal accountsReceivable;
  34. private BigDecimal uncollectedAmount;
  35. private Integer locationProvince;
  36. private Integer locationCity;
  37. private Integer locationArea;
  38. private String postalAddress;
  39. private BigDecimal invoiceAmount;
  40. private String NowFinance;
  41. private String NowFinanceMobile;
  42. private String oldSalesmanName;
  43. private String oldSalesmanMobile;
  44. private Integer projectType;
  45. private Integer dunType;
  46. private Integer dunStatus;
  47. private BigDecimal appropriationRatio;
  48. private BigDecimal setUpAmount;
  49. private List<?> dunList;
  50. private List<?> taskList;
  51. /**
  52. * 是否变更 0否 1是
  53. */
  54. private Integer ischange;
  55. /**
  56. * 当前审核
  57. */
  58. private Integer myExamine;
  59. private Integer stopProject;
  60. /**
  61. * 知识产权服务 1已签 2企业已经拥有可申报高新的知识产权 3企业自行申报/已有其他合作的代理机构申报 0其他
  62. */
  63. private Integer knowledgeServices;
  64. /**
  65. * 审计服务 1已签 2企业已经有符合申报的年审/专审 3 业自行找会计事务所出具报告 0其他
  66. */
  67. private Integer auditServices;
  68. /**
  69. * 加计扣除服务 1已签 2企业不符合加计扣除范围 3企业自己已经做了加计扣除 4企业自行找其他机构做了加计扣除 0其他
  70. */
  71. private Integer addDeductionServices;
  72. /**
  73. * 知识产权服务其他描述
  74. */
  75. private String knowledgeOther;
  76. /**
  77. * 审计服务其他描述
  78. */
  79. private String auditOther;
  80. /**
  81. * 加计扣除服务其他描述
  82. */
  83. private String addDeductionOther;
  84. private Integer approvalStatus;
  85. private String approvalAid;
  86. private String approvalName;
  87. private String operationGuaranteeId;
  88. private String operationGuaranteeName;
  89. private String typeExplain;
  90. private String type;
  91. public String getTypeExplain() {
  92. return typeExplain;
  93. }
  94. public void setTypeExplain(String typeExplain) {
  95. this.typeExplain = typeExplain;
  96. }
  97. public String getType() {
  98. return type;
  99. }
  100. public void setType(String type) {
  101. this.type = type;
  102. }
  103. public String getOperationGuaranteeId() {
  104. return operationGuaranteeId;
  105. }
  106. public void setOperationGuaranteeId(String operationGuaranteeId) {
  107. this.operationGuaranteeId = operationGuaranteeId;
  108. }
  109. public String getOperationGuaranteeName() {
  110. return operationGuaranteeName;
  111. }
  112. public void setOperationGuaranteeName(String operationGuaranteeName) {
  113. this.operationGuaranteeName = operationGuaranteeName;
  114. }
  115. public String getApprovalName() {
  116. return approvalName;
  117. }
  118. public void setApprovalName(String approvalName) {
  119. this.approvalName = approvalName;
  120. }
  121. public Integer getApprovalStatus() {
  122. return approvalStatus;
  123. }
  124. public void setApprovalStatus(Integer approvalStatus) {
  125. this.approvalStatus = approvalStatus;
  126. }
  127. public String getApprovalAid() {
  128. return approvalAid;
  129. }
  130. public void setApprovalAid(String approvalAid) {
  131. this.approvalAid = approvalAid;
  132. }
  133. public Integer getMyExamine() {
  134. return myExamine;
  135. }
  136. public void setMyExamine(Integer myExamine) {
  137. this.myExamine = myExamine;
  138. }
  139. public String getManagerId() {
  140. return managerId;
  141. }
  142. public void setManagerId(String managerId) {
  143. this.managerId = managerId;
  144. }
  145. public String getManagerName() {
  146. return managerName;
  147. }
  148. public void setManagerName(String managerName) {
  149. this.managerName = managerName;
  150. }
  151. public Integer getKnowledgeServices() {
  152. return knowledgeServices;
  153. }
  154. public void setKnowledgeServices(Integer knowledgeServices) {
  155. this.knowledgeServices = knowledgeServices;
  156. }
  157. public Integer getAuditServices() {
  158. return auditServices;
  159. }
  160. public void setAuditServices(Integer auditServices) {
  161. this.auditServices = auditServices;
  162. }
  163. public Integer getAddDeductionServices() {
  164. return addDeductionServices;
  165. }
  166. public void setAddDeductionServices(Integer addDeductionServices) {
  167. this.addDeductionServices = addDeductionServices;
  168. }
  169. public String getKnowledgeOther() {
  170. return knowledgeOther;
  171. }
  172. public void setKnowledgeOther(String knowledgeOther) {
  173. this.knowledgeOther = knowledgeOther;
  174. }
  175. public String getAuditOther() {
  176. return auditOther;
  177. }
  178. public void setAuditOther(String auditOther) {
  179. this.auditOther = auditOther;
  180. }
  181. public String getAddDeductionOther() {
  182. return addDeductionOther;
  183. }
  184. public void setAddDeductionOther(String addDeductionOther) {
  185. this.addDeductionOther = addDeductionOther;
  186. }
  187. public Integer getStopProject() {
  188. return stopProject;
  189. }
  190. public void setStopProject(Integer stopProject) {
  191. this.stopProject = stopProject;
  192. }
  193. public String getDunSubject() {
  194. if(getDunType()!=null&&getProjectType()!=null)return NewOrderDunType.getValueByCode(Integer.valueOf(""+getProjectType()+getDunType()));
  195. if(dunSubject!=null)return OrderDunSubject.getValueByCode(Integer.valueOf(dunSubject));
  196. return dunSubject;
  197. }
  198. public Integer getLocationProvince() {
  199. return locationProvince;
  200. }
  201. public void setLocationProvince(Integer locationProvince) {
  202. this.locationProvince = locationProvince;
  203. }
  204. public Integer getLocationCity() {
  205. return locationCity;
  206. }
  207. public void setLocationCity(Integer locationCity) {
  208. this.locationCity = locationCity;
  209. }
  210. public Integer getLocationArea() {
  211. return locationArea;
  212. }
  213. public void setLocationArea(Integer locationArea) {
  214. this.locationArea = locationArea;
  215. }
  216. public String getPostalAddress() {
  217. return postalAddress;
  218. }
  219. public void setPostalAddress(String postalAddress) {
  220. this.postalAddress = postalAddress;
  221. }
  222. public String getSignDate() {
  223. if (StringUtils.isBlank(signDate)&&super.getSignTime()!=null) {
  224. return DateFormatUtils.format(super.getSignTime(), AFTConstants.YYYYMMDD);
  225. }
  226. return signDate;
  227. }
  228. public void setSignDate(String signDate) {
  229. this.signDate = signDate;
  230. }
  231. public String getUserName() {
  232. return userName;
  233. }
  234. public void setUserName(String userName) {
  235. this.userName = userName;
  236. }
  237. public String getSalesmanName() {
  238. return salesmanName;
  239. }
  240. public void setSalesmanName(String salesmanName) {
  241. this.salesmanName = salesmanName;
  242. }
  243. public String getFinanceName() {
  244. return financeName;
  245. }
  246. public void setFinanceName(String financeName) {
  247. this.financeName = financeName;
  248. }
  249. public String getCreateDate() {
  250. if (super.getCreateTime() == null) {
  251. return null;
  252. } else {
  253. return DateFormatUtils.format(super.getCreateTime(), AFTConstants.YYYYMMDDHHMMSS);
  254. }
  255. }
  256. public String getUpdateDate() {
  257. if (super.getUpdateTime() == null) {
  258. return null;
  259. } else {
  260. return DateFormatUtils.format(super.getUpdateTime(), AFTConstants.YYYYMMDDHHMMSS);
  261. }
  262. }
  263. public String getStartDate() {
  264. return startDate;
  265. }
  266. public void setStartDate(String startDate) {
  267. this.startDate = startDate;
  268. }
  269. /*public String getDunSubject() {
  270. return dunSubject;
  271. }*/
  272. public void setDunSubject(String dunSubject) {
  273. this.dunSubject = dunSubject;
  274. }
  275. public String getId() {
  276. return id;
  277. }
  278. public void setId(String id) {
  279. this.id = id;
  280. }
  281. public String getFinanceMobile() {
  282. return financeMobile;
  283. }
  284. public void setFinanceMobile(String financeMobile) {
  285. this.financeMobile = financeMobile;
  286. }
  287. public String getSalesmanMobile() {
  288. return salesmanMobile;
  289. }
  290. public void setSalesmanMobile(String salesmanMobile) {
  291. this.salesmanMobile = salesmanMobile;
  292. }
  293. public Integer getBackStatus() {
  294. return backStatus;
  295. }
  296. public void setBackStatus(Integer backStatus) {
  297. this.backStatus = backStatus;
  298. }
  299. public String getInitiateName() {
  300. return initiateName;
  301. }
  302. public void setInitiateName(String initiateName) {
  303. this.initiateName = initiateName;
  304. }
  305. public String getReason() {
  306. return reason;
  307. }
  308. public void setReason(String reason) {
  309. this.reason = reason;
  310. }
  311. public String getBackDate() {
  312. return backDate;
  313. }
  314. public void setBackDate(String backDate) {
  315. this.backDate = backDate;
  316. }
  317. public String getEmail() {
  318. return email;
  319. }
  320. public void setEmail(String email) {
  321. this.email = email;
  322. }
  323. public String getUid() {
  324. return uid;
  325. }
  326. public void setUid(String uid) {
  327. this.uid = uid;
  328. }
  329. public String getConsultantName() {
  330. return consultantName;
  331. }
  332. public void setConsultantName(String consultantName) {
  333. this.consultantName = consultantName;
  334. }
  335. public String getBackId() {
  336. return backId;
  337. }
  338. public void setBackId(String backId) {
  339. this.backId = backId;
  340. }
  341. public String getDepName() {
  342. return depName;
  343. }
  344. public void setDepName(String depName) {
  345. this.depName = depName;
  346. }
  347. public BigDecimal getAccountsReceivable() {
  348. if(getDunSubject()!=null&&getDunSubject().equals("33")&&accountsReceivable==null&&appropriationRatio !=null &&setUpAmount!=null) {
  349. return setUpAmount.multiply(accountsReceivable);
  350. }
  351. return accountsReceivable;
  352. }
  353. public void setAccountsReceivable(BigDecimal accountsReceivable) {
  354. this.accountsReceivable = accountsReceivable;
  355. }
  356. public BigDecimal getUncollectedAmount() {
  357. return uncollectedAmount;
  358. }
  359. public void setUncollectedAmount(BigDecimal uncollectedAmount) {
  360. this.uncollectedAmount = uncollectedAmount;
  361. }
  362. public String getNowFinance() {
  363. return NowFinance;
  364. }
  365. public void setNowFinance(String nowFinance) {
  366. NowFinance = nowFinance;
  367. }
  368. public String getNowFinanceMobile() {
  369. return NowFinanceMobile;
  370. }
  371. public void setNowFinanceMobile(String nowFinanceMobile) {
  372. NowFinanceMobile = nowFinanceMobile;
  373. }
  374. public String getOldSalesmanName() {
  375. return oldSalesmanName;
  376. }
  377. public void setOldSalesmanName(String oldSalesmanName) {
  378. this.oldSalesmanName = oldSalesmanName;
  379. }
  380. public String getOldSalesmanMobile() {
  381. return oldSalesmanMobile;
  382. }
  383. public void setOldSalesmanMobile(String oldSalesmanMobile) {
  384. this.oldSalesmanMobile = oldSalesmanMobile;
  385. }
  386. public Integer getProjectType() {
  387. return projectType;
  388. }
  389. public void setProjectType(Integer projectType) {
  390. this.projectType = projectType;
  391. }
  392. public Integer getDunType() {
  393. return dunType;
  394. }
  395. public void setDunType(Integer dunType) {
  396. this.dunType = dunType;
  397. }
  398. public Integer getDunStatus() {
  399. return dunStatus;
  400. }
  401. public void setDunStatus(Integer dunStatus) {
  402. this.dunStatus = dunStatus;
  403. }
  404. public BigDecimal getInvoiceAmount() {
  405. if (invoiceAmount==null) {
  406. return new BigDecimal(0);
  407. }
  408. return invoiceAmount;
  409. }
  410. public void setInvoiceAmount(BigDecimal invoiceAmount) {
  411. this.invoiceAmount = invoiceAmount;
  412. }
  413. public BigDecimal getAppropriationRatio() {
  414. return appropriationRatio;
  415. }
  416. public void setAppropriationRatio(BigDecimal appropriationRatio) {
  417. this.appropriationRatio = appropriationRatio;
  418. }
  419. public BigDecimal getSetUpAmount() {
  420. return setUpAmount;
  421. }
  422. public void setSetUpAmount(BigDecimal setUpAmount) {
  423. this.setUpAmount = setUpAmount;
  424. }
  425. public Integer getIschange() {
  426. return ischange;
  427. }
  428. public void setIschange(Integer ischange) {
  429. this.ischange = ischange;
  430. }
  431. public List<?> getDunList() {
  432. return dunList;
  433. }
  434. public void setDunList(List<?> dunList) {
  435. this.dunList = dunList;
  436. }
  437. public List<?> getTaskList() {
  438. return taskList;
  439. }
  440. public void setTaskList(List<?> taskList) {
  441. this.taskList = taskList;
  442. }
  443. public String getNickname() {
  444. return nickname;
  445. }
  446. public void setNickname(String nickname) {
  447. this.nickname = nickname;
  448. }
  449. }