TOrderNewBo.java 13 KB

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