| | |
| | | import org.springblade.mdm.program.vo.NcProgramExportDncQueryVO; |
| | | import org.springblade.mdm.utils.CustomBinaryWriter; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.io.ByteArrayInputStream; |
| | | import java.io.IOException; |
| | |
| | | * @param query 查询参数 |
| | | * @return |
| | | */ |
| | | @Transactional(readOnly = true) |
| | | public IPage<NcProgramExportDncPageVO> exportDncPageQuery(NcProgramExportDncQueryVO query) { |
| | | |
| | | IPage<NcProgramExportDncPageVO> page = this.getBaseMapper().exportDncPageQuery(Condition.getPage(query),query); |
| | | |
| | | return page; |
| | | |
| | | //如果不是查询已办就都算查询待办(未导出)的 |
| | | if(query.getStatus() != NcProgramApproved.STATUS_EXPORTED){ |
| | | query.setStatus(NcProgramApproved.STATUS_NOT_EXPORT); |
| | | } |
| | | return this.getBaseMapper().exportDncPageQuery(Condition.getPage(query),query); |
| | | } |
| | | |
| | | |