NewCmSp.java 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  1. package com.caimei.modules.user.entity;
  2. import com.thinkgem.jeesite.common.persistence.DataEntity;
  3. import org.hibernate.validator.constraints.Length;
  4. import javax.validation.constraints.NotNull;
  5. import java.beans.Transient;
  6. import java.math.BigDecimal;
  7. import java.util.List;
  8. /**
  9. * 用户模块重构-协销人员管理Entity
  10. * @author liwentao
  11. * @version 2018-06-05
  12. */
  13. public class NewCmSp extends DataEntity<NewCmSp> {
  14. private static final long serialVersionUID = 1L;
  15. private Integer serviceProviderID; // serviceProviderID
  16. private Integer userID; // 对应的userId
  17. private String name; // 名称
  18. private String linkMan; // 联系人(默认联系人)
  19. private String contractPhone; // 联系电话
  20. private String contractMobile; // 联系手机
  21. private String contractEmail; // 联系人邮箱
  22. private String duty; // 联系人职务
  23. private String auditStatus; // 审核状态
  24. private String auditTime; // 审核时间
  25. private String auditNote; // 审核信息
  26. private String validFlag; // 是否可用 可用
  27. private Integer status; // 创客状态,见表c_serviceproviderstatus或枚举ServiceProviderStatus
  28. private String addTime; // 创建时间
  29. private Integer mainServiceProviderID; // 创客经理Id
  30. private List<CmSaleMan> teams; //小组组长列表
  31. //活跃比例
  32. private Integer livelyClub;
  33. private Integer nolivelyClub;
  34. private BigDecimal livelyClubProportion;
  35. private BigDecimal nolivelyClubProportion;
  36. // private String nameEn; // 英文名
  37. // private String site; // 网址
  38. // private String logo; // 头像
  39. // private String halfBodyImage; // 半身照
  40. // private String legalPerson; // 法人代表
  41. // private Integer townID; // 所在县区Id
  42. // private String address; // 地址
  43. //
  44. //
  45. //
  46. // private String fax; // fax
  47. // private String zipCode; // 邮编
  48. // private String registeredCapital; // 注册资金
  49. // private String turnover; // turnover
  50. // private String count; // 团队人数
  51. // private String count2; // count2
  52. //
  53. //
  54. // private String contractPhone; // 联系人固定电话
  55. // private String contractMobile; // 联系人手机
  56. // private String contractQQ; // 联系人QQ
  57. // private String wechat; // 联系人微信
  58. //
  59. // private String linkMan2; // 联系人2
  60. // private String duty2; // 联系人2职务
  61. // private String contractPhone2; // 联系人2固定电话
  62. // private String contractMobile2; // 联系人2手机
  63. // private String contractQQ2; // 联系人2QQ
  64. // private String wechat2; // 联系人2微信
  65. // private String contractEmail2; // 联系人2邮箱
  66. // private String info; // 团队介绍
  67. // private Double commissionRate; // commissionRate
  68. // private String provinceIDs; // 服务区域Id
  69. // private String provinceNames; // 服务区域名称
  70. // private Integer level; // level
  71. // private String payFlag; // payFlag
  72. // private String businessLicenseImage; // 营业执照
  73. // private String taxCertificateImage; // 税务登记证
  74. //
  75. // private Integer serviceLevelID; // serviceLevelID
  76. // private Integer typeID; // typeID
  77. private String businessScope; // 专业领域
  78. private String companyImage; // 形象展示
  79. private String cashDeposit; // cashDeposit
  80. private String experience; // experience
  81. private String serviceItem; // serviceItem
  82. private String topPerformance; // topPerformance
  83. private String serviceCase; // 服务案例
  84. private String spIdentity; //前台身份展示
  85. private String spStatusName; //前台状态展示
  86. private String position; //职位 0=协销员工 =协销经理
  87. public NewCmSp() {
  88. super();
  89. }
  90. public NewCmSp(String id){
  91. super(id);
  92. }
  93. public List<CmSaleMan> getTeams() {
  94. return teams;
  95. }
  96. public Integer getLivelyClub() {
  97. return livelyClub;
  98. }
  99. public void setLivelyClub(Integer livelyClub) {
  100. this.livelyClub = livelyClub;
  101. }
  102. public Integer getNolivelyClub() {
  103. return nolivelyClub;
  104. }
  105. public void setNolivelyClub(Integer nolivelyClub) {
  106. this.nolivelyClub = nolivelyClub;
  107. }
  108. public BigDecimal getLivelyClubProportion() {
  109. return livelyClubProportion;
  110. }
  111. public void setLivelyClubProportion(BigDecimal livelyClubProportion) {
  112. this.livelyClubProportion = livelyClubProportion;
  113. }
  114. public BigDecimal getNolivelyClubProportion() {
  115. return nolivelyClubProportion;
  116. }
  117. public void setNolivelyClubProportion(BigDecimal nolivelyClubProportion) {
  118. this.nolivelyClubProportion = nolivelyClubProportion;
  119. }
  120. public void setTeams(List<CmSaleMan> teams) {
  121. this.teams = teams;
  122. }
  123. @NotNull(message="serviceProviderID不能为空")
  124. public Integer getServiceProviderID() {
  125. return serviceProviderID;
  126. }
  127. public void setServiceProviderID(Integer serviceProviderID) {
  128. this.serviceProviderID = serviceProviderID;
  129. }
  130. public Integer getUserID() {
  131. return userID;
  132. }
  133. public void setUserID(Integer userID) {
  134. this.userID = userID;
  135. }
  136. @Length(min=0, max=50, message="名称长度必须介于 0 和 50 之间")
  137. public String getName() {
  138. return name;
  139. }
  140. public void setName(String name) {
  141. this.name = name;
  142. }
  143. // @Length(min=0, max=00, message="英文名长度必须介于 0 和 00 之间")
  144. // public String getNameEn() {
  145. // return nameEn;
  146. // }
  147. //
  148. // public void setNameEn(String nameEn) {
  149. // this.nameEn = nameEn;
  150. // }
  151. //
  152. // @Length(min=0, max=200, message="网址长度必须介于 0 和 200 之间")
  153. // public String getSite() {
  154. // return site;
  155. // }
  156. //
  157. // public void setSite(String site) {
  158. // this.site = site;
  159. // }
  160. //
  161. // @Length(min=0, max=200, message="头像长度必须介于 0 和 200 之间")
  162. // public String getLogo() {
  163. // return logo;
  164. // }
  165. //
  166. // public void setLogo(String logo) {
  167. // this.logo = logo;
  168. // }
  169. //
  170. // @Length(min=0, max=255, message="半身照长度必须介于 0 和 255 之间")
  171. // public String getHalfBodyImage() {
  172. // return halfBodyImage;
  173. // }
  174. //
  175. // public void setHalfBodyImage(String halfBodyImage) {
  176. // this.halfBodyImage = halfBodyImage;
  177. // }
  178. //
  179. // @Length(min=0, max=20, message="法人代表长度必须介于 0 和 20 之间")
  180. // public String getLegalPerson() {
  181. // return legalPerson;
  182. // }
  183. //
  184. // public void setLegalPerson(String legalPerson) {
  185. // this.legalPerson = legalPerson;
  186. // }
  187. //
  188. // public Integer getTownID() {
  189. // return townID;
  190. // }
  191. //
  192. // public void setTownID(Integer townID) {
  193. // this.townID = townID;
  194. // }
  195. //
  196. // @Length(min=0, max=00, message="地址长度必须介于 0 和 00 之间")
  197. // public String getAddress() {
  198. // return address;
  199. // }
  200. //
  201. // public void setAddress(String address) {
  202. // this.address = address;
  203. // }
  204. //
  205. // @Length(min=0, max=50, message="联系电话长度必须介于 0 和 50 之间")
  206. // public String getContractPhone() {
  207. // return contractPhone;
  208. // }
  209. //
  210. // public void setContractPhone(String contractPhone) {
  211. // this.contractPhone = contractPhone;
  212. // }
  213. //
  214. // @Length(min=0, max=20, message="联系手机长度必须介于 0 和 20 之间")
  215. // public String getContractMobile() {
  216. // return contractMobile;
  217. // }
  218. //
  219. // public void setContractMobile(String contractMobile) {
  220. // this.contractMobile = contractMobile;
  221. // }
  222. //
  223. // @Length(min=0, max=50, message="fax长度必须介于 0 和 50 之间")
  224. // public String getFax() {
  225. // return fax;
  226. // }
  227. //
  228. // public void setFax(String fax) {
  229. // this.fax = fax;
  230. // }
  231. //
  232. // @Length(min=0, max=0, message="邮编长度必须介于 0 和 0 之间")
  233. // public String getZipCode() {
  234. // return zipCode;
  235. // }
  236. //
  237. // public void setZipCode(String zipCode) {
  238. // this.zipCode = zipCode;
  239. // }
  240. //
  241. // public String getRegisteredCapital() {
  242. // return registeredCapital;
  243. // }
  244. //
  245. // public void setRegisteredCapital(String registeredCapital) {
  246. // this.registeredCapital = registeredCapital;
  247. // }
  248. //
  249. // public String getTurnover() {
  250. // return turnover;
  251. // }
  252. //
  253. // public void setTurnover(String turnover) {
  254. // this.turnover = turnover;
  255. // }
  256. //
  257. // @Length(min=0, max=1, message="团队人数长度必须介于 0 和 之间")
  258. // public String getCount() {
  259. // return count;
  260. // }
  261. //
  262. // public void setCount(String count) {
  263. // this.count = count;
  264. // }
  265. //
  266. // @Length(min=0, max=1, message="count2长度必须介于 0 和 之间")
  267. // public String getCount2() {
  268. // return count2;
  269. // }
  270. //
  271. // public void setCount2(String count2) {
  272. // this.count2 = count2;
  273. // }
  274. @Length(min=0, max=50, message="联系人(默认联系人)长度必须介于 0 和 50 之间")
  275. public String getLinkMan() {
  276. return linkMan;
  277. }
  278. public void setLinkMan(String linkMan) {
  279. this.linkMan = linkMan;
  280. }
  281. @Length(min=0, max=50, message="联系人职务长度必须介于 0 和 50 之间")
  282. public String getDuty() {
  283. return duty;
  284. }
  285. public void setDuty(String duty) {
  286. this.duty = duty;
  287. }
  288. // @Length(min=0, max=50, message="联系人固定电话长度必须介于 0 和 50 之间")
  289. // public String getContractPhone() {
  290. // return contractPhone;
  291. // }
  292. //
  293. // public void setContractPhone(String contractPhone) {
  294. // this.contractPhone = contractPhone;
  295. // }
  296. //
  297. // @Length(min=0, max=20, message="联系人手机长度必须介于 0 和 20 之间")
  298. // public String getContractMobile() {
  299. // return contractMobile;
  300. // }
  301. //
  302. // public void setContractMobile(String contractMobile) {
  303. // this.contractMobile = contractMobile;
  304. // }
  305. //
  306. // @Length(min=0, max=20, message="联系人QQ长度必须介于 0 和 20 之间")
  307. // public String getContractQQ() {
  308. // return contractQQ;
  309. // }
  310. //
  311. // public void setContractQQ(String contractQQ) {
  312. // this.contractQQ = contractQQ;
  313. // }
  314. //
  315. // @Length(min=0, max=50, message="联系人微信长度必须介于 0 和 50 之间")
  316. // public String getWechat() {
  317. // return wechat;
  318. // }
  319. //
  320. // public void setWechat(String wechat) {
  321. // this.wechat = wechat;
  322. // }
  323. @Length(min=0, max=50, message="联系人邮箱长度必须介于 0 和 50 之间")
  324. public String getContractEmail() {
  325. return contractEmail;
  326. }
  327. public void setContractEmail(String contractEmail) {
  328. this.contractEmail = contractEmail;
  329. }
  330. // @Length(min=0, max=50, message="联系人2长度必须介于 0 和 50 之间")
  331. // public String getLinkMan2() {
  332. // return linkMan2;
  333. // }
  334. //
  335. // public void setLinkMan2(String linkMan2) {
  336. // this.linkMan2 = linkMan2;
  337. // }
  338. //
  339. // @Length(min=0, max=50, message="联系人2职务长度必须介于 0 和 50 之间")
  340. // public String getDuty2() {
  341. // return duty2;
  342. // }
  343. //
  344. // public void setDuty2(String duty2) {
  345. // this.duty2 = duty2;
  346. // }
  347. //
  348. // @Length(min=0, max=50, message="联系人2固定电话长度必须介于 0 和 50 之间")
  349. // public String getContractPhone2() {
  350. // return contractPhone2;
  351. // }
  352. //
  353. // public void setContractPhone2(String contractPhone2) {
  354. // this.contractPhone2 = contractPhone2;
  355. // }
  356. //
  357. // @Length(min=0, max=20, message="联系人2手机长度必须介于 0 和 20 之间")
  358. // public String getContractMobile2() {
  359. // return contractMobile2;
  360. // }
  361. //
  362. // public void setContractMobile2(String contractMobile2) {
  363. // this.contractMobile2 = contractMobile2;
  364. // }
  365. //
  366. // @Length(min=0, max=20, message="联系人2QQ长度必须介于 0 和 20 之间")
  367. // public String getContractQQ2() {
  368. // return contractQQ2;
  369. // }
  370. //
  371. // public void setContractQQ2(String contractQQ2) {
  372. // this.contractQQ2 = contractQQ2;
  373. // }
  374. //
  375. // @Length(min=0, max=50, message="联系人2微信长度必须介于 0 和 50 之间")
  376. // public String getWechat2() {
  377. // return wechat2;
  378. // }
  379. //
  380. // public void setWechat2(String wechat2) {
  381. // this.wechat2 = wechat2;
  382. // }
  383. //
  384. // @Length(min=0, max=50, message="联系人2邮箱长度必须介于 0 和 50 之间")
  385. // public String getContractEmail2() {
  386. // return contractEmail2;
  387. // }
  388. //
  389. // public void setContractEmail2(String contractEmail2) {
  390. // this.contractEmail2 = contractEmail2;
  391. // }
  392. //
  393. // @Length(min=0, max=500, message="团队介绍长度必须介于 0 和 500 之间")
  394. // public String getInfo() {
  395. // return info;
  396. // }
  397. //
  398. // public void setInfo(String info) {
  399. // this.info = info;
  400. // }
  401. //
  402. // public Double getCommissionRate() {
  403. // return commissionRate;
  404. // }
  405. //
  406. // public void setCommissionRate(Double commissionRate) {
  407. // this.commissionRate = commissionRate;
  408. // }
  409. //
  410. // @Length(min=0, max=300, message="服务区域Id长度必须介于 0 和 300 之间")
  411. // public String getProvinceIDs() {
  412. // return provinceIDs;
  413. // }
  414. //
  415. // public void setProvinceIDs(String provinceIDs) {
  416. // this.provinceIDs = provinceIDs;
  417. // }
  418. //
  419. // @Length(min=0, max=300, message="服务区域名称长度必须介于 0 和 300 之间")
  420. // public String getProvinceNames() {
  421. // return provinceNames;
  422. // }
  423. //
  424. // public void setProvinceNames(String provinceNames) {
  425. // this.provinceNames = provinceNames;
  426. // }
  427. //
  428. // public Integer getLevel() {
  429. // return level;
  430. // }
  431. //
  432. // public void setLevel(Integer level) {
  433. // this.level = level;
  434. // }
  435. //
  436. // @Length(min=0, max=1, message="payFlag长度必须介于 0 和 之间")
  437. // public String getPayFlag() {
  438. // return payFlag;
  439. // }
  440. //
  441. // public void setPayFlag(String payFlag) {
  442. // this.payFlag = payFlag;
  443. // }
  444. //
  445. // @Length(min=0, max=200, message="营业执照长度必须介于 0 和 200 之间")
  446. // public String getBusinessLicenseImage() {
  447. // return businessLicenseImage;
  448. // }
  449. //
  450. // public void setBusinessLicenseImage(String businessLicenseImage) {
  451. // this.businessLicenseImage = businessLicenseImage;
  452. // }
  453. //
  454. // @Length(min=0, max=200, message="税务登记证长度必须介于 0 和 200 之间")
  455. // public String getTaxCertificateImage() {
  456. // return taxCertificateImage;
  457. // }
  458. //
  459. // public void setTaxCertificateImage(String taxCertificateImage) {
  460. // this.taxCertificateImage = taxCertificateImage;
  461. // }
  462. @Length(min=0, max=1, message="审核状态长度必须介于 0 和 之间")
  463. public String getAuditStatus() {
  464. return auditStatus;
  465. }
  466. public void setAuditStatus(String auditStatus) {
  467. this.auditStatus = auditStatus;
  468. }
  469. @Length(min=0, max=9, message="审核时间长度必须介于 0 和 9 之间")
  470. public String getAuditTime() {
  471. return auditTime;
  472. }
  473. public void setAuditTime(String auditTime) {
  474. this.auditTime = auditTime;
  475. }
  476. @Length(min=0, max=00, message="审核信息长度必须介于 0 和 00 之间")
  477. public String getAuditNote() {
  478. return auditNote;
  479. }
  480. public void setAuditNote(String auditNote) {
  481. this.auditNote = auditNote;
  482. }
  483. @Length(min=0, max=1, message="是否可用 可用长度必须介于 0 和 之间")
  484. public String getValidFlag() {
  485. return validFlag;
  486. }
  487. public void setValidFlag(String validFlag) {
  488. this.validFlag = validFlag;
  489. }
  490. public Integer getStatus() {
  491. return status;
  492. }
  493. public void setStatus(Integer status) {
  494. this.status = status;
  495. }
  496. @Length(min=0, max=9, message="创建时间长度必须介于 0 和 9 之间")
  497. public String getAddTime() {
  498. return addTime;
  499. }
  500. public void setAddTime(String addTime) {
  501. this.addTime = addTime;
  502. }
  503. // public Integer getServiceLevelID() {
  504. // return serviceLevelID;
  505. // }
  506. //
  507. // public void setServiceLevelID(Integer serviceLevelID) {
  508. // this.serviceLevelID = serviceLevelID;
  509. // }
  510. //
  511. // public Integer getTypeID() {
  512. // return typeID;
  513. // }
  514. //
  515. // public void setTypeID(Integer typeID) {
  516. // this.typeID = typeID;
  517. // }
  518. public Integer getMainServiceProviderID() {
  519. return mainServiceProviderID;
  520. }
  521. public void setMainServiceProviderID(Integer mainServiceProviderID) {
  522. this.mainServiceProviderID = mainServiceProviderID;
  523. }
  524. @Length(min=0, max=255, message="专业领域长度必须介于 0 和 255 之间")
  525. public String getBusinessScope() {
  526. return businessScope;
  527. }
  528. public void setBusinessScope(String businessScope) {
  529. this.businessScope = businessScope;
  530. }
  531. @Length(min=0, max=255, message="形象展示长度必须介于 0 和 255 之间")
  532. public String getCompanyImage() {
  533. return companyImage;
  534. }
  535. public void setCompanyImage(String companyImage) {
  536. this.companyImage = companyImage;
  537. }
  538. public String getCashDeposit() {
  539. return cashDeposit;
  540. }
  541. public void setCashDeposit(String cashDeposit) {
  542. this.cashDeposit = cashDeposit;
  543. }
  544. @Length(min=0, max=1, message="experience长度必须介于 0 和 之间")
  545. public String getExperience() {
  546. return experience;
  547. }
  548. public void setExperience(String experience) {
  549. this.experience = experience;
  550. }
  551. @Length(min=0, max=255, message="serviceItem长度必须介于 0 和 255 之间")
  552. public String getServiceItem() {
  553. return serviceItem;
  554. }
  555. public void setServiceItem(String serviceItem) {
  556. this.serviceItem = serviceItem;
  557. }
  558. @Length(min=0, max=255, message="topPerformance长度必须介于 0 和 255 之间")
  559. public String getTopPerformance() {
  560. return topPerformance;
  561. }
  562. public void setTopPerformance(String topPerformance) {
  563. this.topPerformance = topPerformance;
  564. }
  565. @Length(min=0, max=000, message="服务案例长度必须介于 0 和 000 之间")
  566. public String getServiceCase() {
  567. return serviceCase;
  568. }
  569. public void setServiceCase(String serviceCase) {
  570. this.serviceCase = serviceCase;
  571. }
  572. @Transient
  573. public String getSpIdentity() {
  574. return spIdentity;
  575. }
  576. public void setSpIdentity(String spIdentity) {
  577. this.spIdentity = spIdentity;
  578. }
  579. @Transient
  580. public String getSpStatusName() {
  581. return spStatusName;
  582. }
  583. public void setSpStatusName(String spStatusName) {
  584. this.spStatusName = spStatusName;
  585. }
  586. @Transient
  587. public String getPosition() {
  588. return position;
  589. }
  590. public void setPosition(String position) {
  591. this.position = position;
  592. }
  593. @Length(min=0, max=50, message="电话长度必须介于 0 和 50 之间")
  594. public String getContractPhone() {
  595. return contractPhone;
  596. }
  597. public void setContractPhone(String contractPhone) {
  598. this.contractPhone = contractPhone;
  599. }
  600. @Length(min=0, max=50, message="电话长度必须介于 0 和 50 之间")
  601. public String getContractMobile() {
  602. return contractMobile;
  603. }
  604. public void setContractMobile(String contractMobile) {
  605. this.contractMobile = contractMobile;
  606. }
  607. }