8 changed files with 78 additions and 8 deletions
@ -0,0 +1,18 @@ |
|||
package com.ccsens.ht.persist.dao; |
|||
|
|||
import com.ccsens.ht.bean.po.HtPatientReportRecordDesc; |
|||
import com.ccsens.ht.persist.mapper.HtPatientReportRecordDescMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author whj |
|||
*/ |
|||
public interface HtPatientReportRecordDescDao extends HtPatientReportRecordDescMapper { |
|||
/** |
|||
* 批量保存答案 |
|||
* @param records 保存答案 |
|||
*/ |
|||
void batchSave(@Param("list") List<HtPatientReportRecordDesc> records); |
|||
} |
@ -1,4 +1,4 @@ |
|||
spring: |
|||
profiles: |
|||
active: prod |
|||
include: common, util-prod |
|||
active: test |
|||
include: common, util-test |
@ -0,0 +1,12 @@ |
|||
<?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.ccsens.ht.persist.dao.HtPatientReportRecordDescDao"> |
|||
|
|||
|
|||
<insert id="batchSave"> |
|||
insert into t_ht_patient_report_record_desc(id, patient_report_id, record_id, answer) values |
|||
<foreach collection="list" item="item" separator=","> |
|||
(#{item.id}, #{item.patientReportId}, #{item.recordId}, #{item.answer}) |
|||
</foreach> |
|||
</insert> |
|||
</mapper> |
Loading…
Reference in new issue