| | |
| | | import com.moral.api.service.AllocationExtensionService; |
| | | import com.moral.api.service.AllocationService; |
| | | import com.moral.api.service.FileTableService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class AllocationExtensionServiceImpl extends ServiceImpl<AllocationExtensionMapper, AllocationExtension> implements AllocationExtensionService { |
| | | |
| | | private final AllocationService allocationService; |
| | | @Autowired |
| | | private AllocationService allocationService; |
| | | private final FileTableService fileTableService; |
| | | |
| | | public AllocationExtensionServiceImpl(AllocationService allocationService, FileTableService fileTableService) { |
| | | this.allocationService = allocationService; |
| | | public AllocationExtensionServiceImpl( FileTableService fileTableService) { |
| | | this.fileTableService = fileTableService; |
| | | } |
| | | |
| | |
| | | |
| | | @Override |
| | | public Page<AllocationExtensionPageExt> extPage(AllocationExtensionPageCond allocationExtensionPageCond) { |
| | | List<Integer> unitList = allocationService.unitResult(); |
| | | allocationExtensionPageCond.setUnitList(unitList); |
| | | return this.baseMapper.extPage(allocationExtensionPageCond.getPage().convertPage(), allocationExtensionPageCond); |
| | | } |
| | | |