소스 검색

患者基础信息新增理疗分类

wjj 1 일 전
부모
커밋
66f8df22b6

+ 36 - 0
fs-company/src/main/java/com/fs/company/controller/his/FsProjectCateController.java

@@ -0,0 +1,36 @@
+package com.fs.company.controller.his;
+
+import com.fs.common.annotation.Log;
+import com.fs.common.core.controller.BaseController;
+import com.fs.common.core.domain.AjaxResult;
+import com.fs.common.core.page.TableDataInfo;
+import com.fs.common.enums.BusinessType;
+import com.fs.common.utils.poi.ExcelUtil;
+import com.fs.his.domain.FsProjectCate;
+import com.fs.his.service.IFsProjectCateService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+/**
+ * 理疗分类Controller
+ * 
+ * @author fs
+ * @date 2026-05-14
+ */
+@RestController
+@RequestMapping("/company/projectCate")
+public class FsProjectCateController extends BaseController
+{
+    @Autowired
+    private IFsProjectCateService fsProjectCateService;
+
+
+    @GetMapping("/options")
+    public AjaxResult selectFsProjectCateListOptions(){
+        List<FsProjectCate> list = fsProjectCateService.selectFsProjectCateListOptions();
+        return AjaxResult.success(list);
+    }
+}

+ 2 - 2
fs-company/src/main/java/com/fs/company/controller/his/FsProjectController.java

@@ -24,8 +24,8 @@ public class FsProjectController extends BaseController
 
 
     @GetMapping("/options")
-    public AjaxResult selectFsProjectListOptions(){
-        List<FsProject> list = fsProjectService.selectFsProjectListOptions();
+    public AjaxResult selectFsProjectListOptions(@RequestParam("cateId") Long cateId){
+        List<FsProject> list = fsProjectService.selectFsProjectListOptionsById(cateId);
         return AjaxResult.success(list);
     }
 

+ 4 - 0
fs-service/src/main/java/com/fs/his/mapper/FsProjectMapper.java

@@ -3,6 +3,7 @@ package com.fs.his.mapper;
 import java.util.List;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.fs.his.domain.FsProject;
+import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Select;
 
 /**
@@ -67,6 +68,9 @@ public interface FsProjectMapper extends BaseMapper<FsProject>{
     @Select("SELECT id,CONCAT_WS('-',project_name,day_name) project_name  FROM fs_project ")
     List<FsProject> selectFsProjectListOptions();
 
+    @Select("SELECT id,CONCAT_WS('-',project_name,day_name) project_name  FROM fs_project where cate_id = #{cateId}")
+    List<FsProject> selectFsProjectListOptionsByCateId(@Param("cateId") Long cateId);
+
     /**
      * 未生成音频的理疗
      */

+ 5 - 0
fs-service/src/main/java/com/fs/his/service/IFsProjectService.java

@@ -65,6 +65,11 @@ public interface IFsProjectService extends IService<FsProject>{
      */
     List<FsProject> selectFsProjectListOptions();
 
+    /**
+     * 理疗配置选项数据
+     */
+    List<FsProject> selectFsProjectListOptionsById(Long cateId);
+
     /**
      * 生成声音
      */

+ 5 - 0
fs-service/src/main/java/com/fs/his/service/impl/FsProjectServiceImpl.java

@@ -113,6 +113,11 @@ public class FsProjectServiceImpl extends ServiceImpl<FsProjectMapper, FsProject
         return fsProjectMapper.selectFsProjectListOptions();
     }
 
+    @Override
+    public List<FsProject> selectFsProjectListOptionsById(Long cateId) {
+        return fsProjectMapper.selectFsProjectListOptionsByCateId(cateId);
+    }
+
     @Override
     public void generateSound(FsProject fsProject) {
         try {

+ 5 - 0
fs-service/src/main/java/com/fs/patient/domain/FsPatientBaseInfo.java

@@ -55,6 +55,11 @@ public class FsPatientBaseInfo extends BaseEntity{
     @Excel(name = "理疗方案id")
     private Long projectId;
 
+    /**
+     * 理疗分类id
+     */
+    private Long projectCateId;
+
     /** 用户id */
     @Excel(name = "用户id")
     private Long userId;

+ 5 - 1
fs-service/src/main/resources/mapper/patient/FsPatientBaseInfoMapper.xml

@@ -24,12 +24,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="reason"    column="reason"    />
         <result property="checkStatus"    column="check_status"    />
         <result property="checkTime"    column="check_time"    />
+        <result property="projectCateId"    column="project_cate_id"    />
     </resultMap>
 
     <sql id="selectFsPatientBaseInfoVo">
         select id, name, sex, age, base_info, diagnosis_result, treatment_target, doctor_id, project_id, create_time
              , update_time, user_id, status, doctor_status,company_user_id,diagnosis_time,reason,
-            check_status,check_time
+            check_status,check_time,project_cate_id
         from fs_patient_base_info
     </sql>
 
@@ -80,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="reason != null">reason,</if>
             <if test="checkStatus != null">check_status,</if>
             <if test="checkTime != null">check_time,</if>
+            <if test="projectCateId != null">project_cate_id,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="name != null">#{name},</if>
@@ -100,6 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="reason != null">#{reason},</if>
             <if test="checkStatus != null">#{checkStatus},</if>
             <if test="checkTime != null">#{checkTime},</if>
+            <if test="projectCateId != null">#{projectCateId},</if>
          </trim>
     </insert>
 
@@ -124,6 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="reason != null">reason = #{reason},</if>
             <if test="checkStatus != null">check_status = #{checkStatus},</if>
             <if test="checkTime != null">check_time = #{checkTime},</if>
+            <if test="projectCateId != null">project_cate_id = #{projectCateId},</if>
         </trim>
         where id = #{id}
     </update>