|
@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
-import com.ruoyi.common.core.domain.PageInfo;
|
|
|
import com.ruoyi.common.core.domain.R;
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
@@ -14,7 +13,10 @@ import com.ruoyi.system.domain.TemplateLibrary;
|
|
|
import com.ruoyi.system.service.TemplateLibraryService;
|
|
|
import org.apache.poi.ss.formula.functions.T;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
/**
|
|
|
* 红外遥控模板库Controller
|
|
@@ -37,9 +39,6 @@ public class TemplateLibraryController extends BaseController {
|
|
|
IPage<TemplateLibrary> templateIPage = templateLibraryService.page(new Page<TemplateLibrary>().setCurrent(param.getCurrent()).setSize(param.getSize()),
|
|
|
new LambdaQueryWrapper<TemplateLibrary>().like(param.getName()!=null,TemplateLibrary::getName,param.getName())
|
|
|
.eq(TemplateLibrary::getDelFlag,0));
|
|
|
- PageInfo<TemplateLibrary> pageInfo = new PageInfo<>();
|
|
|
- pageInfo.setRecords(templateIPage.getRecords());
|
|
|
- pageInfo.setTotal(templateIPage.getTotal());
|
|
|
return R.ok(templateIPage);
|
|
|
}
|
|
|
|