| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.mp.base.BizServiceImpl; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.mdm.basesetting.producedivision.mapper.MdmUserMapper; |
| | | import org.springblade.mdm.program.entity.NcProgramApproved; |
| | | import org.springblade.mdm.program.mapper.NcProgramApprovedMapper; |
| | | import org.springblade.mdm.program.vo.DncSendBackData; |
| | | import org.springblade.mdm.program.vo.NcProgramExportDncPageVO; |
| | | import org.springblade.mdm.program.vo.NcProgramExportDncQueryVO; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | /** |
| | | * 下发/回传程序统计 |
| | |
| | | @AllArgsConstructor |
| | | public class NcProgramApprovedService extends BizServiceImpl<NcProgramApprovedMapper, NcProgramApproved> { |
| | | |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query 查询参数 |
| | | * @return |
| | | */ |
| | | @Transactional(readOnly = true) |
| | | public IPage<NcProgramExportDncPageVO> exportDncPageQuery(NcProgramExportDncQueryVO query) { |
| | | //如果不是查询已办就都算查询待办(未导出)的 |
| | | if(query.getStatus() != NcProgramApproved.STATUS_EXPORTED){ |
| | | query.setStatus(NcProgramApproved.STATUS_NOT_EXPORT); |
| | | } |
| | | |
| | | IPage<NcProgramExportDncPageVO> page = this.getBaseMapper().exportDncPageQuery(Condition.getPage(query),query); |
| | | |
| | | return page; |
| | | |
| | | return this.getBaseMapper().exportDncPageQuery(Condition.getPage(query),query); |
| | | } |
| | | |
| | | } |
| | | |