parent
81e0c5416d
commit
0a4f2aaf89
13 changed files with 212 additions and 7 deletions
@ -0,0 +1,12 @@ |
|||||||
|
package org.springblade.desk.logistics.pojo.vo; |
||||||
|
|
||||||
|
import lombok.Data; |
||||||
|
import org.springblade.desk.logistics.pojo.entity.Location; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author: liweidong |
||||||
|
* @create: 2026-03-27 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
public class LocationVO extends Location { |
||||||
|
} |
||||||
@ -0,0 +1,20 @@ |
|||||||
|
package org.springblade.desk.logistics.pojo.vo; |
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||||
|
import lombok.Data; |
||||||
|
import org.springblade.desk.logistics.pojo.entity.Station; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author: liweidong |
||||||
|
* @create: 2026-03-27 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
public class StationVO extends Station { |
||||||
|
|
||||||
|
/** |
||||||
|
* 作业中心名称 |
||||||
|
*/ |
||||||
|
@Schema(description = "作业中心名称") |
||||||
|
private String wcName; |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,48 @@ |
|||||||
|
package org.springblade.desk.logistics.controller; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||||
|
import io.swagger.v3.oas.annotations.Operation; |
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.checkerframework.checker.units.qual.A; |
||||||
|
import org.springblade.core.mp.support.Condition; |
||||||
|
import org.springblade.core.mp.support.Query; |
||||||
|
import org.springblade.core.tool.api.R; |
||||||
|
import org.springblade.desk.logistics.pojo.vo.LocationVO; |
||||||
|
import org.springblade.desk.logistics.pojo.vo.StationVO; |
||||||
|
import org.springblade.desk.logistics.service.ILocationService; |
||||||
|
import org.springblade.desk.logistics.service.IOrderBoxService; |
||||||
|
import org.springblade.desk.logistics.service.IStationService; |
||||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/location") |
||||||
|
@Tag(name = "库位", description = "库位相关接口") |
||||||
|
public class LocationController { |
||||||
|
|
||||||
|
|
||||||
|
@Autowired |
||||||
|
ILocationService locationService; |
||||||
|
|
||||||
|
/** |
||||||
|
* 获取库位列表 |
||||||
|
*/ |
||||||
|
@GetMapping("/getLocationList") |
||||||
|
@ApiOperationSupport(order = 1) |
||||||
|
@Operation(summary = "分页", description = "获取站点列表") |
||||||
|
public R<IPage<LocationVO>> getLocationList(LocationVO locationVO, Query query) { |
||||||
|
|
||||||
|
IPage<LocationVO> pages = locationService.getLocationList(Condition.getPage(query), locationVO); |
||||||
|
|
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
Loading…
Reference in new issue