You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
XML
41 lines
1.2 KiB
XML
<?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.glxp.udi.admin.dao.inout.ScheduledDao">
|
|
|
|
|
|
<insert id="insertScheduled" keyProperty="id"
|
|
parameterType="com.glxp.udi.admin.entity.inout.ScheduledEntity">
|
|
insert INTO io_scheduled
|
|
(cronName,cron,customerId)
|
|
values
|
|
(
|
|
#{cronName},
|
|
#{cron},
|
|
#{customerId}
|
|
)
|
|
</insert>
|
|
|
|
|
|
<delete id="deleteScheduled" parameterType="java.lang.String">
|
|
delete from io_scheduled where id = #{id}
|
|
</delete>
|
|
|
|
|
|
<select id="findScheduled" parameterType="com.glxp.udi.admin.req.inout.ScheduledRequest"
|
|
resultType="com.glxp.udi.admin.entity.inout.ScheduledEntity">
|
|
select * from io_scheduled
|
|
<where>
|
|
<if test="cronName != null and cronName != ''">
|
|
and cronName = #{cronName}
|
|
</if>
|
|
<if test="customerId != null and customerId != ''">
|
|
and customerId = #{customerId}
|
|
</if>
|
|
</where>
|
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|