|
@@ -22,14 +22,13 @@
|
|
|
<result column="update_time_" property="updateTime" />
|
|
|
<result column="tenant_id_" property="tenantId" />
|
|
|
<result column="lock_flag_" property="lockFlag" />
|
|
|
- <result column="subsidy_" property="subsidy" />
|
|
|
<association property="sysUser" resultMap="com.keao.edu.user.dao.SysUserDao.SysUser"/>
|
|
|
</resultMap>
|
|
|
<sql id="organizationColumn">
|
|
|
o.id_ organization_id_, o.user_id_, o.name_, o.contact_name_, o.contact_phone_,
|
|
|
o.settlement_type_, o.share_profit_amount_, o.level_, o.parent_organ_id_,
|
|
|
o.parent_organ_id_tag_, o.create_time_,
|
|
|
- o.update_time_, o.del_flag_, o.tenant_id_,o.subsidy_
|
|
|
+ o.update_time_, o.del_flag_, o.tenant_id_
|
|
|
</sql>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -48,19 +47,16 @@
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
|
<insert id="insert" parameterType="com.keao.edu.user.entity.Organization" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
INSERT INTO organization (id_,user_id_,name_,contact_name_,contact_phone_,level_,parent_organ_id_,
|
|
|
- parent_organ_id_tag_,settlement_type_,share_profit_amount_,create_time_,update_time_,tenant_id_,subsidy_)
|
|
|
+ parent_organ_id_tag_,settlement_type_,share_profit_amount_,create_time_,update_time_,tenant_id_)
|
|
|
VALUES(#{id},#{userId},#{name},#{contactName},#{contactPhone},#{level},#{parentOrganId},#{parentOrganIdTag},
|
|
|
#{settlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
|
|
|
- #{shareProfitAmount},NOW(),NOW(),#{tenantId},#{subsidy})
|
|
|
+ #{shareProfitAmount},NOW(),NOW(),#{tenantId})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
|
<update id="update" parameterType="com.keao.edu.user.entity.Organization">
|
|
|
UPDATE organization
|
|
|
<set>
|
|
|
- <if test="subsidy != null">
|
|
|
- subsidy_ = #{subsidy},
|
|
|
- </if>
|
|
|
<if test="contactPhone != null">
|
|
|
contact_phone_ = #{contactPhone},
|
|
|
</if>
|