| New file |
| | |
| | | package com.example.erp.controller.mm; |
| | | |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.mm.FinishedGlassShelfEmit; |
| | | import com.example.erp.entity.mm.MaterialStore; |
| | | import com.example.erp.entity.sd.Delivery; |
| | | import com.example.erp.entity.sd.OrderDetail; |
| | | import com.example.erp.service.mm.FinishedGlassShelfService; |
| | | import com.example.erp.service.mm.MaterialStoreService; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @RequestMapping("/finishedGlassShelf") |
| | | @Api(value="玻璃料架controller",tags={"玻璃料架接口"}) |
| | | public class FinishedGlassShelfController { |
| | | @Autowired |
| | | FinishedGlassShelfService finishedGlassShelfService; |
| | | |
| | | @ApiOperation("玻璃料架新增接口") |
| | | @PostMapping("/saveFinishedGlassShelf") |
| | | public Result saveFinishedGlassShelf( @RequestBody Map<String,Object> object){ |
| | | return Result.seccess(finishedGlassShelfService.saveFinishedGlassShelf(object)); |
| | | } |
| | | |
| | | @ApiOperation("玻璃料架库存查询接口") |
| | | @PostMapping("/getSelectFinishedGlassShelfInformation/{pageNum}/{pageSize}") |
| | | public Result getSelectFinishedGlassShelfInformation(@PathVariable Integer pageNum, @PathVariable Integer pageSize){ |
| | | return Result.seccess(finishedGlassShelfService.getSelectFinishedGlassShelfInformation(pageNum,pageSize)); |
| | | } |
| | | |
| | | @ApiOperation("玻璃料架库存查询接口") |
| | | @PostMapping("/getSelectFinishedGlassShelfInformationById/{id}") |
| | | public Result getSelectFinishedGlassShelfInformationById(@PathVariable Long id){ |
| | | return Result.seccess(finishedGlassShelfService.getSelectFinishedGlassShelfInformationById(id)); |
| | | } |
| | | |
| | | @ApiOperation("删除玻璃料架接口") |
| | | @PostMapping("/deleteFinishedGlassShelfInformationById") |
| | | public Result deleteFinishedGlassShelfInformationById( @RequestBody Map<String,Object> object){ |
| | | return Result.seccess(finishedGlassShelfService.deleteFinishedGlassShelfInformationById(object)); |
| | | } |
| | | |
| | | @ApiOperation("玻璃料架新增出库明细查询接口") |
| | | @PostMapping("/getSelectFinishedGlassShelfInformationDetails/{pageNum}/{pageSize}") |
| | | public Result getSelectFinishedGlassShelfInformationDetails(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody String ids){ |
| | | return Result.seccess(finishedGlassShelfService.getSelectFinishedGlassShelfInformationDetails(pageNum,pageSize,ids)); |
| | | } |
| | | |
| | | @ApiOperation("玻璃料架编辑出库明细查询接口") |
| | | @PostMapping("/getSelectFinishedGlassShelfEmitDetails/{pageNum}/{pageSize}") |
| | | public Result getSelectFinishedGlassShelfEmitDetails(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody String emitId){ |
| | | return Result.seccess(finishedGlassShelfService.getSelectFinishedGlassShelfEmitDetails(pageNum,pageSize,emitId)); |
| | | } |
| | | |
| | | @ApiOperation("玻璃料架出库新增接口") |
| | | @PostMapping("/insertFinishedGlassShelfEmit") |
| | | public Result insertFinishedGlassShelfEmit( @RequestBody Map<String,Object> object){ |
| | | return Result.seccess(finishedGlassShelfService.insertFinishedGlassShelfEmit(object)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("玻璃料架出库查询接口") |
| | | @PostMapping("/getSelectFinishedGlassShelfEmit/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getSelectFinishedGlassShelfEmit(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate, |
| | | @RequestBody FinishedGlassShelfEmit finishedGlassShelfEmit) throws JsonProcessingException { |
| | | return Result.seccess(finishedGlassShelfService.getSelectFinishedGlassShelfEmit(pageNum,pageSize,selectDate,finishedGlassShelfEmit)); |
| | | } |
| | | |
| | | @ApiOperation("玻璃料架出库删除接口") |
| | | @PostMapping("/deleteFinishedGlassShelfEmit") |
| | | public Result deleteFinishedGlassShelfEmit( @RequestBody Map<String,Object> object){ |
| | | return Result.seccess(finishedGlassShelfService.deleteFinishedGlassShelfEmit(object)); |
| | | } |
| | | |
| | | |
| | | } |