|
@@ -2,6 +2,7 @@ package com.ruoyi.web.controller.warewms.ams;
|
|
|
|
|
|
import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -23,14 +24,13 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
|
/**
|
|
|
* lotattConfigController
|
|
|
- *
|
|
|
+ *
|
|
|
* @author andy
|
|
|
* @date 2022-02-15
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/ams/config")
|
|
|
-public class LotattConfigController extends BaseController
|
|
|
-{
|
|
|
+public class LotattConfigController extends BaseController {
|
|
|
@Autowired
|
|
|
private ILotattConfigService lotattConfigService;
|
|
|
|
|
@@ -39,8 +39,7 @@ public class LotattConfigController extends BaseController
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('ams:config:list')")
|
|
|
@GetMapping("/list")
|
|
|
- public TableDataInfo list(LotattConfig lotattConfig)
|
|
|
- {
|
|
|
+ public TableDataInfo list(LotattConfig lotattConfig) {
|
|
|
startPage();
|
|
|
List<LotattConfig> list = lotattConfigService.selectLotattConfigList(lotattConfig);
|
|
|
return getDataTable(list);
|
|
@@ -52,8 +51,7 @@ public class LotattConfigController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('ams:config:export')")
|
|
|
@Log(title = "lotattConfig", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
- public void export(HttpServletResponse response, LotattConfig lotattConfig)
|
|
|
- {
|
|
|
+ public void export(HttpServletResponse response, LotattConfig lotattConfig) {
|
|
|
List<LotattConfig> list = lotattConfigService.selectLotattConfigList(lotattConfig);
|
|
|
ExcelUtil<LotattConfig> util = new ExcelUtil<LotattConfig>(LotattConfig.class);
|
|
|
util.exportExcel(response, list, "lotattConfig数据");
|
|
@@ -64,8 +62,7 @@ public class LotattConfigController extends BaseController
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('ams:config:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
|
- public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
- {
|
|
|
+ public AjaxResult getInfo(@PathVariable("id") Long id) {
|
|
|
return AjaxResult.success(lotattConfigService.selectLotattConfigById(id));
|
|
|
}
|
|
|
|
|
@@ -75,8 +72,7 @@ public class LotattConfigController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('ams:config:add')")
|
|
|
@Log(title = "lotattConfig", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
- public AjaxResult add(@RequestBody LotattConfig lotattConfig)
|
|
|
- {
|
|
|
+ public AjaxResult add(@RequestBody LotattConfig lotattConfig) {
|
|
|
return toAjax(lotattConfigService.insertLotattConfig(lotattConfig));
|
|
|
}
|
|
|
|
|
@@ -86,8 +82,7 @@ public class LotattConfigController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('ams:config:edit')")
|
|
|
@Log(title = "lotattConfig", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
- public AjaxResult edit(@RequestBody LotattConfig lotattConfig)
|
|
|
- {
|
|
|
+ public AjaxResult edit(@RequestBody LotattConfig lotattConfig) {
|
|
|
return toAjax(lotattConfigService.updateLotattConfig(lotattConfig));
|
|
|
}
|
|
|
|
|
@@ -96,15 +91,18 @@ public class LotattConfigController extends BaseController
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('ams:config:remove')")
|
|
|
@Log(title = "lotattConfig", businessType = BusinessType.DELETE)
|
|
|
- @DeleteMapping("/{ids}")
|
|
|
- public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
- {
|
|
|
+ @DeleteMapping("/{ids}")
|
|
|
+ public AjaxResult remove(@PathVariable Long[] ids) {
|
|
|
return toAjax(lotattConfigService.deleteLotattConfigByIds(ids));
|
|
|
}
|
|
|
|
|
|
@GetMapping("/lotattConfigList")
|
|
|
- public AjaxResult lotattConfigList()
|
|
|
- {
|
|
|
+ public AjaxResult lotattConfigList() {
|
|
|
return AjaxResult.success(lotattConfigService.queryLotattConfigList());
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/lotattConfigComboDict")
|
|
|
+ public AjaxResult lotattConfigComboDict() {
|
|
|
+ return AjaxResult.success(lotattConfigService.lotattConfigComboDict());
|
|
|
+ }
|
|
|
}
|