|
@@ -1,18 +1,20 @@
|
|
|
package com.tofly.dyrq.custom.controller;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.tofly.common.core.entity.ResultRespone;
|
|
|
+import com.tofly.common.core.util.StringUtil;
|
|
|
import com.tofly.common.log.annotation.ToFlyAppLog;
|
|
|
import com.tofly.dyrq.custom.service.CustomEpmtSystemService;
|
|
|
import com.tofly.dyrq.entity.EpmtSystem;
|
|
|
+import com.tofly.dyrq.service.EpmtSystemService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.bouncycastle.math.ec.ECMultiplier;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.Arrays;
|
|
@@ -30,6 +32,7 @@ import java.util.Arrays;
|
|
|
public class CustomEmptSystemController {
|
|
|
|
|
|
private final CustomEpmtSystemService customEpmtSystemService;
|
|
|
+ private final EpmtSystemService epmtSystemService;
|
|
|
|
|
|
|
|
|
* 新增设备管理制度表
|
|
@@ -69,4 +72,17 @@ public class CustomEmptSystemController {
|
|
|
public ResultRespone removeById(String ids) {
|
|
|
return ResultRespone.success(customEpmtSystemService.removeById(Arrays.asList(ids.split(","))));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ * 分页查询
|
|
|
+ * @param page 分页对象
|
|
|
+ * @param epmtSystem 设备管理制度表
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/page" )
|
|
|
+ @ApiOperation(value = "分页查询")
|
|
|
+ public ResultRespone getEpmtSystemPage(Page page, @ModelAttribute EpmtSystem epmtSystem) {
|
|
|
+ return ResultRespone.success(epmtSystemService.page(page, Wrappers.<EpmtSystem>lambdaQuery()
|
|
|
+ .like(StringUtil.isNotEmpty(epmtSystem.getName()),EpmtSystem::getName,epmtSystem.getName())));
|
|
|
+ }
|
|
|
}
|