|
|
@@ -86,4 +86,53 @@ public class StoreStaffConfigController {
|
|
|
log.info("StoreStaffConfigController.deleteStaffConfig?id={}", id);
|
|
|
return R.data(storeStaffConfigService.deleteStaffConfig(id));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 员工列表查询接口(用户端)
|
|
|
+ *
|
|
|
+ * @param page 分页页数
|
|
|
+ * @param size 分页条数
|
|
|
+ * @param storeId 店铺ID
|
|
|
+ * @param status 员工状态
|
|
|
+ * @return 员工列表
|
|
|
+ */
|
|
|
+ @ApiOperation("员工列表查询(用户端)")
|
|
|
+ @ApiOperationSupport(order = 5)
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "page", value = "分页页数", dataType = "Integer", paramType = "query", required = false),
|
|
|
+ @ApiImplicitParam(name = "size", value = "分页条数", dataType = "Integer", paramType = "query", required = false),
|
|
|
+ @ApiImplicitParam(name = "storeId", value = "店铺ID", dataType = "Integer", paramType = "query", required = true),
|
|
|
+ @ApiImplicitParam(name = "status", value = "员工状态(0-待审核 1-审核通过 2-审核拒绝)", dataType = "String", paramType = "query", required = false)
|
|
|
+ })
|
|
|
+ @GetMapping("/queryStaffList")
|
|
|
+ public R<IPage<StoreStaffConfig>> queryStaffList(
|
|
|
+ @RequestParam(value = "page", defaultValue = "1") Integer page,
|
|
|
+ @RequestParam(value = "size", defaultValue = "10") Integer size,
|
|
|
+ @RequestParam(value = "storeId", required = true) Integer storeId,
|
|
|
+ @RequestParam(value = "status", required = false) String status) {
|
|
|
+ log.info("StoreStaffConfigController.queryStaffList?page={}&size={}&storeId={}&status={}", page, size, storeId, status);
|
|
|
+ IPage<StoreStaffConfig> result = storeStaffConfigService.queryStaffList(page, size, storeId, status);
|
|
|
+ return R.data(result);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 员工详情查询接口(用户端)
|
|
|
+ *
|
|
|
+ * @param id 员工主键id
|
|
|
+ * @return 员工详情
|
|
|
+ */
|
|
|
+ @ApiOperation("员工详情查询(用户端)")
|
|
|
+ @ApiOperationSupport(order = 6)
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "id", value = "员工主键id", dataType = "Integer", paramType = "query", required = true)
|
|
|
+ })
|
|
|
+ @GetMapping("/queryStaffDetail")
|
|
|
+ public R<StoreStaffConfig> queryStaffDetail(@RequestParam(value = "id", required = true) Integer id) {
|
|
|
+ log.info("StoreStaffConfigController.queryStaffDetail?id={}", id);
|
|
|
+ StoreStaffConfig result = storeStaffConfigService.queryStaffDetail(id);
|
|
|
+ if (result == null) {
|
|
|
+ return R.fail("员工不存在");
|
|
|
+ }
|
|
|
+ return R.data(result);
|
|
|
+ }
|
|
|
}
|