|
|
|
@ -4,21 +4,21 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
|
|
|
|
import jakarta.validation.Valid; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import org.checkerframework.checker.units.qual.A; |
|
|
|
import org.checkerframework.checker.units.qual.A; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
|
|
|
import org.springblade.desk.logistics.pojo.entity.Location; |
|
|
|
|
|
|
|
import org.springblade.desk.logistics.pojo.entity.Station; |
|
|
|
import org.springblade.desk.logistics.pojo.vo.LocationVO; |
|
|
|
import org.springblade.desk.logistics.pojo.vo.LocationVO; |
|
|
|
import org.springblade.desk.logistics.pojo.vo.StationVO; |
|
|
|
import org.springblade.desk.logistics.pojo.vo.StationVO; |
|
|
|
import org.springblade.desk.logistics.service.ILocationService; |
|
|
|
import org.springblade.desk.logistics.service.ILocationService; |
|
|
|
import org.springblade.desk.logistics.service.IOrderBoxService; |
|
|
|
import org.springblade.desk.logistics.service.IOrderBoxService; |
|
|
|
import org.springblade.desk.logistics.service.IStationService; |
|
|
|
import org.springblade.desk.logistics.service.IStationService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RestController |
|
|
|
@RestController |
|
|
|
@AllArgsConstructor |
|
|
|
@AllArgsConstructor |
|
|
|
@ -43,6 +43,16 @@ public class LocationController { |
|
|
|
return R.data(pages); |
|
|
|
return R.data(pages); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 库位 修改 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@PostMapping("/update") |
|
|
|
|
|
|
|
@ApiOperationSupport(order = 2) |
|
|
|
|
|
|
|
@Operation(summary = "修改", description = "传入location") |
|
|
|
|
|
|
|
public R update(@Valid @RequestBody Location location) { |
|
|
|
|
|
|
|
return R.status(locationService.updateLocation(location)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|