|
|
@ -14,6 +14,7 @@ import com.epmet.entity.ImportTaskEntity; |
|
|
|
import com.epmet.service.ImportTaskService; |
|
|
|
import com.github.pagehelper.Page; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
@ -112,7 +113,9 @@ public class ImportTaskServiceImpl implements ImportTaskService { |
|
|
|
@Override |
|
|
|
public Boolean processingTaskCheck(String bizType) { |
|
|
|
LambdaQueryWrapper<ImportTaskEntity> query = new LambdaQueryWrapper<>(); |
|
|
|
query.eq(ImportTaskEntity::getBizType, bizType); |
|
|
|
if (StringUtils.isNotBlank(bizType)) { |
|
|
|
query.eq(ImportTaskEntity::getBizType, bizType); |
|
|
|
} |
|
|
|
query.eq(ImportTaskEntity::getProcessStatus, ImportTaskConstants.PROCESS_STATUS_PROCESSING); |
|
|
|
|
|
|
|
return importRecordDao.selectCount(query) > 0; |
|
|
|