|
@ -46,14 +46,18 @@ public class ServicePackageSubItemEndpoint extends EnvelopRestEndpoint {
|
|
|
@GetMapping(value = "getItemList")
|
|
|
@ApiOperation(value = "查询所有服务项")
|
|
|
public PageEnvelop<Map<String, Object>> getSubItemList(
|
|
|
@ApiParam(name = "jsonStr", value = "Json数据", required = true) @RequestParam String jsonStr
|
|
|
) throws Exception {
|
|
|
jsonStr = URLDecoder.decode(jsonStr, "UTF-8");
|
|
|
ParamQvo qvo = JSON.parseObject(jsonStr, ParamQvo.class);
|
|
|
Map<String, Object> map = subItemService.getSubItemList(qvo);
|
|
|
List<Map<String, Object>> list = (List<Map<String, Object>>) map.get("list");
|
|
|
Integer count = (Integer) map.get("count");
|
|
|
return success(list, count, qvo.getPage(), qvo.getPageSize());
|
|
|
@ApiParam(name = "jsonStr", value = "Json数据", required = true) @RequestParam String jsonStr) {
|
|
|
try {
|
|
|
jsonStr = URLDecoder.decode(jsonStr, "UTF-8");
|
|
|
ParamQvo qvo = JSON.parseObject(jsonStr, ParamQvo.class);
|
|
|
Map<String, Object> map = subItemService.getSubItemList(qvo);
|
|
|
List<Map<String, Object>> list = (List<Map<String, Object>>) map.get("list");
|
|
|
Integer count = (Integer) map.get("count");
|
|
|
return success(list, count, qvo.getPage(), qvo.getPageSize());
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return PageEnvelop.getError("查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|