forked from luyan/epmet-cloud-lingshan
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.epmet.dao.IcSyncJobDao">
|
|
|
|
<!--查询指定状态的任务列表-->
|
|
<select id="selectJobListByStatus" resultType="com.epmet.entity.IcSyncJobEntity">
|
|
select id,
|
|
customer_id,
|
|
org_id,
|
|
pid,
|
|
org_id_path,
|
|
job_type,
|
|
operator_id,
|
|
operation_status,
|
|
processor_ip,
|
|
del_flag,
|
|
revision,
|
|
created_by,
|
|
created_time,
|
|
updated_by,
|
|
updated_time
|
|
from ic_sync_job
|
|
where
|
|
DEL_FLAG = 0
|
|
and OPERATION_STATUS = #{status}
|
|
and JOB_TYPE = #{jobType}
|
|
<if test="processorIp != null">
|
|
and PROCESSOR_IP = #{processorIp}
|
|
</if>
|
|
order by CREATED_TIME asc
|
|
<if test="itemCount != null">
|
|
limit #{itemCount}
|
|
</if>
|
|
</select>
|
|
</mapper>
|