|
|
@ -5,11 +5,12 @@ |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="code" jdbcType="VARCHAR" property="code" /> |
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" /> |
|
|
|
<result column="parent_id" jdbcType="VARCHAR" property="parentId" /> |
|
|
|
<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" /> |
|
|
@ -74,8 +75,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, code, name, parent_id, must, level, sort, remark, operator, created_at, updated_at, |
|
|
|
rec_status |
|
|
|
id, code, name, parent_code, must, level, sort, remark, report_type, operator, created_at, |
|
|
|
updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.ReportCodeExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -109,15 +110,15 @@ |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.ReportCode"> |
|
|
|
insert into t_report_code (id, code, name, |
|
|
|
parent_id, must, level, |
|
|
|
sort, remark, operator, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
) |
|
|
|
parent_code, must, level, |
|
|
|
sort, remark, report_type, |
|
|
|
operator, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, |
|
|
|
#{parentId,jdbcType=VARCHAR}, #{must,jdbcType=TINYINT}, #{level,jdbcType=TINYINT}, |
|
|
|
#{sort,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
#{parentCode,jdbcType=VARCHAR}, #{must,jdbcType=TINYINT}, #{level,jdbcType=TINYINT}, |
|
|
|
#{sort,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, #{reportType,jdbcType=TINYINT}, |
|
|
|
#{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.ReportCode"> |
|
|
|
insert into t_report_code |
|
|
@ -131,8 +132,8 @@ |
|
|
|
<if test="name != null"> |
|
|
|
name, |
|
|
|
</if> |
|
|
|
<if test="parentId != null"> |
|
|
|
parent_id, |
|
|
|
<if test="parentCode != null"> |
|
|
|
parent_code, |
|
|
|
</if> |
|
|
|
<if test="must != null"> |
|
|
|
must, |
|
|
@ -146,6 +147,9 @@ |
|
|
|
<if test="remark != null"> |
|
|
|
remark, |
|
|
|
</if> |
|
|
|
<if test="reportType != null"> |
|
|
|
report_type, |
|
|
|
</if> |
|
|
|
<if test="operator != null"> |
|
|
|
operator, |
|
|
|
</if> |
|
|
@ -169,8 +173,8 @@ |
|
|
|
<if test="name != null"> |
|
|
|
#{name,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="parentId != null"> |
|
|
|
#{parentId,jdbcType=VARCHAR}, |
|
|
|
<if test="parentCode != null"> |
|
|
|
#{parentCode,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="must != null"> |
|
|
|
#{must,jdbcType=TINYINT}, |
|
|
@ -184,6 +188,9 @@ |
|
|
|
<if test="remark != null"> |
|
|
|
#{remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="reportType != null"> |
|
|
|
#{reportType,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="operator != null"> |
|
|
|
#{operator,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -216,8 +223,8 @@ |
|
|
|
<if test="record.name != null"> |
|
|
|
name = #{record.name,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.parentId != null"> |
|
|
|
parent_id = #{record.parentId,jdbcType=VARCHAR}, |
|
|
|
<if test="record.parentCode != null"> |
|
|
|
parent_code = #{record.parentCode,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.must != null"> |
|
|
|
must = #{record.must,jdbcType=TINYINT}, |
|
|
@ -231,6 +238,9 @@ |
|
|
|
<if test="record.remark != null"> |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.reportType != null"> |
|
|
|
report_type = #{record.reportType,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.operator != null"> |
|
|
|
operator = #{record.operator,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -253,11 +263,12 @@ |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
code = #{record.code,jdbcType=VARCHAR}, |
|
|
|
name = #{record.name,jdbcType=VARCHAR}, |
|
|
|
parent_id = #{record.parentId,jdbcType=VARCHAR}, |
|
|
|
parent_code = #{record.parentCode,jdbcType=VARCHAR}, |
|
|
|
must = #{record.must,jdbcType=TINYINT}, |
|
|
|
level = #{record.level,jdbcType=TINYINT}, |
|
|
|
sort = #{record.sort,jdbcType=INTEGER}, |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
report_type = #{record.reportType,jdbcType=TINYINT}, |
|
|
|
operator = #{record.operator,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
@ -275,8 +286,8 @@ |
|
|
|
<if test="name != null"> |
|
|
|
name = #{name,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="parentId != null"> |
|
|
|
parent_id = #{parentId,jdbcType=VARCHAR}, |
|
|
|
<if test="parentCode != null"> |
|
|
|
parent_code = #{parentCode,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="must != null"> |
|
|
|
must = #{must,jdbcType=TINYINT}, |
|
|
@ -290,6 +301,9 @@ |
|
|
|
<if test="remark != null"> |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="reportType != null"> |
|
|
|
report_type = #{reportType,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="operator != null"> |
|
|
|
operator = #{operator,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -309,11 +323,12 @@ |
|
|
|
update t_report_code |
|
|
|
set code = #{code,jdbcType=VARCHAR}, |
|
|
|
name = #{name,jdbcType=VARCHAR}, |
|
|
|
parent_id = #{parentId,jdbcType=VARCHAR}, |
|
|
|
parent_code = #{parentCode,jdbcType=VARCHAR}, |
|
|
|
must = #{must,jdbcType=TINYINT}, |
|
|
|
level = #{level,jdbcType=TINYINT}, |
|
|
|
sort = #{sort,jdbcType=INTEGER}, |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
report_type = #{reportType,jdbcType=TINYINT}, |
|
|
|
operator = #{operator,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|