Ver Fonte

1、新增儿童协议
2、跳这个看课疗法包为展示问题

yys há 1 mês atrás
pai
commit
ced5b73efd

+ 21 - 0
fs-redis/src/main/resources/templates/childrenPrivacyPolicy.html

@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:th="http://www.thymeleaf.org">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+    <title >儿童隐私保护协议</title>
+    <link  rel="stylesheet"/>
+    <style>
+        body{
+            background-color:#F8F8F8;
+        }
+    </style>
+<body>
+<div th:utext="${childrenPrivacyPolicy}" ></div>
+<script th:inline="javascript">
+
+</script>
+
+</body>
+</html>

+ 9 - 3
fs-service/src/main/java/com/fs/course/mapper/FsDepVideoShowMapper.java

@@ -9,14 +9,14 @@ import org.apache.ibatis.annotations.Update;
 
 /**
  * 部门视频疗包展示关联Mapper接口
- * 
+ *
  * @author fs
  * @date 2025-10-11
  */
 public interface FsDepVideoShowMapper extends BaseMapper<FsDepVideoShow>{
     /**
      * 部门视频疗包展示关联
-     * 
+     *
      * @param videoId, depId  部门视频疗包展示关联主键
      * @return 部门视频疗包展示关联
      */
@@ -37,7 +37,13 @@ public interface FsDepVideoShowMapper extends BaseMapper<FsDepVideoShow>{
     @Insert("INSERT INTO fs_dep_video_show(video_id, is_show, dep_id) VALUES(#{videoId}, #{isShow}, #{depId})")
     int insertFsDepVideoShowByVideoId(FsDepVideoShow fsDepVideoShow);
 
-    @Update("UPDATE fs_dep_video_show SET is_show = #{isShow} WHERE video_id = #{videoId} AND dep_id = #{depId}")
+    @Update("<script>" +
+            "UPDATE fs_dep_video_show SET is_show = #{isShow} " +
+            "WHERE video_id = #{videoId} " +
+            "<if test='depId != null'>" +
+            "AND dep_id = #{depId} " +
+            "</if>" +
+            "</script>")
     int updateByVideoId(FsDepVideoShow fsDepVideoShow);
 
 }

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

@@ -12,4 +12,5 @@ public class AgreementConfig implements Serializable {
     String vipService;
     String vipAutomaticService;
     String userRemoveService;
+    String childrenPrivacyPolicy;
 }

+ 6 - 0
fs-service/src/main/java/com/fs/hisStore/config/AgreementConfig.java

@@ -20,4 +20,10 @@ public class AgreementConfig implements Serializable {
     String userHealth;
     //会员服务协议
     String vipService;
+    //会员自动续费协议
+    String vipAutomaticService;
+    //用户注销协议
+    String userRemoveService;
+    //儿童隐私协议
+    String childrenPrivacyPolicy;
 }

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

@@ -86,5 +86,16 @@ public class H5Controller
         return mv;
     }
 
+    @GetMapping("/childrenPrivacyPolicy")
+    public ModelAndView childrenPrivacyPolicy( )
+    {
+        String json=configService.selectConfigByKey("his.agreementConfig");
+        AgreementConfig config= JSONUtil.toBean(json, AgreementConfig.class);
+        ModelAndView mv=new ModelAndView();
+        mv.addObject("childrenPrivacyPolicy", config.getChildrenPrivacyPolicy());
+        mv.setViewName("childrenPrivacyPolicy");
+        return mv;
+    }
+
 
 }

+ 10 - 0
fs-user-app/src/main/java/com/fs/app/controller/store/H5ScrmController.java

@@ -102,6 +102,16 @@ public class H5ScrmController
         //return R.ok().put("vipService", config.getVipService());
         return mv;
     }
+    @GetMapping("/childrenPrivacyPolicy")
+    public ModelAndView childrenPrivacyPolicy( )
+    {
+        String json=configService.selectConfigByKey("his.agreementConfig");
+        AgreementConfig config= JSONUtil.toBean(json, AgreementConfig.class);
+        ModelAndView mv=new ModelAndView();
+        mv.addObject("childrenPrivacyPolicy", config.getChildrenPrivacyPolicy());
+        mv.setViewName("childrenPrivacyPolicy");
+        return mv;
+    }
 
 
 }

+ 21 - 0
fs-user-app/src/main/resources/templates/childrenPrivacyPolicy.html

@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:th="http://www.thymeleaf.org">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+    <title >儿童隐私保护协议</title>
+    <link  rel="stylesheet"/>
+    <style>
+        body{
+            background-color:#F8F8F8;
+        }
+    </style>
+<body>
+<div th:utext="${childrenPrivacyPolicy}" ></div>
+<script th:inline="javascript">
+
+</script>
+
+</body>
+</html>