浏览代码

增加归档接口-检验检查结果对接接口

liuqq 4 年之前
父节点
当前提交
c33c04124d
共有 2 个文件被更改,包括 50 次插入0 次删除
  1. 24 0
      src/main/resources/mapper/MedLisResultMapper.xml
  2. 26 0
      src/main/resources/mapper/MedPacsResultMapper.xml

+ 24 - 0
src/main/resources/mapper/MedLisResultMapper.xml

@@ -71,4 +71,28 @@
         </if>
     </select>
 
+    <update id="updateBatchByKey">
+        <foreach collection="list" item="item"  separator=";">
+            update med_lis_result
+            <set>
+                behospital_code = #{item.behospitalCode},
+                item_code = #{item.itemCode},
+                item_name = #{item.itemName},
+                result = #{item.result},
+                reference_min = #{item.referenceMin},
+                reference_max = #{item.referenceMax},
+                unit = #{item.unit},
+                abnormal = #{item.abnormal},
+                color = #{item.color},
+                <if test="item.gmtModified != null">
+                    gmt_modified = #{item.gmtModified},
+                </if>
+                <if test="item.modifier != null">
+                    modifier = #{item.modifier},
+                </if>
+            </set>
+            where rep_no = #{item.repNo} and hospital_id = #{item.hospitalId}
+        </foreach>
+    </update>
+
 </mapper>

+ 26 - 0
src/main/resources/mapper/MedPacsResultMapper.xml

@@ -71,4 +71,30 @@
         </if>
 
     </select>
+
+    <update id="updateBatchByKey">
+        <foreach collection="list" item="item"  separator=";">
+            update med_pacs_result
+            <set>
+                behospital_code = #{item.behospitalCode},
+                rept_name = #{item.reptName},
+                part = #{item.part},
+                clinic_sight = #{item.clinicSight},
+                rept_diag = #{item.reptDiag},
+                remark = #{item.remark},
+                clinic_diag = #{item.clinicDiag},
+                apply_doctor = #{item.applyDoctor},
+                checker_doctor = #{item.checkerDoctor},
+                report_doctor = #{item.reportDoctor},
+                dept_name = #{item.deptName},
+                <if test="item.gmtModified != null">
+                    gmt_modified = #{item.gmtModified},
+                </if>
+                <if test="item.modifier != null">
+                    modifier = #{item.modifier},
+                </if>
+            </set>
+            where rep_no = #{item.repNo} and hospital_id = #{item.hospitalId}
+        </foreach>
+    </update>
 </mapper>