|
@@ -13,6 +13,7 @@ import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
import org.jeecg.modules.cmmsInspectTcontentItem.entity.CmmsInspectTcontentItem;
|
|
import org.jeecg.modules.cmmsInspectTcontentItem.entity.CmmsInspectTcontentItem;
|
|
|
|
+import org.jeecg.modules.cmmsInspectTcontentItem.entity.CmmsInspectTcontentItemVo;
|
|
import org.jeecg.modules.cmmsInspectTcontentItem.service.ICmmsInspectTcontentItemService;
|
|
import org.jeecg.modules.cmmsInspectTcontentItem.service.ICmmsInspectTcontentItemService;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
@@ -20,6 +21,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
|
+import org.jeecg.modules.cmmsRepair.entity.CmmsRepair;
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
@@ -60,12 +62,13 @@ public class CmmsInspectTcontentItemController extends JeecgController<CmmsInspe
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
//@AutoLog(value = "巡检工单-路线-内容-设备-巡检项-分页列表查询")
|
|
//@AutoLog(value = "巡检工单-路线-内容-设备-巡检项-分页列表查询")
|
|
- @ApiOperation(value="巡检工单-路线-内容-设备-巡检项-分页列表查询", notes="巡检工单-路线-内容-设备-巡检项-分页列表查询")
|
|
|
|
|
|
+ @ApiOperation(value="巡检工单-异常项目查询", notes="巡检工单-异常项目查询")
|
|
@GetMapping(value = "/list")
|
|
@GetMapping(value = "/list")
|
|
public Result<IPage<CmmsInspectTcontentItem>> queryPageList(CmmsInspectTcontentItem cmmsInspectTcontentItem,
|
|
public Result<IPage<CmmsInspectTcontentItem>> queryPageList(CmmsInspectTcontentItem cmmsInspectTcontentItem,
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
HttpServletRequest req) {
|
|
HttpServletRequest req) {
|
|
|
|
+ cmmsInspectTcontentItem.setIresult("1");
|
|
QueryWrapper<CmmsInspectTcontentItem> queryWrapper = QueryGenerator.initQueryWrapper(cmmsInspectTcontentItem, req.getParameterMap());
|
|
QueryWrapper<CmmsInspectTcontentItem> queryWrapper = QueryGenerator.initQueryWrapper(cmmsInspectTcontentItem, req.getParameterMap());
|
|
Page<CmmsInspectTcontentItem> page = new Page<CmmsInspectTcontentItem>(pageNo, pageSize);
|
|
Page<CmmsInspectTcontentItem> page = new Page<CmmsInspectTcontentItem>(pageNo, pageSize);
|
|
IPage<CmmsInspectTcontentItem> pageList = cmmsInspectTcontentItemService.page(page, queryWrapper);
|
|
IPage<CmmsInspectTcontentItem> pageList = cmmsInspectTcontentItemService.page(page, queryWrapper);
|
|
@@ -141,8 +144,9 @@ public class CmmsInspectTcontentItemController extends JeecgController<CmmsInspe
|
|
//@AutoLog(value = "巡检工单-路线-内容-设备-巡检项-通过id查询")
|
|
//@AutoLog(value = "巡检工单-路线-内容-设备-巡检项-通过id查询")
|
|
@ApiOperation(value="巡检工单-路线-内容-设备-巡检项-通过id查询", notes="巡检工单-路线-内容-设备-巡检项-通过id查询")
|
|
@ApiOperation(value="巡检工单-路线-内容-设备-巡检项-通过id查询", notes="巡检工单-路线-内容-设备-巡检项-通过id查询")
|
|
@GetMapping(value = "/queryById")
|
|
@GetMapping(value = "/queryById")
|
|
- public Result<CmmsInspectTcontentItem> queryById(@RequestParam(name="id",required=true) String id) {
|
|
|
|
- CmmsInspectTcontentItem cmmsInspectTcontentItem = cmmsInspectTcontentItemService.getById(id);
|
|
|
|
|
|
+ public Result<CmmsInspectTcontentItemVo> queryById(@RequestParam(name="id",required=true) String id) {
|
|
|
|
+ //CmmsInspectTcontentItem cmmsInspectTcontentItem = cmmsInspectTcontentItemService.getById(id);
|
|
|
|
+ CmmsInspectTcontentItemVo cmmsInspectTcontentItem = cmmsInspectTcontentItemService.getByDetailId(id);
|
|
if(cmmsInspectTcontentItem==null) {
|
|
if(cmmsInspectTcontentItem==null) {
|
|
return Result.error("未找到对应数据");
|
|
return Result.error("未找到对应数据");
|
|
}
|
|
}
|
|
@@ -174,4 +178,37 @@ public class CmmsInspectTcontentItemController extends JeecgController<CmmsInspe
|
|
return super.importExcel(request, response, CmmsInspectTcontentItem.class);
|
|
return super.importExcel(request, response, CmmsInspectTcontentItem.class);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * author: dzc
|
|
|
|
+ * version: 1.0
|
|
|
|
+ * des: 异常项目查询 确认
|
|
|
|
+ * date: 2024/1/26
|
|
|
|
+ */
|
|
|
|
+ @AutoLog(value = "巡检工单-异常项目查询-确认")
|
|
|
|
+ @ApiOperation(value="巡检工单-异常项目查询-确认", notes="巡检工单-异常项目查询-确认")
|
|
|
|
+ //@RequiresPermissions("org.jeecg.modules:cmms_inspect_tcontent_item:add")
|
|
|
|
+ @PostMapping(value = "/confirm")
|
|
|
|
+ public Result<String> confirm(@RequestBody CmmsInspectTcontentItem cmmsInspectTcontentItem,HttpServletRequest req) {
|
|
|
|
+ boolean b = cmmsInspectTcontentItemService.confirm(cmmsInspectTcontentItem, req);
|
|
|
|
+ if (b) {
|
|
|
|
+ return Result.OK("操作成功!");
|
|
|
|
+ }
|
|
|
|
+ return Result.error("操作失败!");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * author: dzc
|
|
|
|
+ * version: 1.0
|
|
|
|
+ * des: 异常项目查询 转报修
|
|
|
|
+ * date: 2024/1/26
|
|
|
|
+ */
|
|
|
|
+ @AutoLog(value = "巡检工单-异常项目查询-确认")
|
|
|
|
+ @ApiOperation(value="巡检工单-异常项目查询-确认", notes="巡检工单-异常项目查询-确认")
|
|
|
|
+ //@RequiresPermissions("org.jeecg.modules:cmms_inspect_tcontent_item:add")
|
|
|
|
+ @PostMapping(value = "/transrepair")
|
|
|
|
+ public Result<String> transrepair(@RequestBody CmmsRepair cmmsRepair, HttpServletRequest req) {
|
|
|
|
+ cmmsInspectTcontentItemService.transrepair(cmmsRepair,req);
|
|
|
|
+ return Result.OK("添加成功!");
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|