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.
32 lines
1.7 KiB
32 lines
1.7 KiB
|
5 years ago
|
<?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.ccsens.tcm.persist.dao.ReportCodeDao">
|
||
|
|
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.ReportCode">
|
||
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||
|
|
<result column="code" jdbcType="VARCHAR" property="code" />
|
||
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
||
|
|
<result column="parent_code" jdbcType="VARCHAR" property="parentCode" />
|
||
|
|
<result column="must" jdbcType="TINYINT" property="must" />
|
||
|
|
<result column="level" jdbcType="TINYINT" property="level" />
|
||
|
|
<result column="sort" jdbcType="INTEGER" property="sort" />
|
||
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||
|
|
<result column="report_type" jdbcType="TINYINT" property="reportType" />
|
||
|
|
<result column="operator" jdbcType="BIGINT" property="operator" />
|
||
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
||
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
|
||
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
|
||
|
|
</resultMap>
|
||
|
|
<insert id="insertBatch">
|
||
|
|
replace into t_report_code (id, code, name,
|
||
|
|
parent_code, must, level,
|
||
|
|
sort, remark, report_type)
|
||
|
|
values
|
||
|
|
<foreach collection="list" item="report" separator=",">
|
||
|
|
(#{report.id,jdbcType=BIGINT}, #{report.code,jdbcType=VARCHAR}, #{report.name,jdbcType=VARCHAR},
|
||
|
|
#{report.parentCode,jdbcType=VARCHAR}, #{report.must,jdbcType=TINYINT}, #{report.level,jdbcType=TINYINT},
|
||
|
|
#{report.sort,jdbcType=INTEGER}, #{report.remark,jdbcType=VARCHAR}, #{report.reportType,jdbcType=TINYINT})
|
||
|
|
</foreach>
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
|
||
|
|
</mapper>
|