|
@ -599,6 +599,30 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 添加多个患者到一个标签
|
|
|
*
|
|
|
* @param patients
|
|
|
* @param labelCode
|
|
|
* @param labelType
|
|
|
* @return
|
|
|
*/
|
|
|
public int addPatientsLabel(String patients, String labelCode, String labelType) {
|
|
|
if (StringUtils.isNotEmpty(patients)) {
|
|
|
String[] patientArr = patients.split(",");
|
|
|
|
|
|
for (String p : patientArr) {
|
|
|
int result = addPatientLabel(p, labelCode, labelType);
|
|
|
|
|
|
if (result != 1) {
|
|
|
return result;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 删除居民的某个标签
|
|
|
*
|
|
@ -619,6 +643,30 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 删除一个标签下的多个患者
|
|
|
*
|
|
|
* @param patients
|
|
|
* @param labelCode
|
|
|
* @param labelType
|
|
|
* @return
|
|
|
*/
|
|
|
public int deltePatientsLabel(String patients, String labelCode, String labelType){
|
|
|
if (StringUtils.isNotEmpty(patients)) {
|
|
|
String[] patientArr = patients.split(",");
|
|
|
|
|
|
for (String p : patientArr) {
|
|
|
int result = deletePatientLabel(p, labelCode, labelType);
|
|
|
|
|
|
if (result != 1) {
|
|
|
return result;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 新增标签并添加患者
|
|
@ -631,7 +679,7 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
*/
|
|
|
public int addLabelAndPatient(String labelName, String creator, Long teamCode, String patients) {
|
|
|
|
|
|
if(labelService.isLabelNameExist(labelName,teamCode) != null){
|
|
|
if (labelService.isLabelNameExist(labelName, teamCode) != null) {
|
|
|
return -4;
|
|
|
}
|
|
|
|