|
@ -1721,7 +1721,7 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public JSONArray getPatientByTeamCodeExitDoctor(long teamCode, String exLabelCode, String exLabelType, int page, int pagesize) throws Exception {
|
|
|
public JSONArray getPatientByTeamCodeExitDoctor(long teamCode, String labelCode, String labelType, int page, int pagesize) throws Exception {
|
|
|
|
|
|
Map<String, JSONObject> result = new HashMap<>();
|
|
|
List<Map<String, Object>> signList = new ArrayList<>();
|
|
@ -1770,16 +1770,16 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNotEmpty(exLabelCode)) {
|
|
|
SignPatientLabelInfo labelInfoEx = labelInfoDao.findByPatientAndLabelAndLabelTypeAndStatus(p.getCode(), exLabelCode, exLabelType, 1);
|
|
|
if (StringUtils.isNotEmpty(labelCode)) {
|
|
|
SignPatientLabelInfo labelInfoEx = labelInfoDao.findByPatientAndLabelAndLabelTypeAndStatus(p.getCode(), labelCode, labelType, 1);
|
|
|
|
|
|
if (labelInfoEx != null) {
|
|
|
if (labelInfoEx == null) {
|
|
|
continue;
|
|
|
}
|
|
|
} else if (StringUtils.isNotEmpty(exLabelType)) {
|
|
|
List<SignPatientLabelInfo> labelExs = labelInfoDao.findByPatientAndLabelTypeAndStatus(p.getCode(), exLabelType, 1);
|
|
|
} else if (StringUtils.isNotEmpty(labelType)) {
|
|
|
List<SignPatientLabelInfo> labelExs = labelInfoDao.findByPatientAndLabelTypeAndStatus(p.getCode(), labelType, 1);
|
|
|
|
|
|
if (labelExs != null && labelExs.size() > 0) {
|
|
|
if (labelExs == null && labelExs.size() <= 0) {
|
|
|
continue;
|
|
|
}
|
|
|
}
|