MCPcopy Create free account
hub / github.com/LisenCoding/cangku / CangkuController

Class CangkuController

boot/src/main/java/com/controller/CangkuController.java:41–360  ·  view source on GitHub ↗

仓库 后端接口 @author @email

Source from the content-addressed store, hash-verified

39 * @email
40*/
41@RestController
42@Controller
43@RequestMapping("/cangku")
44public class CangkuController {
45 private static final Logger logger = LoggerFactory.getLogger(CangkuController.class);
46
47 private static final String TABLE_NAME = "cangku";
48
49 @Autowired
50 private CangkuService cangkuService;
51
52
53 @Autowired
54 private TokenService tokenService;
55
56 @Autowired
57 private AddressService addressService;//收货地址
58 @Autowired
59 private ChatService chatService;//反馈信息
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"));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected