| | |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZProperty; |
| | | import com.ruoyi.domain.ZfEconomy; |
| | | import com.ruoyi.service.ZPropertyService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | return zPropertyService.selectDataList(zProperty,pageNum,pageSize); |
| | | } |
| | | |
| | | @GetMapping("/type") |
| | | public AjaxResult listType(){ |
| | | return zPropertyService.listType(); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查询 |
| | | */ |
| | |
| | | /** |
| | | * 模板 |
| | | */ |
| | | @GetMapping("/model") |
| | | @PostMapping("/model") |
| | | public void getModel(HttpServletResponse response){ |
| | | ZProperty zProperty = new ZProperty(); |
| | | List<ZProperty> emptyList = Collections.singletonList(zProperty); |
| | |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:property:export')") |
| | | @Log(title = "个人财产记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export/{ids}") |
| | | public void export(HttpServletResponse response,@PathVariable Long[] ids) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) |
| | | { |
| | | List<ZProperty> list = zPropertyService.selectByCondition(); |
| | | log.info("导出记录为:{}",list); |
| | | ExcelUtil<ZProperty> util = new ExcelUtil<>(ZProperty.class); |
| | | util.exportExcel(response, list, "个人财产记录数据"); |
| | | } |
| | | |
| | | @Log(title = "个人财产记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export1/{ids}") |
| | | public void export1(HttpServletResponse response,@PathVariable Long[] ids) |
| | | { |
| | | List<ZProperty> list = zPropertyService.selectByIds(ids); |
| | | log.info("导出记录为:{}",list); |