| | |
| | | import com.consum.base.core.utils.CommonUtil; |
| | | import com.consum.base.pojo.request.WarehouseManagerParam; |
| | | import com.walker.web.ResponseValue; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | /** |
| | | * @Description 库管员 |
| | |
| | | * @Date 2023/10/26 |
| | | * <p> |
| | | */ |
| | | @Api(value = "库管员", tags = "库管员") |
| | | // @Api(value = "库管员", tags = "库管员") |
| | | @RestController |
| | | @RequestMapping("/pc/base/warehouse/manager") |
| | | @Slf4j |
| | |
| | | * @Author 卢庆阳 |
| | | * @Date 2023/10/26 |
| | | */ |
| | | @ApiOperation(value = "新增", notes = "新增") |
| | | @ApiImplicitParam(name = "warehouseManagerParam", value = "库管员信息", required = true, |
| | | dataType = "WarehouseManagerParam", paramType = "body") |
| | | // // @ApiOperation(value = "新增", notes = "新增") |
| | | // @ApiImplicitParam(name = "warehouseManagerParam", value = "库管员信息", required = true, |
| | | // dataType = "WarehouseManagerParam", paramType = "body") |
| | | @PostMapping("/save") |
| | | public ResponseValue add() throws Exception { |
| | | WarehouseManagerParam param = CommonUtil.getObjFromReqBody(WarehouseManagerParam.class); |
| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "根据仓库id查询库管员", notes = "根据仓库id查询库管员") |
| | | @ApiImplicitParam(name = "warehouseId", value = "仓库id", required = true, dataType = "Long") |
| | | // // @ApiOperation(value = "根据仓库id查询库管员", notes = "根据仓库id查询库管员") |
| | | // @ApiImplicitParam(name = "warehouseId", value = "仓库id", required = true, dataType = "Long") |
| | | @GetMapping("/list") |
| | | public ResponseValue select(Long warehouseId) { |
| | | List<BaseWarehouseManager> baseWarehouseManagerList = |
| | |
| | | return ResponseValue.success(baseWarehouseManagerList); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据仓库,机构id查询库管员", notes = "根据仓库,机构id查询库管员") |
| | | @ApiImplicitParams({@ApiImplicitParam(name = "warehouseId", value = "仓库id", required = true, dataType = "Long"), |
| | | @ApiImplicitParam(name = "agencyId", value = "机构id", required = true, dataType = "Long")}) |
| | | // // @ApiOperation(value = "根据仓库,机构id查询库管员", notes = "根据仓库,机构id查询库管员") |
| | | // @ApiImplicitParams({@ApiImplicitParam(name = "warehouseId", value = "仓库id", required = true, dataType = "Long"), |
| | | // @ApiImplicitParam(name = "agencyId", value = "机构id", required = true, dataType = "Long")}) |
| | | @GetMapping("/query") |
| | | public ResponseValue selectManagerList(Long warehouseId, Long agencyId) { |
| | | List<BaseWarehouseManager> baseWarehouseManagerList = |