feat: add KPI dense lane relocation
This commit is contained in:
@@ -10,6 +10,8 @@ import com.ruoyi.kpi.service.KpiService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@@ -63,6 +65,27 @@ public class KpiController extends BaseController
|
||||
return AjaxResult.success(kpiService.getDenseCargoSpacePlanData(warehouseId));
|
||||
}
|
||||
|
||||
@GetMapping("/denseRelocation/options")
|
||||
@PreAuthorize("@ss.hasPermi('kpi:cargo:space:plan')")
|
||||
public AjaxResult denseRelocationOptions(
|
||||
com.ruoyi.out.relocation.domain.RelocationGenerateRequest request) {
|
||||
return AjaxResult.success(kpiService.getDenseRelocationOptions(request));
|
||||
}
|
||||
|
||||
@PostMapping("/denseRelocation/preview")
|
||||
@PreAuthorize("@ss.hasPermi('kpi:cargo:space:plan')")
|
||||
public AjaxResult previewDenseRelocation(
|
||||
@RequestBody com.ruoyi.out.relocation.domain.RelocationGenerateRequest request) {
|
||||
return AjaxResult.success(kpiService.previewDenseRelocation(request));
|
||||
}
|
||||
|
||||
@PostMapping("/denseRelocation/generate")
|
||||
@PreAuthorize("@ss.hasPermi('kpi:cargo:space:plan')")
|
||||
public AjaxResult generateDenseRelocation(
|
||||
@RequestBody com.ruoyi.out.relocation.domain.RelocationGenerateRequest request) {
|
||||
return AjaxResult.success(kpiService.generateDenseRelocation(request));
|
||||
}
|
||||
|
||||
/**
|
||||
* 货位平面图-货位详情
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user