|  | @@ -16,6 +16,7 @@
 | 
											
												
													
														|  |          <result column="ownership_type_" property="ownershipType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 |  |          <result column="ownership_type_" property="ownershipType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 | 
											
												
													
														|  |          <result column="create_time_" property="createTime"/>
 |  |          <result column="create_time_" property="createTime"/>
 | 
											
												
													
														|  |          <result column="update_time_" property="updateTime"/>
 |  |          <result column="update_time_" property="updateTime"/>
 | 
											
												
													
														|  | 
 |  | +        <result column="full_job_resource_" property="fullJobResource"/>
 | 
											
												
													
														|  |      </resultMap>
 |  |      </resultMap>
 | 
											
												
													
														|  |      
 |  |      
 | 
											
												
													
														|  |      <resultMap type="com.ym.mec.biz.dal.entity.CooperationOrgan" id="ExtCooperationOrgan" extends="CooperationOrgan">
 |  |      <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"
 |  |      <insert id="insert" parameterType="com.ym.mec.biz.dal.entity.CooperationOrgan"
 | 
											
												
													
														|  |              useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 |  |              useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 | 
											
												
													
														|  |          INSERT INTO cooperation_organ
 |  |          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>
 |  |      </insert>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      <!-- 根据主键查询一条记录 -->
 |  |      <!-- 根据主键查询一条记录 -->
 | 
											
												
													
														|  |      <update id="update" parameterType="com.ym.mec.biz.dal.entity.CooperationOrgan">
 |  |      <update id="update" parameterType="com.ym.mec.biz.dal.entity.CooperationOrgan">
 | 
											
												
													
														|  |          UPDATE cooperation_organ
 |  |          UPDATE cooperation_organ
 | 
											
												
													
														|  |          <set>
 |  |          <set>
 | 
											
												
													
														|  | 
 |  | +            <if test="fullJobResource != null">
 | 
											
												
													
														|  | 
 |  | +                full_job_resource_ = #{fullJobResource},
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  |              <if test="address != null">
 |  |              <if test="address != null">
 | 
											
												
													
														|  |                  address_ = #{address},
 |  |                  address_ = #{address},
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
										
											
												
													
														|  | @@ -98,6 +103,9 @@
 | 
											
												
													
														|  |  	        <if test="isEnable != null">
 |  |  	        <if test="isEnable != null">
 | 
											
												
													
														|  |  	            AND co.is_enable_ = #{isEnable}
 |  |  	            AND co.is_enable_ = #{isEnable}
 | 
											
												
													
														|  |  	        </if>
 |  |  	        </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="fullJobResource != null">
 | 
											
												
													
														|  | 
 |  | +                AND co.full_job_resource_ = #{fullJobResource}
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  |          </where>
 |  |          </where>
 | 
											
												
													
														|  |          ORDER BY co.update_time_ DESC
 |  |          ORDER BY co.update_time_ DESC
 | 
											
												
													
														|  |          <include refid="global.limit"/>
 |  |          <include refid="global.limit"/>
 | 
											
										
											
												
													
														|  | @@ -117,6 +125,9 @@
 | 
											
												
													
														|  |  	        <if test="isEnable != null">
 |  |  	        <if test="isEnable != null">
 | 
											
												
													
														|  |  	            AND is_enable_ = #{isEnable}
 |  |  	            AND is_enable_ = #{isEnable}
 | 
											
												
													
														|  |  	        </if>
 |  |  	        </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="fullJobResource != null">
 | 
											
												
													
														|  | 
 |  | +                AND full_job_resource_ = #{fullJobResource}
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  |          </where>
 |  |          </where>
 | 
											
												
													
														|  |  	</select>
 |  |  	</select>
 | 
											
												
													
														|  |  
 |  |  
 |