|
|
|
@ -2,6 +2,7 @@ package com.foreverwin.mesnac.common.controller;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.foreverwin.mesnac.common.constant.Constants;
|
|
|
|
|
import com.foreverwin.mesnac.common.model.Tool;
|
|
|
|
|
import com.foreverwin.mesnac.common.service.ToolService;
|
|
|
|
|
import com.foreverwin.modular.core.util.CommonMethods;
|
|
|
|
@ -53,6 +54,24 @@ public class ToolController {
|
|
|
|
|
return R.ok(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询所有数据,状态为Y的刀具
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@ResponseBody
|
|
|
|
|
@GetMapping("/getToolListByStatus")
|
|
|
|
|
public R getToolListByStatus(Tool tool){
|
|
|
|
|
String site = CommonMethods.getSite();
|
|
|
|
|
tool.setSite(site);
|
|
|
|
|
tool.setStatus(Constants.TOOL_STATUS_Y);
|
|
|
|
|
List<Tool> result;
|
|
|
|
|
QueryWrapper<Tool> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
queryWrapper.setEntity(tool);
|
|
|
|
|
result = toolService.list(queryWrapper);
|
|
|
|
|
return R.ok(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 分页查询数据
|
|
|
|
|
*
|
|
|
|
|