|
@ -184,15 +184,17 @@ public class SignPatientLabelInfoController extends BaseController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/patient_label")
|
|
@RequestMapping(value = "/patient_label")
|
|
public String getPatientLabelByLabelType(String patient, @RequestParam(required = false) String labelType) {
|
|
|
|
|
|
public String getPatientLabelByLabelType(@RequestParam String patient,
|
|
|
|
@RequestParam(required = false) String labelType,
|
|
|
|
@RequestParam(required = false, defaultValue = "0") Long teamCode) {
|
|
try {
|
|
try {
|
|
if (StringUtils.isEmpty(patient)) {
|
|
if (StringUtils.isEmpty(patient)) {
|
|
return error(-1, "患者不能为空");
|
|
return error(-1, "患者不能为空");
|
|
}
|
|
}
|
|
|
|
|
|
List<SignPatientLabelInfo> labels = labelInfoService.getPatientLabelByLabelType(patient, labelType);
|
|
|
|
|
|
JSONArray labels = labelInfoService.getPatientLabelByLabelTypeAndTeamCode(patient, labelType,teamCode);
|
|
|
|
|
|
return write(200, "查询成功", "data", new JSONArray(labels));
|
|
|
|
|
|
return write(200, "查询成功", "data", labels);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|