删除出院时间为空的扩展数据

宇宙皮皮娃 2 months ago
parent 358ca956bc
commit c0513bf9a2

@ -23,6 +23,8 @@ public interface TBasicMapper {
int deleteBatch(@Param("jzhs") List<String> jzhs); int deleteBatch(@Param("jzhs") List<String> jzhs);
int deleteEBatch(@Param("jzhs") List<String> jzhs);
int updateBatch(@Param("basicList") List<TBasic> updateList); int updateBatch(@Param("basicList") List<TBasic> updateList);
int updateExtend(@Param("basicList") List<TBasic> basicList); int updateExtend(@Param("basicList") List<TBasic> basicList);

@ -148,6 +148,7 @@ public class MzsyPatientInfoSyncServiceImpl implements PatientInfoSyncService {
insertBasicList.add(iuBasic); insertBasicList.add(iuBasic);
} }
if (Func.isNotEmpty(deleteList)) { if (Func.isNotEmpty(deleteList)) {
tBasicMapper.deleteEBatch(deleteList);
tBasicMapper.deleteBatch(deleteList); tBasicMapper.deleteBatch(deleteList);
syncZkInfo(insertBasicList); syncZkInfo(insertBasicList);
} }

@ -72,6 +72,16 @@
</foreach> </foreach>
</delete> </delete>
<delete id="deleteEBatch">
delete from docus_medicalrecord.t_basic_extend
where patient_id in (
select patient_id from docus_medicalrecord.t_basic
where jzh in
<foreach collection="jzhs" item="jzh" open="(" close=")" separator=",">
#{jzh}
</foreach>)
</delete>
<select id="getByJzh" resultType="com.docus.server.archive.entity.TBasic"> <select id="getByJzh" resultType="com.docus.server.archive.entity.TBasic">
select `patient_id`, `admiss_times`, `inpatient_no`, `name`, `name_spell`, select `patient_id`, `admiss_times`, `inpatient_no`, `name`, `name_spell`,
`sex`, `sex_name`,`age`, `age_month`, `age_day`, `id_card`, `telphone`, `sex`, `sex_name`,`age`, `age_month`, `age_day`, `id_card`, `telphone`,

Loading…
Cancel
Save