|
@ -58,6 +58,10 @@ public class ConcernService extends BaseService {
|
|
|
@Transactional
|
|
|
public boolean addConcern(
|
|
|
String patientCode, String doctorCode, Integer concernSource) {
|
|
|
ConcernDO concernDO= concernDao.findByPatientAndDoctor(patientCode,doctorCode);
|
|
|
if(concernDO!=null){
|
|
|
return false;
|
|
|
}
|
|
|
Patient patient = patientDao.findByCode(patientCode);
|
|
|
Doctor doctor = doctorDao.findByCodeWithLock(doctorCode);
|
|
|
|