给销售出库增加销售人员

This commit is contained in:
季圣华
2021-04-12 00:32:54 +08:00
parent efe8811d0a
commit fd3388de89

View File

@@ -100,7 +100,7 @@ public class PersonController {
* @param request * @param request
* @return * @return
*/ */
@PostMapping(value = "/getPersonByNumType") @GetMapping(value = "/getPersonByNumType")
public JSONArray getPersonByNumType(@RequestParam("type") String typeNum, public JSONArray getPersonByNumType(@RequestParam("type") String typeNum,
HttpServletRequest request)throws Exception { HttpServletRequest request)throws Exception {
JSONArray dataArray = new JSONArray(); JSONArray dataArray = new JSONArray();
@@ -117,8 +117,8 @@ public class PersonController {
if (null != personList) { if (null != personList) {
for (Person person : personList) { for (Person person : personList) {
JSONObject item = new JSONObject(); JSONObject item = new JSONObject();
item.put("id", person.getId()); item.put("value", person.getId().toString());
item.put("name", person.getName()); item.put("text", person.getName());
dataArray.add(item); dataArray.add(item);
} }
} }