|  |  |  | 
|---|
|  |  |  | @ApiOperation("是否集货员") | 
|---|
|  |  |  | @GetMapping(value = "/jhy/isJhy") | 
|---|
|  |  |  | public JsonResult<Map<String, Object>> isJhy(HttpServletRequest request) { | 
|---|
|  |  |  | boolean flag = jhyInfoService.isJhy(getUserId(request)); | 
|---|
|  |  |  | int flag = jhyInfoService.isJhy(getUserId(request)); | 
|---|
|  |  |  | Map<String, Object> map = new HashMap<>(); | 
|---|
|  |  |  | map.put("flag", flag); | 
|---|
|  |  |  | if (flag) { | 
|---|
|  |  |  | map.put("icon", "../../images/icon_team.png"); | 
|---|
|  |  |  | map.put("name", "集物员订单列表"); | 
|---|
|  |  |  | map.put("path", "../../collectPersonnel/GCOrderForm/index"); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | map.put("icon", "../../images/icon_entrance.png"); | 
|---|
|  |  |  | map.put("name", "成为集物员"); | 
|---|
|  |  |  | map.put("path", "../../subcontract1/become_sgm/become_sgm"); | 
|---|
|  |  |  | map.put("flag", flag == 1); | 
|---|
|  |  |  | switch (flag) { | 
|---|
|  |  |  | case 0: | 
|---|
|  |  |  | map.put("icon", "../../images/icon_entrance.png"); | 
|---|
|  |  |  | map.put("name", "成为集物员"); | 
|---|
|  |  |  | map.put("path", "../../subcontract1/become_sgm/become_sgm"); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case 1: | 
|---|
|  |  |  | map.put("icon", "../../images/icon_team.png"); | 
|---|
|  |  |  | map.put("name", "集物员订单列表"); | 
|---|
|  |  |  | map.put("path", "../../collectPersonnel/GCOrderForm/index"); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case 2: | 
|---|
|  |  |  | map.put("icon", "../../images/icon_entrance.png"); | 
|---|
|  |  |  | map.put("name", "集物员待审核"); | 
|---|
|  |  |  | map.put("path", "../../pages/home/home"); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | default: | 
|---|
|  |  |  | map.put("icon", "../../images/icon_entrance.png"); | 
|---|
|  |  |  | map.put("name", "成为集物员"); | 
|---|
|  |  |  | map.put("path", "../../subcontract1/become_sgm/become_sgm"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return JsonResult.success(map); | 
|---|
|  |  |  | } | 
|---|