|
@ -1,6 +1,8 @@
|
|
|
package com.yihu.jw.utils.hibernate;
|
|
|
|
|
|
import com.yihu.jw.entity.base.patient.BasePatientDO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.HlwCf01DO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.HlwCf02DO;
|
|
|
import org.hibernate.SQLQuery;
|
|
|
import org.hibernate.Session;
|
|
|
import org.hibernate.Transaction;
|
|
@ -175,10 +177,11 @@ public class HibenateUtils {
|
|
|
entityManager.flush();
|
|
|
}
|
|
|
|
|
|
public void update(String id,String phone){
|
|
|
BasePatientDO basePatientDO = entityManager.find(BasePatientDO.class,id);
|
|
|
basePatientDO.setPhone(phone);
|
|
|
update(basePatientDO);
|
|
|
public void update(String id,Integer status){
|
|
|
HlwCf01DO hlwCf01DO = entityManager.find(HlwCf01DO.class,id);
|
|
|
hlwCf01DO.setFKZT(status);
|
|
|
update(hlwCf01DO);
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|