| | |
| | | package com.stylefeng.guns.modular.api; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.stylefeng.guns.modular.system.model.Phone; |
| | | import com.stylefeng.guns.modular.system.service.IPhoneService; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | |
| | | public ResultUtil queryPhones(String code){ |
| | | try { |
| | | List<Phone> phones = phoneService.queryPhones(code); |
| | | System.out.println(JSON.toJSONString(phones)); |
| | | return ResultUtil.success(phones); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | public ResultUtil queryCustomerPhone(String code){ |
| | | try { |
| | | Map<String, Object> map = phoneService.queryCustomerPhone(code); |
| | | System.out.println(JSON.toJSONString(map)); |
| | | return ResultUtil.success(map); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |