|
@@ -1,6 +1,7 @@
|
|
|
package com.fs.his.controller;
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fs.common.annotation.Log;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
@@ -16,6 +17,7 @@ import com.fs.his.enums.ShipperCodeEnum;
|
|
|
import com.fs.his.param.FsIntegralOrderParam;
|
|
|
import com.fs.his.service.IFsExpressService;
|
|
|
import com.fs.his.service.IFsIntegralOrderService;
|
|
|
+import com.fs.his.utils.PhoneUtil;
|
|
|
import com.fs.his.vo.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -66,8 +68,17 @@ public class FsIntegralOrderController extends BaseController
|
|
|
{
|
|
|
List<FsIntegralOrder> list = fsIntegralOrderService.selectFsIntegralOrderList(fsIntegralOrder);
|
|
|
for (FsIntegralOrder vo : list) {
|
|
|
+ //商品名称以及原价赋值
|
|
|
+ String itemJson = vo.getItemJson();
|
|
|
+ if(StringUtils.isNotBlank(itemJson)){
|
|
|
+ JSONObject jsonObject = JSONObject.parseObject(itemJson);
|
|
|
+ vo.setGoodsName(jsonObject.getString("goodsName"));
|
|
|
+ vo.setOtPrice(jsonObject.getBigDecimal("otPrice"));
|
|
|
+ }
|
|
|
if (vo.getUserPhone()!=null&&!vo.getUserPhone().equals("")){
|
|
|
- vo.setUserPhone(vo.getUserPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
+ if(vo.getUserPhone().chars().allMatch(Character::isDigit)){continue;}
|
|
|
+// vo.setUserPhone(vo.getUserPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
+ vo.setUserPhone(PhoneUtil.decryptPhone(vo.getUserPhone()));
|
|
|
}
|
|
|
}
|
|
|
ExcelUtil<FsIntegralOrder> util = new ExcelUtil<FsIntegralOrder>(FsIntegralOrder.class);
|