<?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.zcloud.mapper.dsno1.corp.VIPAdjustmentLogMapper">

	<!--表名 -->
	<sql id="tableName">
		BUS_MEMBER_ADJUSTMENT_LOG
	</sql>

	<!--数据字典表名 -->
	<sql id="dicTableName">
		SYS_DICTIONARIES
	</sql>

	<!-- 字段 -->
	<sql id="Field">
		m.ID,
		m.CORPINFO_ID,
		m.OLD_VIPLEVEL,
		m.NEW_VIPLEVEL,
		m.CONTRACT_FILE,
		m.ISDELETE,
		m.CREATOR,
		m.CREATTIME,
		m.OPERATOR,
		m.OPERATTIME,
		m.NOTES
	</sql>

	<!-- 字段用于新增 -->
	<sql id="Field2">
		ID,
		CORPINFO_ID,
		OLD_VIPLEVEL,
		NEW_VIPLEVEL,
		CONTRACT_FILE,
		ISDELETE,
		CREATOR,
		CREATTIME,
		OPERATOR,
		OPERATTIME,
		NOTES
	</sql>

	<!-- 字段值 -->
	<sql id="FieldValue">
		#{ID},
		#{CORPINFO_ID},
		#{OLD_VIPLEVEL},
		#{NEW_VIPLEVEL},
		#{CONTRACT_FILE},
		#{ISDELETE},
		#{CREATOR},
		#{CREATTIME},
		#{OPERATOR},
		#{OPERATTIME},
		#{NOTES}
	</sql>

	<!-- 新增-->
	<insert id="save" parameterType="pd">
		insert into
	<include refid="tableName"></include>
		(
	<include refid="Field2"></include>
		) values (
	<include refid="FieldValue"></include>
		)
	</insert>
</mapper>
