|
|
|
@ -3,6 +3,8 @@ package com.logpm.report.controller;
|
|
|
|
|
|
|
|
|
|
import com.logpm.report.service.InLibraryDeliverService; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import io.swagger.models.auth.In; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
@ -10,6 +12,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpSession; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AllArgsConstructor |
|
|
|
|
@RestController |
|
|
|
@ -19,8 +23,27 @@ public class IndexCountController {
|
|
|
|
|
private InLibraryDeliverService inLibraryDeliverService; |
|
|
|
|
|
|
|
|
|
@GetMapping("/index_count") |
|
|
|
|
@ApiOperation(value = "定制品在库订单总量",tags = "定制品在库订单总量") |
|
|
|
|
public R<Integer> indexCount(@RequestParam("id") Long id) { |
|
|
|
|
Integer indexCount = inLibraryDeliverService.indexCount(id); |
|
|
|
|
return R.data(indexCount); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/index_number_in_the_library") |
|
|
|
|
@ApiOperation(value = "定制品在库订单上架总数",tags = "定制品在库订单上架总数") |
|
|
|
|
public R<Integer> getTheNumberOfShelvesInTheLibrary(@RequestParam("id") Long id){ |
|
|
|
|
Integer theNumberOfShelvesInTheLibrary= inLibraryDeliverService.theNumberOfShelvesInTheLibrary(id,2); |
|
|
|
|
return R.data(theNumberOfShelvesInTheLibrary); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/index_number_No_the_library") |
|
|
|
|
@ApiOperation(value = "定制品在库订单未上架总数",tags = "定制品在库订单未上架总数") |
|
|
|
|
public R<Integer> getTheNumberOfShelvesNoTheLibrary(@RequestParam("id") Long id){ |
|
|
|
|
Integer theNumberOfShelvesInTheLibrary= inLibraryDeliverService.theNumberOfShelvesInTheLibrary(id,1); |
|
|
|
|
return R.data(theNumberOfShelvesInTheLibrary); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|