yangys
2025-08-22 9810791a41d381a10451f3e9770cfcfedf98e886
blade-service/blade-mdm/src/main/java/org/springblade/mdm/program/service/NcProgramApprovedService.java
@@ -26,6 +26,7 @@
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;
@@ -55,12 +56,13 @@
    * @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);
   }