Przeglądaj źródła

1.处方审核记录 2.医生处方拒方率

wjj 1 miesiąc temu
rodzic
commit
d76bbf86e9

+ 8 - 0
fs-doctor-app/src/main/java/com/fs/app/controller/DoctorController.java

@@ -72,6 +72,9 @@ public class DoctorController extends  AppBaseController {
 
     @Autowired
     private IFsPrescribeService fsPrescribeService;
+
+    @Autowired
+    private IFsPrescribeRecordService fsPrescribeRecordService;
     @ApiOperation("登录")
     @PostMapping("/login")
     public R login(@Validated  @RequestBody DoctorLoginParam param) {
@@ -254,6 +257,10 @@ public class DoctorController extends  AppBaseController {
             FsDepartment department=departmentService.selectFsDepartmentByDeptId(doctor.getDeptId());
             //获取医生平均操作时间
             Long avgOperateTime = fsPrescribeService.selectDoctorAvgOperateTime(Long.parseLong(getDoctorId()));
+            //医生审核信息
+            Map<String, Object> doctorCheckInfo = fsPrescribeRecordService.selectDoctorRefusePercentage(Long.parseLong(getDoctorId()));
+            String percentage = doctorCheckInfo.get("percentage").toString();
+
             String time = null;
             if (avgOperateTime != null) {
 
@@ -266,6 +273,7 @@ public class DoctorController extends  AppBaseController {
             map.put("hospital",hospital);
             map.put("department",department);
             map.put("time",time);
+            map.put("percentage",percentage);
             return R.ok(map);
         } catch (Exception e){
             return R.error("操作异常");

+ 10 - 3
fs-doctor-app/src/main/java/com/fs/app/controller/FsPrescribeController.java

@@ -14,6 +14,7 @@ import com.fs.his.domain.FsPrescribe;
 import com.fs.his.mapper.FsPatientMapper;
 import com.fs.his.param.FsPrescribeParam;
 import com.fs.his.service.IFsExportTaskService;
+import com.fs.his.service.IFsPrescribeRecordService;
 import com.fs.his.service.IFsPrescribeService;
 import com.fs.his.vo.FsPrescribeListVO;
 import com.fs.his.vo.FsPrescribeVO;
@@ -49,6 +50,9 @@ public class FsPrescribeController extends BaseController
     @Autowired
     private IFsUserInformationCollectionService fsUserInformationCollectionService;
 
+    @Autowired
+    private IFsPrescribeRecordService prescribeRecordService;
+
     /**
      * 确认处方
      * @param param 处方
@@ -69,6 +73,7 @@ public class FsPrescribeController extends BaseController
         startPage();
         List<FsPrescribeListVO> list = fsPrescribeService.selectFsPrescribeListVOWithConfirm(fsPrescribe);
         for (FsPrescribeListVO vo : list){
+            vo.setRefuseCount(prescribeRecordService.selectRefuseCount(vo.getPrescribeId()));
             if (vo.getPatientTel()!=null){
                 vo.setPatientTel(vo.getPatientTel().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
             }
@@ -210,8 +215,10 @@ public class FsPrescribeController extends BaseController
         return toAjax(fsPrescribeService.deleteFsPrescribeByPrescribeIds(prescribeIds));
     }
 
-    /**
-     * 查询用户开方操作时长
-     * */
+    //获取审核记录数据
+    @GetMapping(value = "/recordList/{prescribeId}")
+    public AjaxResult selectRecordListByPrescribeId(@PathVariable("prescribeId") Long prescribeId){
+        return AjaxResult.success(prescribeRecordService.selectRecordListByPrescribeId(prescribeId));
+    }
 
 }

+ 55 - 0
fs-service/src/main/java/com/fs/his/domain/FsPrescribeRecord.java

@@ -0,0 +1,55 @@
+package com.fs.his.domain;
+
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.fs.common.annotation.Excel;
+import lombok.Data;
+import com.fs.common.core.domain.BaseEntity;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 处方记录对象 fs_prescibe_record
+ *
+ * @author fs
+ * @date 2025-11-02
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class FsPrescribeRecord extends BaseEntity{
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 处方图片地址 */
+    @Excel(name = "处方图片地址")
+    private String prescribeImgUrl;
+
+    /** 医生id */
+    @Excel(name = "医生id")
+    private Long doctorId;
+
+    /** 药师id */
+    @Excel(name = "药师id")
+    private Long drugDoctorId;
+
+    /** 医生名称 */
+    @Excel(name = "医生名称")
+    private String doctorName;
+
+    /** 药师名称 */
+    @Excel(name = "药师名称")
+    private String drugDoctorName;
+
+    /** 状态 1通过 2拒绝 */
+    @Excel(name = "状态 1通过 2拒绝")
+    private Integer status;
+
+    /** 拒绝原因 */
+    @Excel(name = "拒绝原因")
+    private String auditReason;
+
+    /** 处方id */
+    @Excel(name = "处方id")
+    private Long prescribeId;
+
+
+}

+ 6 - 2
fs-service/src/main/java/com/fs/his/mapper/FsPrescribeMapper.java

@@ -93,8 +93,9 @@ public interface FsPrescribeMapper
             "</script>"})
     List<FsPrescribeListVO> selectFsPrescribeListVO(FsPrescribeParam fsPrescribe);
     @Select({"<script> " +
-            "select p.*  from fs_prescribe p    " +
-            "where 1=1  " +
+            "select p.*,d.doctor_name  from fs_prescribe p    " +
+            " left join fs_doctor d on d.doctor_id = p.doctor_id " +
+            " where p.prescribe_img_url is not null " +
             "<if test = ' maps.patientName!=null and maps.patientName != \"\"  '> " +
             "and p.patient_name like concat('%', #{maps.patientName}, '%') " +
             "</if>" +
@@ -295,4 +296,7 @@ public interface FsPrescribeMapper
 
     //获取医生开方操作时长统计
     List<DoctorOperateStatVO> selectDoctorOperateStatList(PrescribeStatParam param);
+
+    @Select("SELECT d.doctor_name, dd.doctor_name doctor_drug_name  FROM fs_prescribe p LEFT JOIN fs_doctor d ON p.doctor_id = d.doctor_id LEFT JOIN fs_doctor dd ON p.drug_doctor_id = dd.doctor_id WHERE p.prescribe_id = #{prescribeId}")
+    FsPrescribeListVO selectDoctorNameAndDoctorDrugNameByPrescribeId(@Param("prescribeId") Long prescribeId);
 }

+ 82 - 0
fs-service/src/main/java/com/fs/his/mapper/FsPrescribeRecordMapper.java

@@ -0,0 +1,82 @@
+package com.fs.his.mapper;
+
+import java.math.BigDecimal;
+import java.util.List;
+import java.util.Map;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.fs.his.domain.FsPrescribeRecord;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+/**
+ * 处方记录Mapper接口
+ * 
+ * @author fs
+ * @date 2025-11-02
+ */
+public interface FsPrescribeRecordMapper extends BaseMapper<FsPrescribeRecord>{
+    /**
+     * 查询处方记录
+     * 
+     * @param id 处方记录主键
+     * @return 处方记录
+     */
+    FsPrescribeRecord selectFsPrescribeRecordById(Long id);
+
+    /**
+     * 查询处方记录列表
+     * 
+     * @return 处方记录集合
+     */
+    List<FsPrescribeRecord> selectFsPrescribeRecordList(FsPrescribeRecord prescribeRecord);
+
+    /**
+     * 新增处方记录
+     * 
+     * @return 结果
+     */
+    int insertFsPrescribeRecord(FsPrescribeRecord prescribeRecord);
+
+    /**
+     * 修改处方记录
+     * 
+     * @return 结果
+     */
+    int updateFsPrescribeRecord(FsPrescribeRecord prescribeRecord);
+
+    /**
+     * 删除处方记录
+     * 
+     * @param id 处方记录主键
+     * @return 结果
+     */
+    int deleteFsPrescribeRecordById(Long id);
+
+    /**
+     * 批量删除处方记录
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    int deleteFsPrescribeRecordByIds(Long[] ids);
+
+    @Select(" SELECT count(id)  FROM fs_prescibe_record WHERE prescribe_id = #{prescribeId} AND `status` = 2 ")
+    Long selectRefuseCount(@Param("prescribeId") Long prescribeId);
+
+    @Select("SELECT * FROM fs_prescibe_record WHERE prescribe_id = #{prescribeId}  ")
+    List<FsPrescribeRecord> selectRecordListByPrescribeId(@Param("prescribeId") Long prescribeId);
+
+    @Select("SELECT \n" +
+            "    COUNT(*) AS total_count,\n" +
+            "    SUM(CASE WHEN status = 2 THEN 1 ELSE 0 END) AS rejected_count,\n" +
+            "    CASE \n" +
+            "        WHEN COUNT(*) = 0 THEN 0\n" +
+            "        ELSE ROUND(\n" +
+            "            SUM(CASE WHEN status = 2 THEN 1 ELSE 0 END) * 100.0 / COUNT(*), \n" +
+            "            2\n" +
+            "        )\n" +
+            "    END AS percentage\n" +
+            "FROM fs_prescibe_record WHERE doctor_id = #{doctorId} ")
+    Map<String,Object> selectDoctorRefusePercentage(@Param("doctorId") Long doctorId);
+}

+ 68 - 0
fs-service/src/main/java/com/fs/his/service/IFsPrescribeRecordService.java

@@ -0,0 +1,68 @@
+package com.fs.his.service;
+
+import java.util.List;
+import java.util.Map;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.fs.his.domain.FsPrescribeRecord;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * 处方记录Service接口
+ * 
+ * @author fs
+ * @date 2025-11-02
+ */
+public interface IFsPrescribeRecordService extends IService<FsPrescribeRecord>{
+    /**
+     * 查询处方记录
+     * 
+     * @param id 处方记录主键
+     * @return 处方记录
+     */
+    FsPrescribeRecord selectFsPrescribeRecordById(Long id);
+
+    /**
+     * 查询处方记录列表
+     * 
+     * @return 处方记录集合
+     */
+    List<FsPrescribeRecord> selectFsPrescibeRecordList(FsPrescribeRecord prescribeRecord);
+
+    /**
+     * 新增处方记录
+     * 
+     * @return 结果
+     */
+    int insertFsPrescribeRecord(FsPrescribeRecord prescribeRecord);
+
+    /**
+     * 修改处方记录
+     * 
+     * @return 结果
+     */
+    int updateFsPrescribeRecord(FsPrescribeRecord prescribeRecord);
+
+    /**
+     * 批量删除处方记录
+     * 
+     * @param ids 需要删除的处方记录主键集合
+     * @return 结果
+     */
+    int deleteFsPrescribeRecordByIds(Long[] ids);
+
+    /**
+     * 删除处方记录信息
+     * 
+     * @param id 处方记录主键
+     * @return 结果
+     */
+    int deleteFsPrescribeRecordById(Long id);
+
+    //获取处方单被拒方次数
+    Long selectRefuseCount(Long prescribeId);
+
+    List<FsPrescribeRecord> selectRecordListByPrescribeId(Long prescribeId);
+
+    Map<String,Object> selectDoctorRefusePercentage(Long doctorId);
+}

+ 112 - 0
fs-service/src/main/java/com/fs/his/service/impl/FsPrescibeRecordServiceImpl.java

@@ -0,0 +1,112 @@
+package com.fs.his.service.impl;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+import com.fs.common.utils.DateUtils;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fs.his.domain.FsPrescribeRecord;
+import com.fs.his.mapper.FsPrescribeRecordMapper;
+import com.fs.his.service.IFsPrescribeRecordService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 处方记录Service业务层处理
+ * 
+ * @author fs
+ * @date 2025-11-02
+ */
+@Service
+public class FsPrescibeRecordServiceImpl extends ServiceImpl<FsPrescribeRecordMapper, FsPrescribeRecord> implements IFsPrescribeRecordService {
+
+    @Autowired
+    private FsPrescribeRecordMapper prescribeRecordMapper;
+
+    /**
+     * 查询处方记录
+     * 
+     * @param id 处方记录主键
+     * @return 处方记录
+     */
+    @Override
+    public FsPrescribeRecord selectFsPrescribeRecordById(Long id)
+    {
+        return prescribeRecordMapper.selectFsPrescribeRecordById(id);
+    }
+
+    /**
+     * 查询处方记录列表
+     * 
+     * @return 处方记录
+     */
+    @Override
+    public List<FsPrescribeRecord> selectFsPrescibeRecordList(FsPrescribeRecord prescribeRecord)
+    {
+        return prescribeRecordMapper.selectFsPrescribeRecordList(prescribeRecord);
+    }
+
+    /**
+     * 新增处方记录
+     * 
+     * @return 结果
+     */
+    @Override
+    public int insertFsPrescribeRecord(FsPrescribeRecord prescribeRecord)
+    {
+        prescribeRecord.setCreateTime(DateUtils.getNowDate());
+        return prescribeRecordMapper.insertFsPrescribeRecord(prescribeRecord);
+    }
+
+    /**
+     * 修改处方记录
+     * 
+     * @return 结果
+     */
+    @Override
+    public int updateFsPrescribeRecord(FsPrescribeRecord prescribeRecord)
+    {
+        prescribeRecord.setUpdateTime(DateUtils.getNowDate());
+        return prescribeRecordMapper.updateFsPrescribeRecord(prescribeRecord);
+    }
+
+    /**
+     * 批量删除处方记录
+     * 
+     * @param ids 需要删除的处方记录主键
+     * @return 结果
+     */
+    @Override
+    public int deleteFsPrescribeRecordByIds(Long[] ids)
+    {
+        return prescribeRecordMapper.deleteFsPrescribeRecordByIds(ids);
+    }
+
+    /**
+     * 删除处方记录信息
+     * 
+     * @param id 处方记录主键
+     * @return 结果
+     */
+    @Override
+    public int deleteFsPrescribeRecordById(Long id)
+    {
+        return prescribeRecordMapper.deleteFsPrescribeRecordById(id);
+    }
+
+    @Override
+    public Long selectRefuseCount(Long prescribeId) {
+        return prescribeRecordMapper.selectRefuseCount(prescribeId);
+    }
+
+    @Override
+    public List<FsPrescribeRecord> selectRecordListByPrescribeId(Long prescribeId) {
+        return prescribeRecordMapper.selectRecordListByPrescribeId(prescribeId);
+    }
+
+    @Override
+    public Map<String, Object> selectDoctorRefusePercentage(Long doctorId) {
+        return prescribeRecordMapper.selectDoctorRefusePercentage(doctorId);
+    }
+}

+ 27 - 1
fs-service/src/main/java/com/fs/his/service/impl/FsPrescribeServiceImpl.java

@@ -104,6 +104,10 @@ public class FsPrescribeServiceImpl implements IFsPrescribeService
 
     @Autowired
     private FsUserInformationCollectionMapper collectionMapper;
+
+    @Autowired
+    private IFsPrescribeRecordService prescribeRecordService;
+
     /**
      * 查询处方
      *
@@ -577,7 +581,9 @@ public class FsPrescribeServiceImpl implements IFsPrescribeService
 
     @Override
     public Long insertFsPrescribeByPackageOrder(FsPackageOrder packageOrder) {
+        log.info("开始生成处方单");
         FsPackage fsPackage=fsPackageMapper.selectFsPackageByPackageId(packageOrder.getPackageId());
+        log.info("packageOrder:{}",packageOrder);
         FsPrescribe fsPrescribe = new FsPrescribe();
         fsPrescribe.setPrescribeType(fsPackage.getProductType());
         fsPrescribe.setRecipeType(fsPackage.getRecipeType());
@@ -1011,11 +1017,31 @@ public class FsPrescribeServiceImpl implements IFsPrescribeService
         if(StringUtils.isNotEmpty(doctor.getSignUrl())){
             map.setDrugDoctorSignUrl(doctor.getSignUrl());
         }
+
+        //获取医生和药师名称
+        FsPrescribeListVO vo = fsPrescribeMapper.selectDoctorNameAndDoctorDrugNameByPrescribeId(prescribe.getPrescribeId());
+        //生成审核记录
+        FsPrescribeRecord prescribeRecord = new FsPrescribeRecord();
+        prescribeRecord.setPrescribeId(prescribe.getPrescribeId());
+        prescribeRecord.setDoctorId(prescribe.getDoctorId());
+        prescribeRecord.setDrugDoctorId(prescribe.getDrugDoctorId());
+        prescribeRecord.setPrescribeImgUrl(prescribe.getPrescribeImgUrl());
+        prescribeRecord.setStatus(param.getStatus());
+        prescribeRecord.setAuditReason(param.getAuditReason());
+        prescribeRecord.setCreateTime(DateUtils.getNowDate());
+        prescribeRecord.setDoctorName(vo.getDoctorName());
+        prescribeRecord.setDrugDoctorName(vo.getDoctorDrugName());
+        prescribeRecordService.insertFsPrescribeRecord(prescribeRecord);
         if (param.getStatus() == 1) {
             map.setAuditReason("");
-            delUrl(param.getPrescribeId());
             fsExportTaskService.updateFsExportTaskByPrescribeId(param.getPrescribeId());
         }
+
+        if (param.getStatus() == 2) {
+            //TODO 添加拒方记录
+
+        }
+        delUrl(param.getPrescribeId());
         if (this.updateFsPrescribe(map) > 0){
             return R.ok("审核成功");
         }

+ 2 - 0
fs-service/src/main/java/com/fs/his/vo/FsPrescribeListDVO.java

@@ -57,6 +57,8 @@ public class FsPrescribeListDVO implements Serializable {
 
     List<FsPrescribeDrug> drugs;
 
+    private String doctorName;
+
 
 
 }

+ 4 - 0
fs-service/src/main/java/com/fs/his/vo/FsPrescribeListVO.java

@@ -174,4 +174,8 @@ public class FsPrescribeListVO {
 
     //操作秒数
     private String operateSecond;
+
+    //拒方次数
+    private Long refuseCount;
+
 }

+ 101 - 0
fs-service/src/main/resources/mapper/his/FsPrescibeRecordMapper.xml

@@ -0,0 +1,101 @@
+<?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.fs.his.mapper.FsPrescribeRecordMapper">
+    
+    <resultMap type="FsPrescribeRecord" id="FsPrescribeRecordResult">
+        <result property="id"    column="id"    />
+        <result property="prescribeImgUrl"    column="prescribe_img_url"    />
+        <result property="doctorId"    column="doctor_id"    />
+        <result property="drugDoctorId"    column="drug_doctor_id"    />
+        <result property="doctorName"    column="doctor_name"    />
+        <result property="drugDoctorName"    column="drug_doctor_name"    />
+        <result property="status"    column="status"    />
+        <result property="auditReason"    column="audit_reason"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="prescribeId"    column="prescribe_id"    />
+    </resultMap>
+
+    <sql id="selectFsPrescribeRecordVo">
+        select id, prescribe_img_url, doctor_id, drug_doctor_id, doctor_name, drug_doctor_name, status, audit_reason, create_time, update_time, prescribe_id from fs_prescibe_record
+    </sql>
+
+    <select id="selectFsPrescribeRecordById" parameterType="FsPrescribeRecord" resultMap="FsPrescribeRecordResult">
+        <include refid="selectFsPrescribeRecordVo"/>
+        <where>  
+            <if test="prescribeImgUrl != null  and prescribeImgUrl != ''"> and prescribe_img_url = #{prescribeImgUrl}</if>
+            <if test="doctorId != null "> and doctor_id = #{doctorId}</if>
+            <if test="drugDoctorId != null "> and drug_doctor_id = #{drugDoctorId}</if>
+            <if test="doctorName != null  and doctorName != ''"> and doctor_name like concat('%', #{doctorName}, '%')</if>
+            <if test="drugDoctorName != null  and drugDoctorName != ''"> and drug_doctor_name like concat('%', #{drugDoctorName}, '%')</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="auditReason != null  and auditReason != ''"> and audit_reason = #{auditReason}</if>
+            <if test="prescribeId != null "> and prescribe_id = #{prescribeId}</if>
+        </where>
+    </select>
+    
+    <select id="selectFsPrescribeRecordList" parameterType="Long" resultMap="FsPrescribeRecordResult">
+        <include refid="selectFsPrescribeRecordVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertFsPrescribeRecord" parameterType="FsPrescribeRecord">
+        insert into fs_prescibe_record
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="prescribeImgUrl != null">prescribe_img_url,</if>
+            <if test="doctorId != null">doctor_id,</if>
+            <if test="drugDoctorId != null">drug_doctor_id,</if>
+            <if test="doctorName != null">doctor_name,</if>
+            <if test="drugDoctorName != null">drug_doctor_name,</if>
+            <if test="status != null">status,</if>
+            <if test="auditReason != null">audit_reason,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="prescribeId != null">prescribe_id,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="prescribeImgUrl != null">#{prescribeImgUrl},</if>
+            <if test="doctorId != null">#{doctorId},</if>
+            <if test="drugDoctorId != null">#{drugDoctorId},</if>
+            <if test="doctorName != null">#{doctorName},</if>
+            <if test="drugDoctorName != null">#{drugDoctorName},</if>
+            <if test="status != null">#{status},</if>
+            <if test="auditReason != null">#{auditReason},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="prescribeId != null">#{prescribeId},</if>
+         </trim>
+    </insert>
+
+    <update id="updateFsPrescribeRecord" parameterType="FsPrescribeRecord">
+        update fs_prescibe_record
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="prescribeImgUrl != null">prescribe_img_url = #{prescribeImgUrl},</if>
+            <if test="doctorId != null">doctor_id = #{doctorId},</if>
+            <if test="drugDoctorId != null">drug_doctor_id = #{drugDoctorId},</if>
+            <if test="doctorName != null">doctor_name = #{doctorName},</if>
+            <if test="drugDoctorName != null">drug_doctor_name = #{drugDoctorName},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="auditReason != null">audit_reason = #{auditReason},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="prescribeId != null">prescribe_id = #{prescribeId},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteFsPrescribeRecordById" parameterType="Long">
+        delete from fs_prescibe_record where id = #{id}
+    </delete>
+
+    <delete id="deleteFsPrescribeRecordByIds" parameterType="String">
+        delete from fs_prescibe_record where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 6 - 0
fs-service/src/main/resources/mapper/his/FsPrescribeMapper.xml

@@ -151,6 +151,9 @@
             <if test="source != null">source,</if>
             <if test="prescribeImgStoreUrl != null">prescribe_img_store_url,</if>
             <if test="doctorConfirm != null">doctor_confirm,</if>
+            <if test="startOperateTime != null">start_operate_time,</if>
+            <if test="endOperateTime != null">end_operate_time,</if>
+            <if test="operateSecond != null">operate_second,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="prescribeType != null">#{prescribeType},</if>
@@ -196,6 +199,9 @@
             <if test="source != null">#{source},</if>
             <if test="prescribeImgStoreUrl != null">#{prescribeImgStoreUrl},</if>
             <if test="doctorConfirm != null">#{doctorConfirm},</if>
+            <if test="startOperateTime != null">#{startOperateTime},</if>
+            <if test="endOperateTime != null">#{endOperateTime},</if>
+            <if test="operateSecond != null">#{operateSecond},</if>
         </trim>
     </insert>