|
@@ -1,6 +1,5 @@
|
|
|
package com.ktg.iscs.controller;
|
|
package com.ktg.iscs.controller;
|
|
|
|
|
|
|
|
-import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.ktg.common.annotation.Log;
|
|
import com.ktg.common.annotation.Log;
|
|
|
import com.ktg.common.core.controller.BaseController;
|
|
import com.ktg.common.core.controller.BaseController;
|
|
@@ -8,12 +7,12 @@ import com.ktg.common.enums.BusinessType;
|
|
|
import com.ktg.common.pojo.CommonResult;
|
|
import com.ktg.common.pojo.CommonResult;
|
|
|
import com.ktg.common.utils.poi.ExcelUtil;
|
|
import com.ktg.common.utils.poi.ExcelUtil;
|
|
|
import com.ktg.iscs.domain.IsLockType;
|
|
import com.ktg.iscs.domain.IsLockType;
|
|
|
|
|
+import com.ktg.iscs.domain.vo.lockType.IsLockTypeVO;
|
|
|
import com.ktg.iscs.service.IIsLockTypeService;
|
|
import com.ktg.iscs.service.IIsLockTypeService;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
|
import io.swagger.v3.oas.annotations.Parameters;
|
|
import io.swagger.v3.oas.annotations.Parameters;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -27,7 +26,7 @@ import java.util.List;
|
|
|
* @author cgj
|
|
* @author cgj
|
|
|
* @date 2024-11-12
|
|
* @date 2024-11-12
|
|
|
*/
|
|
*/
|
|
|
-@Api(tags = "锁具类型")
|
|
|
|
|
|
|
+@Api(tags = "挂锁类型")
|
|
|
@RestController
|
|
@RestController
|
|
|
@RequestMapping("/iscs/lockType")
|
|
@RequestMapping("/iscs/lockType")
|
|
|
public class IsLockTypeController extends BaseController
|
|
public class IsLockTypeController extends BaseController
|
|
@@ -45,14 +44,14 @@ public class IsLockTypeController extends BaseController
|
|
|
})
|
|
})
|
|
|
@PreAuthorize("@ss.hasPermi('iscs:type:list')")
|
|
@PreAuthorize("@ss.hasPermi('iscs:type:list')")
|
|
|
@GetMapping("/getIsLockTypePage")
|
|
@GetMapping("/getIsLockTypePage")
|
|
|
- public CommonResult<Page<IsLockType>> getIsLockTypePage(Page<IsLockType> page, IsLockType isLockType)
|
|
|
|
|
|
|
+ public CommonResult<Page<IsLockTypeVO>> getIsLockTypePage(Page<IsLockType> page, IsLockType isLockType)
|
|
|
{
|
|
{
|
|
|
- Page<IsLockType> result = isLockTypeService.page(page, Wrappers.<IsLockType>lambdaQuery()
|
|
|
|
|
|
|
+ /*Page<IsLockType> result = isLockTypeService.page(page, Wrappers.<IsLockType>lambdaQuery()
|
|
|
.like(StringUtils.isNotBlank(isLockType.getLockTypeCode()), IsLockType::getLockTypeCode, isLockType.getLockTypeCode())
|
|
.like(StringUtils.isNotBlank(isLockType.getLockTypeCode()), IsLockType::getLockTypeCode, isLockType.getLockTypeCode())
|
|
|
.like(StringUtils.isNotBlank(isLockType.getLockTypeName()), IsLockType::getLockTypeName, isLockType.getLockTypeName())
|
|
.like(StringUtils.isNotBlank(isLockType.getLockTypeName()), IsLockType::getLockTypeName, isLockType.getLockTypeName())
|
|
|
.like(StringUtils.isNotBlank(isLockType.getLockTypeDescription()), IsLockType::getLockTypeDescription, isLockType.getLockTypeDescription())
|
|
.like(StringUtils.isNotBlank(isLockType.getLockTypeDescription()), IsLockType::getLockTypeDescription, isLockType.getLockTypeDescription())
|
|
|
- .orderByDesc(IsLockType::getLockTypeId));
|
|
|
|
|
- return CommonResult.success(result);
|
|
|
|
|
|
|
+ .orderByDesc(IsLockType::getLockTypeId));*/
|
|
|
|
|
+ return CommonResult.success(isLockTypeService.getIsLockTypePage(page, isLockType));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|