|
|
@@ -5,9 +5,16 @@ import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
+import cn.hutool.http.HttpRequest;
|
|
|
+import cn.hutool.http.HttpResponse;
|
|
|
+import cn.hutool.http.HttpUtil;
|
|
|
+import com.alibaba.fastjson2.JSON;
|
|
|
+import com.alibaba.fastjson2.JSONObject;
|
|
|
import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.core.redis.RedisCache;
|
|
|
+import com.fs.common.utils.CloudHostUtils;
|
|
|
import com.fs.common.utils.SecurityUtils;
|
|
|
+import com.fs.common.utils.StringUtils;
|
|
|
import com.fs.his.domain.FsChineseMedicine;
|
|
|
import com.fs.his.domain.FsFollowTemp;
|
|
|
import com.fs.his.param.FsPackageParam;
|
|
|
@@ -18,6 +25,7 @@ import com.fs.his.vo.FsPackageChooseVO;
|
|
|
import com.fs.his.vo.FsPackageExcelVO;
|
|
|
import com.fs.his.vo.FsPackageListVO;
|
|
|
import com.fs.his.vo.OptionsVO;
|
|
|
+import com.fs.wxwork.utils.WxWorkHttpUtilNew;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
@@ -57,6 +65,24 @@ public class FsPackageController extends BaseController
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(FsPackageParam fsPackage)
|
|
|
{
|
|
|
+
|
|
|
+ if (fsPackage != null && fsPackage.getIsShow() == 2 && CloudHostUtils.hasCloudHostName("金牛明医")){
|
|
|
+ //康年商城套餐
|
|
|
+ String urlPath = "https://admin.kangniantangyiyao.top/prod-api/store/store/storeProductPackage/list";
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ map.put("pageNum",fsPackage.getPageNum());
|
|
|
+ map.put("pageSize",fsPackage.getPageSize());
|
|
|
+ map.put("title",fsPackage.getPackageName());
|
|
|
+ map.put("status",1);
|
|
|
+ String response = WxWorkHttpUtilNew.get(urlPath, map);
|
|
|
+ if (StringUtils.isNotBlank(response)){
|
|
|
+ TableDataInfo tableDataInfo = JSON.parseObject(response, TableDataInfo.class);
|
|
|
+ if (tableDataInfo.getCode() == 200){
|
|
|
+ return tableDataInfo;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return new TableDataInfo();
|
|
|
+ }
|
|
|
startPage();
|
|
|
List<FsPackageListVO> list = fsPackageService.selectFsPackageListVO(fsPackage);
|
|
|
return getDataTable(list);
|