代码拉取完成,页面将自动刷新
<?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.best.tnet.basic.dao.aging.AgingItemRangeDao">
<resultMap id="resultMap" type="com.best.tnet.basic.pojo.aging.po.AgingItemRangePO">
<result column="id" jdbcType="BIGINT" property="id"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="creator" jdbcType="VARCHAR" property="creator"/>
<result column="creator_name" jdbcType="VARCHAR" property="creatorName"/>
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime"/>
<result column="last_updator" jdbcType="VARCHAR" property="lastUpdator"/>
<result column="last_updator_name" jdbcType="VARCHAR" property="lastUpdatorName"/>
<result column="optlock" jdbcType="INTEGER" property="optlock"/>
<result column="status" jdbcType="VARCHAR" property="status"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="domain_id" jdbcType="BIGINT" property="domainId"/>
<result column="aging_item_id" jdbcType="BIGINT" property="agingItemId"/>
<result column="index" jdbcType="INTEGER" property="index"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="from_value" jdbcType="VARCHAR" property="fromValue"/>
<result column="to_value" jdbcType="VARCHAR" property="toValue"/>
<result column="from_value_included" jdbcType="BIT" property="fromValueIncluded"/>
<result column="to_value_included" jdbcType="BIT" property="toValueIncluded"/>
</resultMap>
<insert id="create" parameterType="com.best.tnet.basic.pojo.aging.po.AgingItemRangePO" keyProperty="id" keyColumn = "id" useGeneratedKeys="true">
insert into tn_aging_item_range (
id,
create_time,
creator,
creator_name,
last_update_time,
last_updator,
last_updator_name,
optlock,
status,
remark,
domain_id,
aging_item_id,
index,
name,
from_value,
to_value,
from_value_included,
to_value_included
)
values (
#{id,jdbcType=BIGINT},
sysdate(),
#{creator,jdbcType=VARCHAR},
#{creatorName,jdbcType=VARCHAR},
sysdate(),
#{lastUpdator,jdbcType=VARCHAR},
#{lastUpdatorName,jdbcType=VARCHAR},
#{optlock,jdbcType=INTEGER},
#{status,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR},
#{domainId,jdbcType=BIGINT},
#{agingItemId,jdbcType=BIGINT},
#{index,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR},
#{fromValue,jdbcType=VARCHAR},
#{toValue,jdbcType=VARCHAR},
#{fromValueIncluded,jdbcType=BIT},
#{toValueIncluded,jdbcType=BIT}
)
</insert>
<update id="update">
update tn_aging_item_range set
id = #{id,jdbcType=BIGINT},
creator = #{creator,jdbcType=VARCHAR},
creator_name = #{creatorName,jdbcType=VARCHAR},
last_update_time = sysdate(),
last_updator = #{lastUpdator,jdbcType=VARCHAR},
last_updator_name = #{lastUpdatorName,jdbcType=VARCHAR},
optlock = optlock + 1,
status = #{status,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
domain_id = #{domainId,jdbcType=BIGINT},
aging_item_id = #{agingItemId,jdbcType=BIGINT},
index = #{index,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR},
from_value = #{fromValue,jdbcType=VARCHAR},
to_value = #{toValue,jdbcType=VARCHAR},
from_value_included = #{fromValueIncluded,jdbcType=BIT},
to_value_included = #{toValueIncluded,jdbcType=BIT}
where id = #{id,jdbcType=BIGINT} and optlock = #{optlock,jdbcType=INTEGER}
</update>
<delete id="remove" parameterType="long">
delete from tn_aging_item_range where id = #{id, jdbcType=BIGINT}
</delete>
<delete id="removeByIds" parameterType="java.util.List">
delete from tn_aging_item_range where id in
<foreach item="item" index="index" collection="list" open="(" separator="," close=")">
#{list[${index}], jdbcType=BIGINT}
</foreach>
</delete>
<select id="get" resultMap="resultMap" parameterType="long">
select * from tn_aging_item_range where id = #{id, jdbcType=BIGINT}
</select>
<select id="getByIds" resultMap="resultMap" >
select * from tn_aging_item_range where id in
<foreach item="item" index="index" collection="list" open="(" separator="," close=")">
#{list[${index}], jdbcType=BIGINT}
</foreach>
</select>
<select id="searchByPage" resultMap="resultMap" >
select * from tn_aging_item_range order by id desc
</select>
<select id="getAll" resultMap="resultMap" >
select * from tn_aging_item_range
</select>
</mapper>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。