|
@ -56,14 +56,12 @@ public class PadDeviceController extends BaseController {
|
|
|
@RequestMapping(value = "PatientDeviceList", method = RequestMethod.GET)
|
|
|
public String getDeviceByPatient(@ApiParam(name = "patientName", value = "居民姓名", defaultValue = "张")
|
|
|
@RequestParam(value = "patientName", required = false) String patientName,
|
|
|
@ApiParam(name = "idcard", value = "身份证号", defaultValue = "")
|
|
|
@RequestParam(value = "idcard", required = false) String idcard,
|
|
|
@ApiParam(name = "page", value = "分页起始id", defaultValue = "1")
|
|
|
@RequestParam(value = "page", required = true) int page,
|
|
|
@ApiParam(name = "pagesize", value = "每页条数", defaultValue = "10")
|
|
|
@RequestParam(value = "pagesize", required = true) int pagesize) {
|
|
|
try {
|
|
|
List<Map<String , Object>> list = patientDeviceService.findDeviceFromAdmin(patientName, idcard, page, pagesize);
|
|
|
List<Map<String , Object>> list = patientDeviceService.findDeviceFromAdmin(patientName, page, pagesize);
|
|
|
|
|
|
return write(200, "查询成功", "data", list);
|
|
|
} catch (Exception ex) {
|
|
@ -74,10 +72,9 @@ public class PadDeviceController extends BaseController {
|
|
|
|
|
|
@ApiOperation("平板端,添加设备时获取设备类型(大类)")
|
|
|
@RequestMapping(value = "getDeviceTypeBig", method = RequestMethod.GET)
|
|
|
public String getDeviceTypeBig(@ApiParam(name = "pyCode", value = "获取设备类型(默认为null,获取大类)", defaultValue = "")
|
|
|
@RequestParam(value = "pyCode", required = false) String pyCode) {
|
|
|
public String getDeviceTypeBig() {
|
|
|
try {
|
|
|
List<Map<String , Object>> list = patientDeviceService.getDeviceType(1,pyCode);
|
|
|
List<Map<String , Object>> list = patientDeviceService.getDeviceType();
|
|
|
return write(200, "查询成功", "data", list);
|
|
|
} catch (Exception ex) {
|
|
|
error(ex);
|
|
@ -87,10 +84,10 @@ public class PadDeviceController extends BaseController {
|
|
|
|
|
|
@ApiOperation("平板端,添加设备时获取设备类型(小类)")
|
|
|
@RequestMapping(value = "getDeviceTypeSmall", method = RequestMethod.GET)
|
|
|
public String getDeviceTypeSmall(@ApiParam(name = "pyCode", value = "获取设备类型(默认为 watch,获取小类(智能手表多类型))", defaultValue = "watch")
|
|
|
@RequestParam(value = "pyCode", required = false) String pyCode) {
|
|
|
public String getDeviceTypeSmall(@ApiParam(name = "category_code", value = "category_code", defaultValue = "4")
|
|
|
@RequestParam(value = "category_code", required = false) String category_code) {
|
|
|
try {
|
|
|
List<Map<String , Object>> list = patientDeviceService.getDeviceType(0,pyCode);
|
|
|
List<Map<String , Object>> list = patientDeviceService.getDeviceTypeSmall(category_code);
|
|
|
return write(200, "查询成功", "data", list);
|
|
|
} catch (Exception ex) {
|
|
|
error(ex);
|