Browse Source

feat: [落笔留痕] 测试日志

master
memorylkf 6 days ago
parent
commit
75da19eb41
2 changed files with 15 additions and 3 deletions
  1. +12
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/TestController.java
  2. +3
    -3
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java

+ 12
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/TestController.java View File

@ -3,6 +3,7 @@ package com.hxhq.business.controller;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import com.alibaba.fastjson2.JSONObject;
import com.hxhq.common.core.web.controller.BaseController; import com.hxhq.common.core.web.controller.BaseController;
import com.hxhq.common.core.web.domain.AjaxResult; import com.hxhq.common.core.web.domain.AjaxResult;
import com.hxhq.common.core.web.page.TableDataInfo; import com.hxhq.common.core.web.page.TableDataInfo;
@ -62,4 +63,15 @@ public class TestController extends BaseController
{ {
return toAjax(testService.removeByIds(Arrays.asList(ids))); return toAjax(testService.removeByIds(Arrays.asList(ids)));
} }
/**
* 查询落笔留痕
*/
@GetMapping("/testLblh")
public AjaxResult testLblh(@RequestBody JSONObject json)
{
logger.info("落笔留痕请求:"+JSONObject.toJSONString(json));
return AjaxResult.success();
}
} }

+ 3
- 3
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java View File

@ -80,9 +80,9 @@ public class StudyServiceImpl extends ServiceImpl implements
if(form.getStatus()!=null && form.getStatus().intValue()>0){ if(form.getStatus()!=null && form.getStatus().intValue()>0){
queryWrapper.eq("s.status",form.getStatus()); queryWrapper.eq("s.status",form.getStatus());
} }
//又新增权限的表示SDSD能看所有试验其他只能看自己进入的试验
String sdPermit = "business:study:add";
if (!AuthUtil.hasPermi(sdPermit))
//TFM看所有试验其他只能看自己进入的试验
String tmfRole = "TFM";
if (!AuthUtil.hasRole(tmfRole))
{ {
queryWrapper.apply("(\n" + queryWrapper.apply("(\n" +
"s.id IN (\n" + "s.id IN (\n" +

Loading…
Cancel
Save