Ejemplo n.º 1
0
def getLogList(id, pageNo=1, pageSize=10):
    # sql=text("select * from task_job_history where task_job_id='%s' and del_flag=0 order by create_time desc limit"%(taskJobId))
    return BaseDao.getPageResult(
        page=Page(pageNo, pageSize),
        paramMap={"taskJobHistoryId": id},
        clzz=[LogInfo, JobTemplate],
        join=[JobTemplate, JobTemplate.id == LogInfo.jobTemplateId])
Ejemplo n.º 2
0
def getTaskJobHistory(taskJobId, pageNo=1, pageSize=10):
    return BaseDao.getPageResult(page=Page(pageNo, pageSize),
                                 paramMap={"taskJobId": taskJobId},
                                 clzz=[TaskJobHistory])