소스 검색

1、内部通用分支,冲突处理

liuqq 3 년 전
부모
커밋
54ce1a399f
1개의 변경된 파일43개의 추가작업 그리고 0개의 파일을 삭제
  1. 43 0
      src/main/resources/mapper/BehospitalInfoMapper.xml

+ 43 - 0
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -19620,4 +19620,47 @@
             </foreach>
         </if>
     </select>
+
+    <update id="updateBatchByKey">
+        <foreach collection="list" item="item"  separator=";">
+            update med_behospital_info
+            <set>
+                name = #{item.name},
+                sex = #{item.sex},
+                birthday = #{item.birthday},
+                file_code = #{item.fileCode},
+                qc_type_id = #{item.qcTypeId},
+                ward_code = #{item.wardCode},
+                ward_name = #{item.wardName},
+                beh_dept_id = #{item.behDeptId},
+                beh_dept_name = #{item.behDeptName},
+                bed_code = #{item.bedCode},
+                bed_name = #{item.bedName},
+                insurance_name = #{item.insuranceName},
+                job_type = #{item.jobType},
+                behospital_date = #{item.behospitalDate},
+                leave_hospital_date = #{item.leaveHospitalDate},
+                diagnose_icd = #{item.diagnoseIcd},
+                diagnose = #{item.diagnose},
+                beh_doctor_id = #{item.behDoctorId},
+                beh_doctor_name = #{item.behDoctorName},
+                doctor_id = #{item.doctorId},
+                doctor_name = #{item.doctorName},
+                director_doctor_id = #{item.directorDoctorId},
+                director_doctor_name = #{item.directorDoctorName},
+                placefile_date = #{item.placefileDate},
+                is_placefile = #{item.isPlacefile},
+                <if test="item.gmtModified != null">
+                    gmt_modified = #{item.gmtModified},
+                </if>
+                <if test="item.modifier != null">
+                    modifier = #{item.modifier},
+                </if>
+                <if test="item.isDeleted != null">
+                    is_deleted = #{item.isDeleted},
+                </if>
+            </set>
+            where behospital_code = #{item.behospitalCode} and hospital_id = #{item.hospitalId}
+        </foreach>
+    </update>
 </mapper>