Commit 1a26e965 by 杨林龙

优化联系人手机号拆分方法

1 parent 89d3c7de
...@@ -246,14 +246,14 @@ public class WorkOrderService extends AbstractCommonService { ...@@ -246,14 +246,14 @@ public class WorkOrderService extends AbstractCommonService {
installWorkOrderBO.setInstallExplain(workOrderBO.getServiceExplain()); installWorkOrderBO.setInstallExplain(workOrderBO.getServiceExplain());
if (StringUtils.isNotEmpty(workOrderBO.getShopContactInfo())) { if (StringUtils.isNotEmpty(workOrderBO.getShopContactInfo())) {
String[] shopContactInfo = workOrderBO.getShopContactInfo().split("[, ,]"); String[] shopContactInfo = workOrderBO.getShopContactInfo().split("[,,]");
installWorkOrderBO.setShopContactor(shopContactInfo[0]); installWorkOrderBO.setShopContactor(shopContactInfo[0]);
if (shopContactInfo.length > 1) { if (shopContactInfo.length > 1) {
installWorkOrderBO.setShopTelephone(shopContactInfo[1]); installWorkOrderBO.setShopTelephone(shopContactInfo[1]);
} }
} }
if (StringUtils.isNotEmpty(workOrderBO.getServiceLinkInfo())) { if (StringUtils.isNotEmpty(workOrderBO.getServiceLinkInfo())) {
String[] serviceLinkInfo = workOrderBO.getServiceLinkInfo().split("[, ,]"); String[] serviceLinkInfo = workOrderBO.getServiceLinkInfo().split("[,,]");
installWorkOrderBO.setInstallLinker(serviceLinkInfo[0]); installWorkOrderBO.setInstallLinker(serviceLinkInfo[0]);
if (serviceLinkInfo.length > 1) { if (serviceLinkInfo.length > 1) {
installWorkOrderBO.setInstallLinkerPhone(serviceLinkInfo[1]); installWorkOrderBO.setInstallLinkerPhone(serviceLinkInfo[1]);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!