parent
55461f6800
commit
527c676c2a
@ -0,0 +1,10 @@
|
||||
package com.supervision.manage.pojo.ai;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class AiMangeTalkAnswerDTO {
|
||||
|
||||
private String answer;
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package com.supervision.manage.service;
|
||||
|
||||
public interface AiMangeService {
|
||||
|
||||
String talk(String question, String medicalRecord);
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.supervision.mapper.MedicalAiMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.supervision.model.MedicalRecAi">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="commonName" column="attribute_value" jdbcType="VARCHAR"/>
|
||||
<result property="commonType" column="attribute_code" jdbcType="VARCHAR"/>
|
||||
<result property="attributeName" column="attribute_name" jdbcType="VARCHAR"/>
|
||||
<result property="attributeParam" column="attribute_param" jdbcType="INTEGER"/>
|
||||
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<resultMap id="BaseResultResMap" type="com.supervision.vo.manage.MedicalRecAiPageResVO">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="commonType" column="common_type" jdbcType="VARCHAR"/>
|
||||
<result property="commonName" column="common_name" jdbcType="VARCHAR"/>
|
||||
<result property="attributeName" column="attribute_name" jdbcType="VARCHAR"/>
|
||||
<result property="attributeParam" column="attribute_param" jdbcType="INTEGER"/>
|
||||
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id
|
||||
,medical_id,library_question_id,code,question,
|
||||
answer,answer_resources_id,answer_type,create_user_id,
|
||||
create_time,update_user_id,update_time
|
||||
</sql>
|
||||
|
||||
|
||||
<select id="queryPage" resultMap="BaseResultResMap">
|
||||
select ai.id,
|
||||
ai.attribute_name ,
|
||||
ai.attribute_param ,
|
||||
ai.create_user_id ,
|
||||
ai.create_time ,
|
||||
ai.update_user_id ,
|
||||
ai.update_time ,
|
||||
ai.common_type ,
|
||||
ai.common_name
|
||||
from vp_medical_ai_dic ai
|
||||
<where>
|
||||
<if test="medicalRecAiManageVO.attributeName != null and medicalRecAiManageVO.attributeName != ''">
|
||||
and ai.attribute_name like concat('%',#{medicalRecAiManageVO.attributeName}, ''%'')
|
||||
</if>
|
||||
</where>
|
||||
order by ai.create_time desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue