|
@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
|
+import org.jeecg.modules.detail.dto.InterlockDetailQueryDTO;
|
|
|
import org.jeecg.modules.history.entity.InterlockDetailHistory;
|
|
|
import org.jeecg.modules.history.service.IInterlockDetailHistoryService;
|
|
|
|
|
@@ -20,6 +21,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
+import org.jeecg.modules.history.vo.InterlockDetailHistoryQueryVO;
|
|
|
+import org.jeecg.modules.history.vo.InterlockSummaryHistoryVO;
|
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
|
import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
@@ -42,14 +45,42 @@ import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
* @Date: 2024-05-30
|
|
|
* @Version: V1.0
|
|
|
*/
|
|
|
-@Api(tags="联锁详细信息历史数据表")
|
|
|
+@Api(tags=".联锁详细信息历史数据表")
|
|
|
@RestController
|
|
|
@RequestMapping("/history/interlockDetailHistory")
|
|
|
@Slf4j
|
|
|
public class InterlockDetailHistoryController extends JeecgController<InterlockDetailHistory, IInterlockDetailHistoryService> {
|
|
|
@Autowired
|
|
|
private IInterlockDetailHistoryService interlockDetailHistoryService;
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ * 联锁历史数据——各种逻辑状态分页查询
|
|
|
+ */
|
|
|
+ @ApiOperation(".联锁历史数据——各种逻辑状态分页查询")
|
|
|
+ @GetMapping("/list1")
|
|
|
+ public Result<IPage<InterlockSummaryHistoryVO>> list(InterlockSummaryHistoryVO vo,
|
|
|
+ @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
+ @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
+ HttpServletRequest req){
|
|
|
+ Page<InterlockSummaryHistoryVO> page = new Page<>(pageNo,pageSize);
|
|
|
+ IPage<InterlockSummaryHistoryVO> pageList = interlockDetailHistoryService.getPage(page, vo);
|
|
|
+ return Result.OK(pageList);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * 联锁历史数据详细信息-分页查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value=".联锁历史数据详细信息-分页查询", notes="联锁历史数据详细信息-分页查询")
|
|
|
+ @GetMapping(value = "/list2")
|
|
|
+ public Result<IPage<InterlockDetailHistoryQueryVO>> list2(InterlockDetailQueryDTO dto,
|
|
|
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
|
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
|
+ HttpServletRequest req) {
|
|
|
+ Page<InterlockDetailHistoryQueryVO> page = new Page<InterlockDetailHistoryQueryVO>(pageNo, pageSize);
|
|
|
+ IPage<InterlockDetailHistoryQueryVO> pageList = interlockDetailHistoryService.getPage2(page, dto);
|
|
|
+ return Result.OK(pageList);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
* 分页列表查询
|
|
|
*
|
|
@@ -71,7 +102,7 @@ public class InterlockDetailHistoryController extends JeecgController<InterlockD
|
|
|
IPage<InterlockDetailHistory> pageList = interlockDetailHistoryService.page(page, queryWrapper);
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
* 添加
|
|
|
*
|
|
@@ -86,7 +117,7 @@ public class InterlockDetailHistoryController extends JeecgController<InterlockD
|
|
|
interlockDetailHistoryService.save(interlockDetailHistory);
|
|
|
return Result.OK("添加成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
* 编辑
|
|
|
*
|
|
@@ -101,7 +132,7 @@ public class InterlockDetailHistoryController extends JeecgController<InterlockD
|
|
|
interlockDetailHistoryService.updateById(interlockDetailHistory);
|
|
|
return Result.OK("编辑成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
* 通过id删除
|
|
|
*
|
|
@@ -116,7 +147,7 @@ public class InterlockDetailHistoryController extends JeecgController<InterlockD
|
|
|
interlockDetailHistoryService.removeById(id);
|
|
|
return Result.OK("删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
* 批量删除
|
|
|
*
|
|
@@ -131,7 +162,7 @@ public class InterlockDetailHistoryController extends JeecgController<InterlockD
|
|
|
this.interlockDetailHistoryService.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
return Result.OK("批量删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
* 通过id查询
|
|
|
*
|