| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.business.entity.ContractSubjectMatter; |
| | | import com.by4cloud.platformx.business.vo.ProductExcelVO; |
| | | import com.by4cloud.platformx.business.vo.SubjectMatterExcelVO; |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.excel.annotation.RequestExcel; |
| | | import com.by4cloud.platformx.common.log.annotation.SysLog; |
| | | import com.by4cloud.platformx.business.service.ContractSubjectMatterService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.BindingResult; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | |
| | | public R selectSubjectMatter(@PathVariable("contractId" ) Long contractId) { |
| | | return contractSubjectMatterService.selectSubjectMatter(contractId); |
| | | } |
| | | |
| | | /** |
| | | * 导入标的物 |
| | | * @param excelVOList |
| | | * @param bindingResult |
| | | * @return |
| | | */ |
| | | @PostMapping("/importSubjectMatter") |
| | | public R importSubjectMatter(@RequestExcel List<SubjectMatterExcelVO> excelVOList, BindingResult bindingResult) { |
| | | return contractSubjectMatterService.importSubjectMatter(excelVOList, bindingResult); |
| | | } |
| | | } |