|
|
@@ -755,4 +755,21 @@ public class LocalBusPatientService extends BaseService<BusPatientMapper, BusPat
|
|
|
public BusClinicEntity lookClinic(String tenantId, String patientCode) {
|
|
|
return clinicService.recentClinicByPatientCode(tenantId,patientCode);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Boolean setClinic(String patientId, BusClinicEntity copyProperties) {
|
|
|
+ BusPatientEntity patient = this.getById(patientId);
|
|
|
+ if(patient==null){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ return clinicService.update(null,new UpdateWrapper<BusClinicEntity>()
|
|
|
+ .lambda()
|
|
|
+ .eq(BusClinicEntity::getPatientId, patientId)
|
|
|
+ .set(BusClinicEntity::getPatientName, copyProperties.getPatientName())
|
|
|
+ .set(BusClinicEntity::getWard, copyProperties.getWard()));
|
|
|
+
|
|
|
+ }
|
|
|
}
|