给多单位再增加两个副单位
This commit is contained in:
@@ -6,7 +6,11 @@
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="basic_unit" jdbcType="VARCHAR" property="basicUnit" />
|
||||
<result column="other_unit" jdbcType="VARCHAR" property="otherUnit" />
|
||||
<result column="other_unit_two" jdbcType="VARCHAR" property="otherUnitTwo" />
|
||||
<result column="other_unit_three" jdbcType="VARCHAR" property="otherUnitThree" />
|
||||
<result column="ratio" jdbcType="INTEGER" property="ratio" />
|
||||
<result column="ratio_two" jdbcType="INTEGER" property="ratioTwo" />
|
||||
<result column="ratio_three" jdbcType="INTEGER" property="ratioThree" />
|
||||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||
<result column="delete_flag" jdbcType="VARCHAR" property="deleteFlag" />
|
||||
</resultMap>
|
||||
@@ -69,7 +73,8 @@
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, name, basic_unit, other_unit, ratio, tenant_id, delete_flag
|
||||
id, name, basic_unit, other_unit, other_unit_two, other_unit_three, ratio, ratio_two,
|
||||
ratio_three, tenant_id, delete_flag
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.UnitExample" resultMap="BaseResultMap">
|
||||
select
|
||||
@@ -103,11 +108,13 @@
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.jsh.erp.datasource.entities.Unit">
|
||||
insert into jsh_unit (id, name, basic_unit,
|
||||
other_unit, ratio, tenant_id,
|
||||
delete_flag)
|
||||
other_unit, other_unit_two, other_unit_three,
|
||||
ratio, ratio_two, ratio_three,
|
||||
tenant_id, delete_flag)
|
||||
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{basicUnit,jdbcType=VARCHAR},
|
||||
#{otherUnit,jdbcType=VARCHAR}, #{ratio,jdbcType=INTEGER}, #{tenantId,jdbcType=BIGINT},
|
||||
#{deleteFlag,jdbcType=VARCHAR})
|
||||
#{otherUnit,jdbcType=VARCHAR}, #{otherUnitTwo,jdbcType=VARCHAR}, #{otherUnitThree,jdbcType=VARCHAR},
|
||||
#{ratio,jdbcType=INTEGER}, #{ratioTwo,jdbcType=INTEGER}, #{ratioThree,jdbcType=INTEGER},
|
||||
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.Unit">
|
||||
insert into jsh_unit
|
||||
@@ -124,9 +131,21 @@
|
||||
<if test="otherUnit != null">
|
||||
other_unit,
|
||||
</if>
|
||||
<if test="otherUnitTwo != null">
|
||||
other_unit_two,
|
||||
</if>
|
||||
<if test="otherUnitThree != null">
|
||||
other_unit_three,
|
||||
</if>
|
||||
<if test="ratio != null">
|
||||
ratio,
|
||||
</if>
|
||||
<if test="ratioTwo != null">
|
||||
ratio_two,
|
||||
</if>
|
||||
<if test="ratioThree != null">
|
||||
ratio_three,
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id,
|
||||
</if>
|
||||
@@ -147,9 +166,21 @@
|
||||
<if test="otherUnit != null">
|
||||
#{otherUnit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherUnitTwo != null">
|
||||
#{otherUnitTwo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherUnitThree != null">
|
||||
#{otherUnitThree,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ratio != null">
|
||||
#{ratio,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="ratioTwo != null">
|
||||
#{ratioTwo,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="ratioThree != null">
|
||||
#{ratioThree,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
#{tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
@@ -179,9 +210,21 @@
|
||||
<if test="record.otherUnit != null">
|
||||
other_unit = #{record.otherUnit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.otherUnitTwo != null">
|
||||
other_unit_two = #{record.otherUnitTwo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.otherUnitThree != null">
|
||||
other_unit_three = #{record.otherUnitThree,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.ratio != null">
|
||||
ratio = #{record.ratio,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.ratioTwo != null">
|
||||
ratio_two = #{record.ratioTwo,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.ratioThree != null">
|
||||
ratio_three = #{record.ratioThree,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.tenantId != null">
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
@@ -199,7 +242,11 @@
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
basic_unit = #{record.basicUnit,jdbcType=VARCHAR},
|
||||
other_unit = #{record.otherUnit,jdbcType=VARCHAR},
|
||||
other_unit_two = #{record.otherUnitTwo,jdbcType=VARCHAR},
|
||||
other_unit_three = #{record.otherUnitThree,jdbcType=VARCHAR},
|
||||
ratio = #{record.ratio,jdbcType=INTEGER},
|
||||
ratio_two = #{record.ratioTwo,jdbcType=INTEGER},
|
||||
ratio_three = #{record.ratioThree,jdbcType=INTEGER},
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||
delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
@@ -218,9 +265,21 @@
|
||||
<if test="otherUnit != null">
|
||||
other_unit = #{otherUnit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherUnitTwo != null">
|
||||
other_unit_two = #{otherUnitTwo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherUnitThree != null">
|
||||
other_unit_three = #{otherUnitThree,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ratio != null">
|
||||
ratio = #{ratio,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="ratioTwo != null">
|
||||
ratio_two = #{ratioTwo,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="ratioThree != null">
|
||||
ratio_three = #{ratioThree,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
@@ -235,7 +294,11 @@
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
basic_unit = #{basicUnit,jdbcType=VARCHAR},
|
||||
other_unit = #{otherUnit,jdbcType=VARCHAR},
|
||||
other_unit_two = #{otherUnitTwo,jdbcType=VARCHAR},
|
||||
other_unit_three = #{otherUnitThree,jdbcType=VARCHAR},
|
||||
ratio = #{ratio,jdbcType=INTEGER},
|
||||
ratio_two = #{ratioTwo,jdbcType=INTEGER},
|
||||
ratio_three = #{ratioThree,jdbcType=INTEGER},
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||
delete_flag = #{deleteFlag,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
|
||||
Reference in New Issue
Block a user