|
|
@@ -30,6 +30,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
@RestController
|
|
|
@@ -50,6 +51,12 @@ public class FsStoreHealthOrderController extends BaseController {
|
|
|
@GetMapping("/healthList")
|
|
|
public TableDataInfo healthStoreList(FsStoreOrderParam param) {
|
|
|
startPage();
|
|
|
+ // 将逗号分隔的字符串转换为 List
|
|
|
+ List<String> orderSourceList = null;
|
|
|
+ if (StringUtils.isNotBlank(param.getOrderSource())) {
|
|
|
+ orderSourceList = Arrays.asList(param.getOrderSource().split(","));
|
|
|
+ param.setOrderSources(orderSourceList);
|
|
|
+ }
|
|
|
if(!StringUtils.isEmpty(param.getCreateTimeRange())){
|
|
|
param.setCreateTimeList(param.getCreateTimeRange().split("--"));
|
|
|
}
|
|
|
@@ -83,6 +90,12 @@ public class FsStoreHealthOrderController extends BaseController {
|
|
|
@Log(title = "健康商城订单", businessType = BusinessType.EXPORT)
|
|
|
@GetMapping("/healthExport")
|
|
|
public AjaxResult export1(FsStoreOrderParam param) {
|
|
|
+ // 将逗号分隔的字符串转换为 List
|
|
|
+ List<String> orderSourceList = null;
|
|
|
+ if (StringUtils.isNotBlank(param.getOrderSource())) {
|
|
|
+ orderSourceList = Arrays.asList(param.getOrderSource().split(","));
|
|
|
+ param.setOrderSources(orderSourceList);
|
|
|
+ }
|
|
|
if (param.getBeginTime().equals("") && param.getEndTime().equals("")){
|
|
|
param.setBeginTime(null);
|
|
|
param.setEndTime(null);
|
|
|
@@ -113,7 +126,6 @@ public class FsStoreHealthOrderController extends BaseController {
|
|
|
if (vo.getUserPhone() != null) {
|
|
|
vo.setUserPhone(vo.getUserPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
ExcelUtil<FsStoreOrderExportVO> util = new ExcelUtil<FsStoreOrderExportVO>(FsStoreOrderExportVO.class);
|