|
@@ -1,14 +1,19 @@
|
|
|
package com.fs.qw.service.impl;
|
|
package com.fs.qw.service.impl;
|
|
|
|
|
|
|
|
|
|
+import cn.hutool.json.JSONArray;
|
|
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
import com.fs.common.exception.CustomException;
|
|
import com.fs.common.exception.CustomException;
|
|
|
import com.fs.common.utils.DateUtils;
|
|
import com.fs.common.utils.DateUtils;
|
|
|
|
|
+import com.fs.common.utils.StringUtils;
|
|
|
import com.fs.company.domain.CompanyDept;
|
|
import com.fs.company.domain.CompanyDept;
|
|
|
import com.fs.company.domain.CompanyUser;
|
|
import com.fs.company.domain.CompanyUser;
|
|
|
import com.fs.company.mapper.CompanyDeptMapper;
|
|
import com.fs.company.mapper.CompanyDeptMapper;
|
|
|
import com.fs.his.domain.FsImportMember;
|
|
import com.fs.his.domain.FsImportMember;
|
|
|
import com.fs.his.mapper.FsImportMemberMapper;
|
|
import com.fs.his.mapper.FsImportMemberMapper;
|
|
|
|
|
+import com.fs.his.service.IFsUserAddressService;
|
|
|
import com.fs.hisStore.mapper.FsStoreOrderScrmMapper;
|
|
import com.fs.hisStore.mapper.FsStoreOrderScrmMapper;
|
|
|
import com.fs.hisStore.param.FsCompanyCustomerOrderParam;
|
|
import com.fs.hisStore.param.FsCompanyCustomerOrderParam;
|
|
|
|
|
+import com.fs.hisStore.vo.FsStoreOrderItemVO;
|
|
|
import com.fs.hisStore.vo.FsStoreOrderVO;
|
|
import com.fs.hisStore.vo.FsStoreOrderVO;
|
|
|
import com.fs.qw.domain.FsCompanyCustomer;
|
|
import com.fs.qw.domain.FsCompanyCustomer;
|
|
|
import com.fs.qw.domain.FsCompanyCustomerLog;
|
|
import com.fs.qw.domain.FsCompanyCustomerLog;
|
|
@@ -56,6 +61,9 @@ public class FsCompanyCustomerServiceImpl implements IFsCompanyCustomerService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private FsCompanyExternalPayReceiptMapper externalPayReceiptMapper;
|
|
private FsCompanyExternalPayReceiptMapper externalPayReceiptMapper;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IFsUserAddressService fsUserAddressService;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public FsCompanyCustomer selectFsCompanyCustomerById(Long id) {
|
|
public FsCompanyCustomer selectFsCompanyCustomerById(Long id) {
|
|
|
return fsCompanyCustomerMapper.selectFsCompanyCustomerById(id);
|
|
return fsCompanyCustomerMapper.selectFsCompanyCustomerById(id);
|
|
@@ -221,6 +229,23 @@ public class FsCompanyCustomerServiceImpl implements IFsCompanyCustomerService {
|
|
|
if (CollectionUtils.isEmpty(fsStoreOrderVOS)){
|
|
if (CollectionUtils.isEmpty(fsStoreOrderVOS)){
|
|
|
return Collections.emptyList();
|
|
return Collections.emptyList();
|
|
|
}
|
|
}
|
|
|
|
|
+ for (FsStoreOrderVO vo : fsStoreOrderVOS) {
|
|
|
|
|
+ String maskedNumber = vo.getUserPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2");
|
|
|
|
|
+ vo.setPhone(maskedNumber);
|
|
|
|
|
+ vo.setUserPhone(maskedNumber);
|
|
|
|
|
+ if (StringUtils.isNotEmpty(vo.getItemJson())) {
|
|
|
|
|
+ JSONArray jsonArray = JSONUtil.parseArray(vo.getItemJson());
|
|
|
|
|
+ List<FsStoreOrderItemVO> items = JSONUtil.toList(jsonArray, FsStoreOrderItemVO.class);
|
|
|
|
|
+ if (!items.isEmpty()) {
|
|
|
|
|
+ vo.setItems(items);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
return fsStoreOrderVOS;
|
|
return fsStoreOrderVOS;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public String getKdnAddress(String address) {
|
|
|
|
|
+ return fsUserAddressService.getKdnAddress(address);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|