代码拉取完成,页面将自动刷新
<?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.AgingHeaderDao">
<resultMap id="resultMap" type="com.best.tnet.basic.pojo.aging.po.AgingHeaderPO">
<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="type" jdbcType="VARCHAR" property="type"/>
<result column="partner_name" jdbcType="VARCHAR" property="partnerName"/>
<result column="external" jdbcType="BIT" property="external"/>
</resultMap>
<insert id="create" parameterType="com.best.tnet.basic.pojo.aging.po.AgingHeaderPO" keyProperty="id" keyColumn = "id" useGeneratedKeys="true">
insert into tn_aging_header (
id,
create_time,
creator,
creator_name,
last_update_time,
last_updator,
last_updator_name,
optlock,
status,
remark,
domain_id,
type,
partner_name,
external
)
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},
#{type,jdbcType=VARCHAR},
#{partnerName,jdbcType=VARCHAR},
#{external,jdbcType=BIT}
)
</insert>
<update id="update">
update tn_aging_header 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},
type = #{type,jdbcType=VARCHAR},
partner_name = #{partnerName,jdbcType=VARCHAR},
external = #{external,jdbcType=BIT}
where id = #{id,jdbcType=BIGINT} and optlock = #{optlock,jdbcType=INTEGER}
</update>
<delete id="remove" parameterType="long">
delete from tn_aging_header where id = #{id, jdbcType=BIGINT}
</delete>
<delete id="removeByIds" parameterType="java.util.List">
delete from tn_aging_header 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_header where id = #{id, jdbcType=BIGINT}
</select>
<select id="getByIds" resultMap="resultMap" >
select * from tn_aging_header 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_header order by id desc
</select>
<select id="getAll" resultMap="resultMap" >
select * from tn_aging_header
</select>
</mapper>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。