|
@@ -51,10 +51,10 @@
|
|
|
useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
INSERT INTO cooperation_organ
|
|
|
(id_, name_, linkman_, job_, mobile_no_, address_, organ_id_, create_time_, update_time_, ownership_type_,
|
|
|
- is_enable_, full_job_resource_,education_user_id_,tenant_id_)
|
|
|
+ is_enable_, full_job_resource_,education_user_id_,tenant_id_,logo_)
|
|
|
VALUES (#{id}, #{name}, #{linkman}, #{job}, #{mobileNo}, #{address}, #{organId}, now(), now(),
|
|
|
#{ownershipType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, #{isEnable},
|
|
|
- #{fullJobResource},#{educationUserId},#{tenantId})
|
|
|
+ #{fullJobResource},#{educationUserId},#{tenantId},#{logo})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -217,4 +217,14 @@
|
|
|
WHERE mg.create_time_ = co.create_time_
|
|
|
ORDER BY mg.cooperation_organ_id_
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="queryByOrganIdAndEnable" resultMap="CooperationOrgan">
|
|
|
+ SELECT *
|
|
|
+ FROM cooperation_organ
|
|
|
+ WHERE FIND_IN_SET(organ_id_, #{organId})
|
|
|
+ AND del_flag_ != 1
|
|
|
+ <if test="enable != null">
|
|
|
+ AND is_enable_ = #{enable}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
</mapper>
|