| | |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZProperty; |
| | | import com.ruoyi.domain.ZfEconomy; |
| | | import com.ruoyi.service.ZPropertyDownloadService; |
| | | import com.ruoyi.service.ZPropertyService; |
| | | import com.ruoyi.service.ZPropertyShareService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | public class ZPropertyController extends BaseController { |
| | | @Autowired |
| | | private ZPropertyService zPropertyService; |
| | | |
| | | @Autowired |
| | | private ZPropertyDownloadService zPropertyDownloadService; |
| | | |
| | | @Autowired |
| | | private ZPropertyShareService zPropertyShareService; |
| | | |
| | | /** |
| | | * 查询所有记录 |
| | |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | if (! (zPropertyDownloadService.deleteData(ids) && zPropertyShareService.deleteByContentId(ids) ) ){ |
| | | return AjaxResult.error(); |
| | | } |
| | | return toAjax(zPropertyService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |