123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- package com.tld.controller;
- import com.tld.model.AskGoods;
- import com.tld.model.Notice;
- import com.tld.model.Storage;
- import com.tld.model.WarehousingVirtual;
- import com.tld.service.WarehousingService;
- import com.tld.util.DateUtil;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import javax.servlet.http.HttpServletResponse;
- import java.util.Map;
- /**
- * 入库操作
- */
- @RestController
- @RequestMapping("warehousing")
- public class WarehousingController {
- @Autowired
- private WarehousingService warehousingService;
- /**
- * 推荐库位
- * @param wllbCode 物料编码
- * @param suppId 供应商编码
- * @param num 数量
- * @param unique 唯一标识
- * @return 返回结果
- */
- @GetMapping("getRecommend")
- public Map<String, Object> getRecommend(String wllbCode, String suppId, String num, String unique, String producDate){
- return warehousingService.getRecommend(wllbCode, suppId, num, unique, producDate);
- }
- /**
- * 库位推荐虚拟表入库
- * @param warehousingVirtual 参数
- * @return 返回结果
- */
- @PostMapping("addWarehousingVirtual")
- public Map<String, Object> addWarehousingVirtual(@RequestBody WarehousingVirtual warehousingVirtual){
- return warehousingService.addWarehousingVirtual(warehousingVirtual);
- }
- /**
- * 查询虚拟入库
- * @param uniqueCode 参数
- * @return 返回接结果
- */
- @GetMapping("getWarehousingVirtual")
- public Map<String, Object> addWarehousingVirtual(String uniqueCode){
- return warehousingService.getWarehousingVirtual(uniqueCode);
- }
- /**
- * 删除虚拟数据
- * @param warehousingVirtual 参数
- * @return 返回结果
- */
- @DeleteMapping("delWarehousingVirtual")
- public Map<String, Object> delWarehousingVirtual(@RequestBody WarehousingVirtual warehousingVirtual){
- return warehousingService.delWarehousingVirtual(warehousingVirtual);
- }
- /**
- * 入库
- * @param uniqueCode 参数
- * @return 返回结果
- */
- @GetMapping("warehousing")
- public Map<String, Object> warehousing(String uniqueCode, String type){
- return warehousingService.warehousing(uniqueCode, type);
- }
- /**
- * 查询入库流水
- */
- @GetMapping("warehousingFlowing")
- public Map<String, Object> warehousingFlowing(Storage storage){
- return warehousingService.warehousingFlowing(storage);
- }
- /**
- * 导出流水
- * @param storage
- * @param response
- */
- @GetMapping("export")
- public void userExport(Storage storage, HttpServletResponse response){
- warehousingService.export(storage, response);
- }
- /**
- * 查询报工单
- * @param notice 参数
- * @return 返回结果
- */
- @GetMapping("getNotice")
- public Map<String, Object> getNotice(Notice notice){
- return warehousingService.getNotice(notice);
- }
- /**
- * 半成品材料入库
- * @param notice 参数
- * @return 返回结果
- */
- @PostMapping("addInventoryNotice")
- public Map<String, Object> addInventoryNotice(@RequestBody Notice notice){
- return warehousingService.addInventoryNotice(notice);
- }
- /**
- * 半成品出库
- * @param notice 参数
- * @return 返回结果
- */
- @PostMapping("updateInventoryNotice")
- public Map<String, Object> updateInventoryNotice(@RequestBody Notice notice){
- return warehousingService.updateInventoryNotice(notice);
- }
- /**
- * 查询半成品流水
- * @param notice 参数
- * @return 返回结果
- */
- @GetMapping("getProduct")
- public Map<String, Object> getProduct(Notice notice){
- return warehousingService.getProduct(notice);
- }
- /**
- * 导出
- * @param notice 参数
- * @return 返回结果
- */
- @GetMapping("productExcel")
- public void productExcel(Notice notice, HttpServletResponse response){
- warehousingService.productExcel(notice, response);
- }
- /**
- * 产成品入库
- * @return 参数
- */
- @GetMapping("getProductWarehousing")
- public Map<String, Object> getProductWarehousing(Notice notice){
- return warehousingService.getProductWarehousing(notice);
- }
- /**
- * 推荐库位之后产成品入库
- * @return 参数
- */
- @GetMapping("getProductWarehousingRecommend")
- public Map<String, Object> getProductWarehousingRecommend(String uniqueCode, String type, String noticeId){
- return warehousingService.getProductWarehousingRecommend(uniqueCode, type, noticeId);
- }
- /**
- * 产成品入库流水
- * @param notice 参数
- * @return 返回结果
- */
- @GetMapping("getHalf")
- public Map<String, Object> getHalf(Notice notice){
- return warehousingService.getHalf(notice);
- }
- /**
- * 产成品导出
- * @param notice 参数
- * @param response 返回结果
- */
- @GetMapping("getHalfExcel")
- public void getHalfExcel(Notice notice, HttpServletResponse response){
- warehousingService.getHalfExcel(notice, response);
- }
- }
|