|
@@ -1,17 +1,13 @@
|
|
|
package com.ruoyi.web.controller.system;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
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 org.springframework.web.bind.annotation.*;
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
@@ -22,20 +18,20 @@ import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
|
|
|
|
- * 【请填写功能名称】Controller
|
|
|
+ * 套系Controller
|
|
|
*
|
|
|
* @author ruoyi
|
|
|
* @date 2023-02-14
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/system/system")
|
|
|
+@RequestMapping("/system/collectionsystem")
|
|
|
public class PostCollectionsSystemController extends BaseController
|
|
|
{
|
|
|
@Autowired
|
|
|
private IPostCollectionsSystemService postCollectionsSystemService;
|
|
|
|
|
|
|
|
|
- * 查询【请填写功能名称】列表
|
|
|
+ * 查询套系列表
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:system:list')")
|
|
|
@GetMapping("/list")
|
|
@@ -47,20 +43,20 @@ public class PostCollectionsSystemController extends BaseController
|
|
|
}
|
|
|
|
|
|
|
|
|
- * 导出【请填写功能名称】列表
|
|
|
+ * 导出套系列表
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:system:export')")
|
|
|
- @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
|
|
+ @Log(title = "套系", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, PostCollectionsSystem postCollectionsSystem)
|
|
|
{
|
|
|
List<PostCollectionsSystem> list = postCollectionsSystemService.selectPostCollectionsSystemList(postCollectionsSystem);
|
|
|
ExcelUtil<PostCollectionsSystem> util = new ExcelUtil<PostCollectionsSystem>(PostCollectionsSystem.class);
|
|
|
- util.exportExcel(response, list, "【请填写功能名称】数据");
|
|
|
+ util.exportExcel(response, list, "套系数据");
|
|
|
}
|
|
|
|
|
|
|
|
|
- * 获取【请填写功能名称】详细信息
|
|
|
+ * 获取套系详细信息
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:system:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
@@ -70,10 +66,10 @@ public class PostCollectionsSystemController extends BaseController
|
|
|
}
|
|
|
|
|
|
|
|
|
- * 新增【请填写功能名称】
|
|
|
+ * 新增套系
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:system:add')")
|
|
|
- @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
|
|
+ @Log(title = "套系", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody PostCollectionsSystem postCollectionsSystem)
|
|
|
{
|
|
@@ -81,10 +77,10 @@ public class PostCollectionsSystemController extends BaseController
|
|
|
}
|
|
|
|
|
|
|
|
|
- * 修改【请填写功能名称】
|
|
|
+ * 修改套系
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:system:edit')")
|
|
|
- @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
|
|
+ @Log(title = "套系", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody PostCollectionsSystem postCollectionsSystem)
|
|
|
{
|
|
@@ -92,13 +88,32 @@ public class PostCollectionsSystemController extends BaseController
|
|
|
}
|
|
|
|
|
|
|
|
|
- * 删除【请填写功能名称】
|
|
|
+ * 删除套系
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:system:remove')")
|
|
|
- @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
|
|
+ @Log(title = "套系", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
{
|
|
|
return toAjax(postCollectionsSystemService.deletePostCollectionsSystemByIds(ids));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ * 根据套系名称进行查询
|
|
|
+ * @param title
|
|
|
+ * @param TimeLeft
|
|
|
+ * @param TimeRight
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation("根据套系名称进行查询")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:collections:queryCollections')")
|
|
|
+ @GetMapping("/queryCollections")
|
|
|
+ public TableDataInfo list(@RequestParam(value="title",required = false)String title,
|
|
|
+ @RequestParam(value="TimeLeft",required = false) Date TimeLeft,
|
|
|
+ @RequestParam(value="TimeRight",required = false) Date TimeRight)
|
|
|
+ {
|
|
|
+ startPage();
|
|
|
+ List<PostCollectionsSystem> list= postCollectionsSystemService.selectByTitleAndTime(title,TimeLeft,TimeRight);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
}
|