Browse Source

代码提交

yjwang 1 day ago
parent
commit
e6abe5179b

+ 4 - 0
fs-service/src/main/java/com/fs/his/config/AgreementConfig.java

@@ -10,6 +10,10 @@ public class AgreementConfig implements Serializable {
     String userRegister2;
     String userPrivacy;
     String userPrivacy2;
+    /** 互易享儿童隐私协议 */
+    String hyxChildPrivacy;
+    /** 鸿良儿童隐私协议 */
+    String hlChildPrivacy;
     String userHealth;
     String vipService;
     String vipAutomaticService;

+ 24 - 0
fs-user-app/src/main/java/com/fs/app/controller/H5Controller.java

@@ -66,6 +66,30 @@ public class H5Controller
         return mv;
     }
 
+    /** 互易享儿童隐私协议 */
+    @GetMapping("/hyxChildPrivacy")
+    public ModelAndView hyxChildPrivacy()
+    {
+        String json=configService.selectConfigByKey("his.agreementConfig");
+        AgreementConfig config= JSONUtil.toBean(json, AgreementConfig.class);
+        ModelAndView mv=new ModelAndView();
+        mv.addObject("privacyPolicy", config.getHyxChildPrivacy());
+        mv.setViewName("privacyPolicy");
+        return mv;
+    }
+
+    /** 鸿良儿童隐私协议 */
+    @GetMapping("/hlChildPrivacy")
+    public ModelAndView hlChildPrivacy()
+    {
+        String json=configService.selectConfigByKey("his.agreementConfig");
+        AgreementConfig config= JSONUtil.toBean(json, AgreementConfig.class);
+        ModelAndView mv=new ModelAndView();
+        mv.addObject("privacyPolicy", config.getHlChildPrivacy());
+        mv.setViewName("privacyPolicy");
+        return mv;
+    }
+
     @GetMapping("/healthCustomerService")
     public ModelAndView healthCustomerService( )
     {