|
@@ -16,6 +16,7 @@
|
|
|
<result column="ownership_type_" property="ownershipType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="create_time_" property="createTime"/>
|
|
|
<result column="update_time_" property="updateTime"/>
|
|
|
+ <result column="full_job_resource_" property="fullJobResource"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.ym.mec.biz.dal.entity.CooperationOrgan" id="ExtCooperationOrgan" extends="CooperationOrgan">
|
|
@@ -39,14 +40,18 @@
|
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.CooperationOrgan"
|
|
|
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_)
|
|
|
- VALUES(#{id},#{name},#{linkman},#{job},#{mobileNo},#{address},#{organId},now(),now(),#{ownershipType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{isEnable})
|
|
|
+ (id_,name_,linkman_,job_,mobile_no_,address_,organ_id_,create_time_,update_time_,ownership_type_,is_enable_,full_job_resource_)
|
|
|
+ VALUES(#{id},#{name},#{linkman},#{job},#{mobileNo},#{address},#{organId},now(),now(),
|
|
|
+ #{ownershipType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{isEnable},#{fullJobResource})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.CooperationOrgan">
|
|
|
UPDATE cooperation_organ
|
|
|
<set>
|
|
|
+ <if test="fullJobResource != null">
|
|
|
+ full_job_resource_ = #{fullJobResource},
|
|
|
+ </if>
|
|
|
<if test="address != null">
|
|
|
address_ = #{address},
|
|
|
</if>
|
|
@@ -98,6 +103,9 @@
|
|
|
<if test="isEnable != null">
|
|
|
AND co.is_enable_ = #{isEnable}
|
|
|
</if>
|
|
|
+ <if test="fullJobResource != null">
|
|
|
+ AND co.full_job_resource_ = #{fullJobResource}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
ORDER BY co.update_time_ DESC
|
|
|
<include refid="global.limit"/>
|
|
@@ -117,6 +125,9 @@
|
|
|
<if test="isEnable != null">
|
|
|
AND is_enable_ = #{isEnable}
|
|
|
</if>
|
|
|
+ <if test="fullJobResource != null">
|
|
|
+ AND full_job_resource_ = #{fullJobResource}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|