| | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.core.text.Convert; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZfProperty; |
| | | import com.ruoyi.framework.web.service.TokenService; |
| | | import com.ruoyi.service.IZfPropertyService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | { |
| | | List<ZfProperty> list = zfPropertyService.selectByCondition(zfProperty); |
| | | log.info("导出记录为:{}",list); |
| | | ExcelUtil<ZfProperty> util = new ExcelUtil<ZfProperty>(ZfProperty.class); |
| | | ExcelUtil<ZfProperty> util = new ExcelUtil<>(ZfProperty.class); |
| | | util.exportExcel(response, list, "家庭资产记录数据"); |
| | | } |
| | | // |
| | |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ZfProperty zfProperty) |
| | | { |
| | | return toAjax(zfPropertyService.addProperty(zfProperty)); |
| | | return zfPropertyService.addData2(zfProperty); |
| | | } |
| | | |
| | | /** |