|
@@ -18,7 +18,6 @@
|
|
|
<result column="settlement_type_" property="settlementType" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="del_flag_" property="delFlag" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="share_profit_amount_" property="shareProfitAmount" />
|
|
|
- <result column="is_allow_arrange_exam_" property="isAllowArrangeExam" />
|
|
|
<result column="create_time_" property="createTime" />
|
|
|
<result column="update_time_" property="updateTime" />
|
|
|
<result column="tenant_id_" property="tenantId" />
|
|
@@ -27,7 +26,7 @@
|
|
|
<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.is_allow_arrange_exam_, o.create_time_,
|
|
|
+ o.parent_organ_id_tag_, o.create_time_,
|
|
|
o.update_time_, o.del_flag_, o.tenant_id_
|
|
|
</sql>
|
|
|
|
|
@@ -46,9 +45,9 @@
|
|
|
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
|
<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_,is_allow_arrange_exam_,create_time_,update_time_,tenant_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_)
|
|
|
VALUES(#{id},#{userId},#{name},#{contactName},#{contactPhone},#{level},#{parentOrganId},#{parentOrganIdTag},#{settlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
|
|
|
- #{shareProfitAmount},#{isAllowArrangeExam},NOW(),NOW(),#{tenantId})
|
|
|
+ #{shareProfitAmount},NOW(),NOW(),#{tenantId})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -79,9 +78,6 @@
|
|
|
<if test="name != null">
|
|
|
name_ = #{name},
|
|
|
</if>
|
|
|
- <if test="isAllowArrangeExam != null">
|
|
|
- is_allow_arrange_exam_ = #{isAllowArrangeExam},
|
|
|
- </if>
|
|
|
<if test="delFlag != null">
|
|
|
del_flag_ = #{delFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
@@ -118,9 +114,6 @@
|
|
|
#{organId}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="isAllowArrangeExam != null">
|
|
|
- AND is_allow_arrange_exam_ = #{isAllowArrangeExam}
|
|
|
- </if>
|
|
|
<if test="search != null and search != ''">
|
|
|
AND (id_ = #{search} OR name_ LIKE CONCAT('%',#{search},'%')
|
|
|
OR contact_name_ LIKE CONCAT('%',#{search},'%')
|