移动端接口
This commit is contained in:
parent
037783d2ba
commit
2792c675f2
@ -0,0 +1,38 @@
|
|||||||
|
package com.ktg.mes.md.controller.mobile;
|
||||||
|
|
||||||
|
import com.ktg.common.core.controller.BaseController;
|
||||||
|
import com.ktg.common.core.page.TableDataInfo;
|
||||||
|
import com.ktg.mes.md.domain.MdItem;
|
||||||
|
import com.ktg.mes.md.service.IMdItemService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
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.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Api("物料信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/mobile/md/item")
|
||||||
|
public class MdItemMobController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IMdItemService mdItemService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表查询
|
||||||
|
* @param mdItem
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation("查询物料清单(分页)")
|
||||||
|
@PreAuthorize("@ss.hasPermi('mes:md:mditem:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(MdItem mdItem){
|
||||||
|
startPage();
|
||||||
|
List<MdItem> list = mdItemService.selectMdItemList(mdItem);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
package com.ktg.mes.wm.controller.mobile;
|
||||||
|
|
||||||
|
import com.ktg.common.core.controller.BaseController;
|
||||||
|
import com.ktg.common.core.domain.AjaxResult;
|
||||||
|
import com.ktg.mes.wm.service.IWmWarehouseService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@Api("仓库存储位置信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/mobile/wm/warehouse")
|
||||||
|
public class WmWarehouseMobController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IWmWarehouseService wmWarehouseService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询树型的列表
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping("/getTreeList")
|
||||||
|
public AjaxResult getTreeList(){
|
||||||
|
return AjaxResult.success(wmWarehouseService.getTreeList());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user