反馈信息 后端接口 @author @email
| 39 | |
| 40 | */ |
| 41 | @RestController |
| 42 | @Controller |
| 43 | @RequestMapping("/chat") |
| 44 | public class ChatController { |
| 45 | private static final Logger logger = LoggerFactory.getLogger(ChatController.class); |
| 46 | |
| 47 | private static final String TABLE_NAME = "chat"; |
| 48 | |
| 49 | @Autowired |
| 50 | private ChatService chatService; |
| 51 | |
| 52 | |
| 53 | @Autowired |
| 54 | private TokenService tokenService; |
| 55 | |
| 56 | @Autowired |
| 57 | private AddressService addressService;//收货地址 |
| 58 | @Autowired |
| 59 | private CangkuService cangkuService;//仓库 |
| 60 | @Autowired |
| 61 | private CheliangService cheliangService;//车辆 |
| 62 | @Autowired |
| 63 | private DictionaryService dictionaryService;//字典 |
| 64 | @Autowired |
| 65 | private GonggaoService gonggaoService;//公告 |
| 66 | @Autowired |
| 67 | private HuowuService huowuService;//货物 |
| 68 | @Autowired |
| 69 | private ShangpinService shangpinService;//商品 |
| 70 | @Autowired |
| 71 | private ShangpinChuruInoutService shangpinChuruInoutService;//出入库 |
| 72 | @Autowired |
| 73 | private ShangpinChuruInoutListService shangpinChuruInoutListService;//出入库详情 |
| 74 | @Autowired |
| 75 | private ShangpinCollectionService shangpinCollectionService;//商品收藏 |
| 76 | @Autowired |
| 77 | private ShangpinOrderService shangpinOrderService;//商品订单 |
| 78 | @Autowired |
| 79 | private SijiService sijiService;//司机 |
| 80 | @Autowired |
| 81 | private YonghuService yonghuService;//用户 |
| 82 | @Autowired |
| 83 | private YuangongService yuangongService;//员工 |
| 84 | @Autowired |
| 85 | private UsersService usersService;//管理员 |
| 86 | |
| 87 | |
| 88 | /** |
| 89 | * 后端列表 |
| 90 | */ |
| 91 | @RequestMapping("/page") |
| 92 | public R page(@RequestParam Map<String, Object> params, HttpServletRequest request){ |
| 93 | logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params)); |
| 94 | String role = String.valueOf(request.getSession().getAttribute("role")); |
| 95 | if(false) |
| 96 | return R.error(511,"永不会进入"); |
| 97 | else if("用户".equals(role)) |
| 98 | params.put("yonghuId",request.getSession().getAttribute("userId")); |
nothing calls this directly
no outgoing calls
no test coverage detected