|
@@ -1,7 +1,10 @@
|
|
|
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;
|
|
@@ -9,6 +12,7 @@ import com.fs.his.domain.FsImportMember;
|
|
|
import com.fs.his.mapper.FsImportMemberMapper;
|
|
import com.fs.his.mapper.FsImportMemberMapper;
|
|
|
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;
|
|
@@ -221,6 +225,17 @@ public class FsCompanyCustomerServiceImpl implements IFsCompanyCustomerService {
|
|
|
if (CollectionUtils.isEmpty(fsStoreOrderVOS)){
|
|
if (CollectionUtils.isEmpty(fsStoreOrderVOS)){
|
|
|
return Collections.emptyList();
|
|
return Collections.emptyList();
|
|
|
}
|
|
}
|
|
|
|
|
+ for (FsStoreOrderVO vo : fsStoreOrderVOS) {
|
|
|
|
|
+ String nickName = vo.getUserPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2");
|
|
|
|
|
+ vo.setNickname(nickName);
|
|
|
|
|
+ if (StringUtils.isNotEmpty(vo.getItemJson())) {
|
|
|
|
|
+ JSONArray jsonArray = JSONUtil.parseArray(vo.getItemJson());
|
|
|
|
|
+ List<FsStoreOrderItemVO> items = JSONUtil.toList(jsonArray, FsStoreOrderItemVO.class);
|
|
|
|
|
+ if (items.size() > 0) {
|
|
|
|
|
+ vo.setItems(items);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
return fsStoreOrderVOS;
|
|
return fsStoreOrderVOS;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|