StrTransferOutNoteMapper.xml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.diagbot.mapper.StrTransferOutNoteMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.diagbot.entity.StrTransferOutNote">
  6. <id column="rec_id" property="recId" />
  7. <result column="hospital_id" property="hospitalId" />
  8. <result column="behospital_code" property="behospitalCode" />
  9. <result column="name" property="name" />
  10. <result column="sex" property="sex" />
  11. <result column="age" property="age" />
  12. <result column="bed_no" property="bedNo" />
  13. <result column="dept_name" property="deptName" />
  14. <result column="record_date" property="recordDate" />
  15. <result column="transfer_in_date" property="transferInDate" />
  16. <result column="transfer_out_dept" property="transferOutDept" />
  17. <result column="transfer_in_dept" property="transferInDept" />
  18. <result column="chief" property="chief" />
  19. <result column="behospital_situation" property="behospitalSituation" />
  20. <result column="current_situation" property="currentSituation" />
  21. <result column="tentative_diagnosis" property="tentativeDiagnosis" />
  22. <result column="treatment_process" property="treatmentProcess" />
  23. <result column="current_diagnosis" property="currentDiagnosis" />
  24. <result column="treat_plan" property="treatPlan" />
  25. <result column="rec_doctor" property="recDoctor" />
  26. <result column="rec_date" property="recDate" />
  27. <result column="audit_doctor" property="auditDoctor" />
  28. <result column="audit_date" property="auditDate" />
  29. <result column="whole_data" property="wholeData" />
  30. <result column="remark" property="remark" />
  31. <result column="is_deleted" property="isDeleted" />
  32. <result column="gmt_create" property="gmtCreate" />
  33. <result column="gmt_modified" property="gmtModified" />
  34. <result column="creator" property="creator" />
  35. <result column="modifier" property="modifier" />
  36. </resultMap>
  37. <update id="updateBatchByKey">
  38. <foreach collection="list" item="item" separator=";">
  39. update str_transfer_out_note
  40. <set>
  41. name= #{item.name},
  42. sex= #{item.sex},
  43. age= #{item.age},
  44. bed_no= #{item.bedNo},
  45. dept_name= #{item.deptName},
  46. record_date= #{item.recordDate},
  47. transfer_in_date= #{item.transferInDate},
  48. transfer_out_dept= #{item.transferOutDept},
  49. transfer_in_dept= #{item.transferInDept},
  50. chief= #{item.chief},
  51. behospital_situation= #{item.behospitalSituation},
  52. current_situation= #{item.currentSituation},
  53. tentative_diagnosis= #{item.tentativeDiagnosis},
  54. treatment_process= #{item.treatmentProcess},
  55. current_diagnosis= #{item.currentDiagnosis},
  56. treat_plan= #{item.treatPlan},
  57. rec_doctor= #{item.recDoctor},
  58. rec_date= #{item.recDate},
  59. audit_doctor= #{item.auditDoctor},
  60. audit_date= #{item.auditDate},
  61. whole_data= #{item.wholeData},
  62. remark= #{item.remark},
  63. <if test="item.gmtModified != null">
  64. gmt_modified = #{item.gmtModified},
  65. </if>
  66. <if test="item.modifier != null">
  67. modifier = #{item.modifier},
  68. </if>
  69. </set>
  70. where rec_id = #{item.recId} and hospital_id = #{item.hospitalId} and behospital_code = #{item.behospitalCode}
  71. </foreach>
  72. </update>
  73. <select id="getColumnZhAndCh" resultType="com.diagbot.dto.data.ColumnZhAndChDTO">
  74. select COLUMN_NAME as en,column_comment as ch from INFORMATION_SCHEMA.Columns where table_name='str_transfer_out_note'
  75. </select>
  76. </mapper>