|
|
@@ -6,6 +6,7 @@ import com.fs.app.annotation.Login;
|
|
|
import com.fs.app.controller.AppBaseController;
|
|
|
import com.fs.app.vo.IndexVO;
|
|
|
import com.fs.common.core.domain.R;
|
|
|
+import com.fs.his.config.AgreementConfig;
|
|
|
import com.fs.hisStore.domain.*;
|
|
|
import com.fs.hisStore.param.*;
|
|
|
import com.fs.hisStore.service.*;
|
|
|
@@ -225,6 +226,42 @@ public class IndexScrmController extends AppBaseController {
|
|
|
FsMedicatedFoodScrm food=medicatedFoodService.selectFsMedicatedFoodById(id);
|
|
|
return R.ok().put("data",food);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户协议
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getAgreementConfig")
|
|
|
+ public R getAgreementConfig(@RequestParam("name") String name)
|
|
|
+ {
|
|
|
+ String json=configService.selectConfigByKey("his.agreementConfig");
|
|
|
+ AgreementConfig config= JSONUtil.toBean(json, AgreementConfig.class);
|
|
|
+ String data = null;
|
|
|
+ switch (name){
|
|
|
+ case "userRegister":
|
|
|
+ data = config.getUserRegister();
|
|
|
+ break;
|
|
|
+ case "userPrivacy":
|
|
|
+ data = config.getUserPrivacy();
|
|
|
+ break;
|
|
|
+ case "userHealth":
|
|
|
+ data = config.getUserHealth();
|
|
|
+ break;
|
|
|
+ case "vipService":
|
|
|
+ data = config.getVipService();
|
|
|
+ break;
|
|
|
+ case "vipAutomaticService":
|
|
|
+ data = config.getVipAutomaticService();
|
|
|
+ break;
|
|
|
+ case "userRemoveService":
|
|
|
+ data = config.getUserRemoveService();
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ return R.ok().put("data",data);
|
|
|
+ }
|
|
|
@ApiOperation("获取中医列表")
|
|
|
@GetMapping("/getChineseMedicineList")
|
|
|
public R getChineseMedicineList(FsChineseMedicineListUParam param)
|