版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/shujuelin/article/details/86489213
/**
* 查询客户标签
*/
@SuppressWarnings("unchecked")
@RequestMapping(value = "CustInjectionLabel", produces = "application/json; charset=utf-8", method = RequestMethod.GET)
public @ResponseBody String CustInjectionLabel(HttpServletRequest request, HttpServletResponse response) {
String custId=request.getParameter("custId");
JSONObject json=new JSONObject();
List list=new ArrayList();
Map map1 = new HashMap();
map1.put("InjectionLabelCode", "100023");
map1.put("InjectionLabelId", "312");
map1.put("InjectionLabelName", "4G用户");
map1.put("custId", custId);
map1.put("custLabelId", "1000001");
map1.put("labelValue", "");
map1.put("remark", "");
map1.put("valueName", "");
Map map2 = new HashMap();
map2.put("InjectionLabelCode", "100024");
map2.put("InjectionLabelId", "314");
map2.put("InjectionLabelName", "4G用户");
map2.put("custId", custId);
map2.put("custLabelId", "1000002");
map2.put("labelValue", "1");
map2.put("remark", "无");
map2.put("valueName", "");
list.add(map1);
list.add(map2);
json.put("CustInjectionLabel", list);
return json.toString();
}