WorkflowAgentMapper.xml
1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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="weaver.workflow.mapper.WorkflowAgentMapper">
<select id="selectUsingAgent" resultType="string" databaseId="mysql">
<![CDATA[
select * from workflow_agentConditionSet
where agenttype = '1'
and ifnull(isSet,'0')!='1'
and ispendthing='1'
and (beginDate is not null and beginDate!='')
and (unix_timestamp(beginDate+' '+begintime)<=unix_timestamp('${_parameter}'))
and (endDate is null or endDate='' or (unix_timestamp(endDate+' '+endtime)>unix_timestamp('${_parameter}')))
]]>
</select>
<select id="selectUsingAgent" resultType="string" databaseId="oracle">
<![CDATA[
select * from workflow_agentConditionSet
where agenttype = '1'
and nvl(isSet,'0')!='1'
and ispendthing='1'
and (beginDate is not null )
and (beginDate||' '||begintime<='${_parameter}')
and (endDate is null or endDate='' or (endDate||' '||endtime>'${_parameter}'))
]]>
</select>
<select id="selectUsingAgent" resultType="string">
<![CDATA[
select * from workflow_agentConditionSet
where agenttype = '1'
and isnull(isSet,'0')!='1'
and ispendthing='1'
and (beginDate is not null and beginDate!='')
and (beginDate+' '+begintime<='${_parameter}')
and (endDate is null or endDate='' or (endDate+' '+endtime>'${_parameter}'))
]]>
</select>
</mapper>