|
|
@@ -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.*;
|
|
|
@@ -22,6 +23,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.servlet.ModelAndView;
|
|
|
import springfox.documentation.annotations.Cacheable;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
@@ -249,5 +251,41 @@ public class IndexScrmController extends AppBaseController {
|
|
|
return R.ok().put("data",chineseMedicine);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 用户协议
|
|
|
+ * @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);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|