|
@@ -8,6 +8,7 @@ import com.management.platform.mapper.OperationLogMapper;
|
|
|
import com.management.platform.util.HttpRespMsg;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -31,9 +32,12 @@ public class OperationLogController {
|
|
|
获取操作日志
|
|
|
*/
|
|
|
@RequestMapping("list")
|
|
|
- public HttpRespMsg list(Integer pageIndex, Integer pageSize) {
|
|
|
+ public HttpRespMsg list(Integer pageIndex, Integer pageSize, @RequestParam(defaultValue = "0") Integer personKey) {
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
QueryWrapper<OperationLog> queryWrapper = new QueryWrapper<>();
|
|
|
+ if(personKey==1){
|
|
|
+ queryWrapper.like("operation_content","人数");
|
|
|
+ }
|
|
|
queryWrapper.orderByDesc("id");
|
|
|
msg.data = operationLogMapper.selectPage(new Page<>(pageIndex, pageSize), queryWrapper);
|
|
|
return msg;
|