|
@@ -1,10 +1,13 @@
|
|
|
package com.fs.app.controller;
|
|
package com.fs.app.controller;
|
|
|
|
|
|
|
|
import com.fs.common.core.domain.R;
|
|
import com.fs.common.core.domain.R;
|
|
|
|
|
+import com.fs.course.domain.FsCoursePlaySourceConfig;
|
|
|
|
|
+import com.fs.course.service.impl.FsCoursePlaySourceConfigServiceImpl;
|
|
|
import com.fs.his.param.FsDiagnosisListDParam;
|
|
import com.fs.his.param.FsDiagnosisListDParam;
|
|
|
import com.fs.system.service.ISysConfigService;
|
|
import com.fs.system.service.ISysConfigService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
@@ -16,6 +19,9 @@ public class SysConfigController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ISysConfigService sysConfigService;
|
|
private ISysConfigService sysConfigService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private FsCoursePlaySourceConfigServiceImpl selectConfigByKey;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
//获取APP推广信息
|
|
//获取APP推广信息
|
|
|
@GetMapping("/getAppPromotion")
|
|
@GetMapping("/getAppPromotion")
|
|
@@ -23,4 +29,16 @@ public class SysConfigController {
|
|
|
String selectConfigByKey = sysConfigService.selectConfigByKey("app.config");
|
|
String selectConfigByKey = sysConfigService.selectConfigByKey("app.config");
|
|
|
return R.ok().put("data", selectConfigByKey);
|
|
return R.ok().put("data", selectConfigByKey);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 根据appid 获取小程序的客服电话和备案号
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("/getMiniCustomerNumAndRecordNum/{appId}")
|
|
|
|
|
+ public R getMiniCustomerNumAndRecordNum(@PathVariable("appId") String appId){
|
|
|
|
|
+ FsCoursePlaySourceConfig fsCoursePlaySourceConfig = selectConfigByKey.selectCoursePlaySourceConfigByAppId(appId);
|
|
|
|
|
+
|
|
|
|
|
+ return R.ok().put("recordNumber", fsCoursePlaySourceConfig.getRecordNumber()).put("customerNum",fsCoursePlaySourceConfig.getCustomerNum());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+
|