|
@@ -1,6 +1,7 @@
|
|
|
package com.ruoyi.web.controller.system;
|
|
|
|
|
|
import com.ruoyi.common.annotation.RepeatSubmit;
|
|
|
+import com.ruoyi.common.constant.UserConstants;
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.core.domain.entity.ColumnNavigationBar;
|
|
@@ -41,6 +42,9 @@ public class QueryController extends BaseController {
|
|
|
@Autowired
|
|
|
private IFriendLinkService friendLinkService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IInspectInforService inspectInforService;
|
|
|
+
|
|
|
/**
|
|
|
* 门户查询报告信息
|
|
|
*/
|
|
@@ -56,7 +60,6 @@ public class QueryController extends BaseController {
|
|
|
* 获取栏目导航下拉树列表
|
|
|
*/
|
|
|
@GetMapping("/treeselect")
|
|
|
- @RepeatSubmit
|
|
|
public AjaxResult treeselect(ColumnNavigationBar columnNavigationBar)
|
|
|
{
|
|
|
//默认查询是导航
|
|
@@ -79,13 +82,27 @@ public class QueryController extends BaseController {
|
|
|
* 获取首页轮播图
|
|
|
*/
|
|
|
@PostMapping("/getRotationChart")
|
|
|
- @RepeatSubmit
|
|
|
public AjaxResult getRotationChart(ImageDatas imageDatas)
|
|
|
{
|
|
|
List<ImageDatas> list = imageDataService.selectImageDataList(imageDatas);
|
|
|
return AjaxResult.success(list);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 提交送检信息
|
|
|
+ */
|
|
|
+ @PostMapping("/sendInspectInFor")
|
|
|
+ @RepeatSubmit
|
|
|
+ public AjaxResult sendInspectInFor(@RequestBody InspectInfor inspectInfor)
|
|
|
+ {
|
|
|
+ if (UserConstants.NOT_UNIQUE.equals(inspectInforService.checkSampleNameUnique(inspectInfor)))
|
|
|
+ {
|
|
|
+ return AjaxResult.error("新增样品名称'" + inspectInfor.getSampleName() + "'失败,样品名称已存在");
|
|
|
+ }
|
|
|
+ return toAjax(inspectInforService.insertInspectInfor(inspectInfor));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取新闻文章
|
|
|
*/
|
|
@@ -119,7 +136,6 @@ public class QueryController extends BaseController {
|
|
|
startPage();
|
|
|
List<SysNotice> list = noticeService.selectNoticeListMenHu(notice);
|
|
|
return getDataTable(list);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/**
|