|
|
@@ -1,34 +1,30 @@
|
|
|
package com.ktg.mes.md.controller;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
-
|
|
|
-import com.ktg.common.constant.UserConstants;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
import com.ktg.common.annotation.Log;
|
|
|
+import com.ktg.common.constant.UserConstants;
|
|
|
import com.ktg.common.core.controller.BaseController;
|
|
|
import com.ktg.common.core.domain.AjaxResult;
|
|
|
+import com.ktg.common.core.page.TableDataInfo;
|
|
|
import com.ktg.common.enums.BusinessType;
|
|
|
+import com.ktg.common.utils.poi.ExcelUtil;
|
|
|
import com.ktg.mes.md.domain.MdWorkshop;
|
|
|
import com.ktg.mes.md.service.IMdWorkshopService;
|
|
|
-import com.ktg.common.utils.poi.ExcelUtil;
|
|
|
-import com.ktg.common.core.page.TableDataInfo;
|
|
|
+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.*;
|
|
|
+
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 车间Controller
|
|
|
- *
|
|
|
+ *
|
|
|
* @author yinjinlu
|
|
|
* @date 2022-05-07
|
|
|
*/
|
|
|
+@Api(tags = "车间设置")
|
|
|
@RestController
|
|
|
@RequestMapping("/mes/md/workshop")
|
|
|
public class MdWorkshopController extends BaseController
|
|
|
@@ -39,6 +35,7 @@ public class MdWorkshopController extends BaseController
|
|
|
/**
|
|
|
* 查询车间列表
|
|
|
*/
|
|
|
+ @ApiOperation("查询车间列表")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(MdWorkshop mdWorkshop)
|
|
|
{
|
|
|
@@ -51,6 +48,7 @@ public class MdWorkshopController extends BaseController
|
|
|
* 获取所有可用车间
|
|
|
* @return
|
|
|
*/
|
|
|
+ @ApiOperation("获取所有可用车间")
|
|
|
@GetMapping("/listAll")
|
|
|
public AjaxResult listAll(){
|
|
|
MdWorkshop mdWorkshop = new MdWorkshop();
|