测试问题项修改
This commit is contained in:
parent
1668b12495
commit
e84f1c4b31
|
|
@ -2,6 +2,13 @@
|
||||||
server:
|
server:
|
||||||
port: 29200
|
port: 29200
|
||||||
|
|
||||||
|
|
||||||
|
# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问
|
||||||
|
management:
|
||||||
|
endpoint:
|
||||||
|
env:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
# Spring
|
# Spring
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,13 @@
|
||||||
server:
|
server:
|
||||||
port: 29301
|
port: 29301
|
||||||
|
|
||||||
|
|
||||||
|
# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问
|
||||||
|
management:
|
||||||
|
endpoint:
|
||||||
|
env:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
# Spring
|
# Spring
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,12 @@
|
||||||
server:
|
server:
|
||||||
port: 29302
|
port: 29302
|
||||||
|
|
||||||
|
# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问
|
||||||
|
management:
|
||||||
|
endpoint:
|
||||||
|
env:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
# Spring
|
# Spring
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,7 @@ public class SysOperlogController extends BaseController {
|
||||||
|
|
||||||
@RequiresPermissions("system:operlog:list")
|
@RequiresPermissions("system:operlog:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(SysOperLog operLog)
|
public TableDataInfo list(SysOperLog operLog) {
|
||||||
{
|
|
||||||
startPage();
|
startPage();
|
||||||
List<SysOperLog> list = operLogService.selectOperLogList(operLog);
|
List<SysOperLog> list = operLogService.selectOperLogList(operLog);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
|
|
@ -49,8 +48,7 @@ public class SysOperlogController extends BaseController {
|
||||||
@Log(title = "操作日志", businessType = BusinessType.EXPORT)
|
@Log(title = "操作日志", businessType = BusinessType.EXPORT)
|
||||||
@RequiresPermissions("system:operlog:export")
|
@RequiresPermissions("system:operlog:export")
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, SysOperLog operLog)
|
public void export(HttpServletResponse response, SysOperLog operLog) {
|
||||||
{
|
|
||||||
List<SysOperLog> list;
|
List<SysOperLog> list;
|
||||||
list = operLogService.selectOperLogList(operLog);
|
list = operLogService.selectOperLogList(operLog);
|
||||||
//根据前端列表选中选择性列表导出
|
//根据前端列表选中选择性列表导出
|
||||||
|
|
@ -65,24 +63,21 @@ public class SysOperlogController extends BaseController {
|
||||||
@Log(title = "操作日志", businessType = BusinessType.DELETE)
|
@Log(title = "操作日志", businessType = BusinessType.DELETE)
|
||||||
@RequiresPermissions("system:operlog:remove")
|
@RequiresPermissions("system:operlog:remove")
|
||||||
@DeleteMapping("/{operIds}")
|
@DeleteMapping("/{operIds}")
|
||||||
public AjaxResult remove(@PathVariable Long[] operIds)
|
public AjaxResult remove(@PathVariable Long[] operIds) {
|
||||||
{
|
|
||||||
return toAjax(operLogService.deleteOperLogByIds(operIds));
|
return toAjax(operLogService.deleteOperLogByIds(operIds));
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiresPermissions("system:operlog:remove")
|
@RequiresPermissions("system:operlog:remove")
|
||||||
@Log(title = "操作日志", businessType = BusinessType.CLEAN)
|
@Log(title = "操作日志", businessType = BusinessType.CLEAN)
|
||||||
@DeleteMapping("/clean")
|
@DeleteMapping("/clean")
|
||||||
public AjaxResult clean()
|
public AjaxResult clean() {
|
||||||
{
|
|
||||||
operLogService.cleanOperLog();
|
operLogService.cleanOperLog();
|
||||||
return success();
|
return success();
|
||||||
}
|
}
|
||||||
|
|
||||||
@InnerAuth
|
@InnerAuth
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody SysOperLog operLog)
|
public AjaxResult add(@RequestBody SysOperLog operLog) {
|
||||||
{
|
|
||||||
return toAjax(operLogService.insertOperlog(operLog));
|
return toAjax(operLogService.insertOperlog(operLog));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
package com.bonus.sgzb.system.service.impl;
|
package com.bonus.sgzb.system.service.impl;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.bonus.sgzb.system.api.domain.SysOperLog;
|
import com.bonus.sgzb.system.api.domain.SysOperLog;
|
||||||
|
|
@ -13,8 +14,7 @@ import com.bonus.sgzb.system.service.ISysOperLogService;
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class SysOperLogServiceImpl implements ISysOperLogService
|
public class SysOperLogServiceImpl implements ISysOperLogService {
|
||||||
{
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SysOperLogMapper operLogMapper;
|
private SysOperLogMapper operLogMapper;
|
||||||
|
|
||||||
|
|
@ -25,8 +25,7 @@ public class SysOperLogServiceImpl implements ISysOperLogService
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int insertOperlog(SysOperLog operLog)
|
public int insertOperlog(SysOperLog operLog) {
|
||||||
{
|
|
||||||
return operLogMapper.insertOperlog(operLog);
|
return operLogMapper.insertOperlog(operLog);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -37,8 +36,7 @@ public class SysOperLogServiceImpl implements ISysOperLogService
|
||||||
* @return 操作日志集合
|
* @return 操作日志集合
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<SysOperLog> selectOperLogList(SysOperLog operLog)
|
public List<SysOperLog> selectOperLogList(SysOperLog operLog) {
|
||||||
{
|
|
||||||
return operLogMapper.selectOperLogList(operLog);
|
return operLogMapper.selectOperLogList(operLog);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -49,8 +47,7 @@ public class SysOperLogServiceImpl implements ISysOperLogService
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int deleteOperLogByIds(Long[] operIds)
|
public int deleteOperLogByIds(Long[] operIds) {
|
||||||
{
|
|
||||||
return operLogMapper.deleteOperLogByIds(operIds);
|
return operLogMapper.deleteOperLogByIds(operIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -61,8 +58,7 @@ public class SysOperLogServiceImpl implements ISysOperLogService
|
||||||
* @return 操作日志对象
|
* @return 操作日志对象
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SysOperLog selectOperLogById(Long operId)
|
public SysOperLog selectOperLogById(Long operId) {
|
||||||
{
|
|
||||||
return operLogMapper.selectOperLogById(operId);
|
return operLogMapper.selectOperLogById(operId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -70,8 +66,7 @@ public class SysOperLogServiceImpl implements ISysOperLogService
|
||||||
* 清空操作日志
|
* 清空操作日志
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void cleanOperLog()
|
public void cleanOperLog() {
|
||||||
{
|
|
||||||
operLogMapper.cleanOperLog();
|
operLogMapper.cleanOperLog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,12 @@
|
||||||
server:
|
server:
|
||||||
port: 29201
|
port: 29201
|
||||||
|
|
||||||
|
# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问
|
||||||
|
management:
|
||||||
|
endpoint:
|
||||||
|
env:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
# Spring
|
# Spring
|
||||||
spring:
|
spring:
|
||||||
servlet:
|
servlet:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue