| | |
| | | import com.ruoyi.service.IZfPropertyService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | |
| | |
| | | Page<ZfProperty> zfPropertyPage = new Page<>(pageNum,pageSize); |
| | | Page<ZfProperty> pageResult = page(zfPropertyPage, lqw); |
| | | |
| | | AjaxResult success = AjaxResult.success(); |
| | | success.put("msg","操作成功"); |
| | | success.put("code",200); |
| | | success.put("data",pageResult.getRecords()); |
| | | success.put("total",pageResult.getTotal()); |
| | | success.put("pageNum",pageResult.getCurrent()); |
| | | success.put("pageSize",pageResult.getSize()); |
| | | |
| | | return success; |
| | | HashMap<String, Object> data = new HashMap<>(); |
| | | |
| | | data.put("data",pageResult.getRecords()); |
| | | data.put("total",pageResult.getTotal()); |
| | | data.put("pageNum",pageResult.getCurrent()); |
| | | data.put("pageSize",pageResult.getSize()); |
| | | |
| | | |
| | | return AjaxResult.success(data); |
| | | |
| | | } |
| | | } |