|  | @@ -54,29 +54,31 @@
 | 
												
													
														
															|  |  		a.update_by AS "updateBy.id",
 |  |  		a.update_by AS "updateBy.id",
 | 
												
													
														
															|  |  		a.update_date AS "updateDate",
 |  |  		a.update_date AS "updateDate",
 | 
												
													
														
															|  |  		a.remarks AS "remarks",
 |  |  		a.remarks AS "remarks",
 | 
												
													
														
															|  | -		a.del_flag AS "delFlag",
 |  | 
 | 
												
													
														
															|  | -		a.user_id AS "userId",
 |  | 
 | 
												
													
														
															|  | -		a.leadership AS "leadership"
 |  | 
 | 
												
													
														
															|  | 
 |  | +		a.team AS "team",
 | 
												
													
														
															|  | 
 |  | +		a.department AS "department",
 | 
												
													
														
															|  | 
 |  | +		a.specific AS "specific",
 | 
												
													
														
															|  | 
 |  | +		a.correlationId AS "correlationId"
 | 
												
													
														
															|  |  	</sql>
 |  |  	</sql>
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  	<select id="findListUserId" resultType="com.jeeplus.modules.wexintheorder.entity.TheLeadership">
 |  |  	<select id="findListUserId" resultType="com.jeeplus.modules.wexintheorder.entity.TheLeadership">
 | 
												
													
														
															|  |  		select
 |  |  		select
 | 
												
													
														
															|  |  		<include refid="leaderShipColumns"/>
 |  |  		<include refid="leaderShipColumns"/>
 | 
												
													
														
															|  | -		from work_leadership
 |  | 
 | 
												
													
														
															|  | -		WHERE a.user_id = #{userId}
 |  | 
 | 
												
													
														
															|  | 
 |  | +		from the_order_information a
 | 
												
													
														
															|  | 
 |  | +		WHERE a.correlationId = #{correlationId}
 | 
												
													
														
															|  |  	</select>
 |  |  	</select>
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  	<insert id="insertLeaderShip">
 |  |  	<insert id="insertLeaderShip">
 | 
												
													
														
															|  | -		INSERT INTO work_leadership(
 |  | 
 | 
												
													
														
															|  | 
 |  | +		INSERT INTO the_order_information(
 | 
												
													
														
															|  |  			id,
 |  |  			id,
 | 
												
													
														
															|  |  			create_by,
 |  |  			create_by,
 | 
												
													
														
															|  |  			create_date,
 |  |  			create_date,
 | 
												
													
														
															|  |  			update_by,
 |  |  			update_by,
 | 
												
													
														
															|  |  			update_date,
 |  |  			update_date,
 | 
												
													
														
															|  |  			remarks,
 |  |  			remarks,
 | 
												
													
														
															|  | -			del_flag,
 |  | 
 | 
												
													
														
															|  | -			user_id,
 |  | 
 | 
												
													
														
															|  | -			leadership
 |  | 
 | 
												
													
														
															|  | 
 |  | +			team,
 | 
												
													
														
															|  | 
 |  | +			department,
 | 
												
													
														
															|  | 
 |  | +			`specific`,
 | 
												
													
														
															|  | 
 |  | +			correlationId
 | 
												
													
														
															|  |  		) VALUES (
 |  |  		) VALUES (
 | 
												
													
														
															|  |  			#{id},
 |  |  			#{id},
 | 
												
													
														
															|  |  			#{createBy.id},
 |  |  			#{createBy.id},
 | 
												
											
												
													
														
															|  | @@ -84,12 +86,18 @@
 | 
												
													
														
															|  |  			#{updateBy.id},
 |  |  			#{updateBy.id},
 | 
												
													
														
															|  |  			#{updateDate},
 |  |  			#{updateDate},
 | 
												
													
														
															|  |  			#{remarks},
 |  |  			#{remarks},
 | 
												
													
														
															|  | -			#{delFlag},
 |  | 
 | 
												
													
														
															|  | -			#{userId},
 |  | 
 | 
												
													
														
															|  | -			#{leadership}
 |  | 
 | 
												
													
														
															|  | 
 |  | +			#{team},
 | 
												
													
														
															|  | 
 |  | +			#{department},
 | 
												
													
														
															|  | 
 |  | +			#{specific},
 | 
												
													
														
															|  | 
 |  | +			#{correlationId}
 | 
												
													
														
															|  |  		)
 |  |  		)
 | 
												
													
														
															|  |  	</insert>
 |  |  	</insert>
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | 
 |  | +	<update id="updateLeaderShip">
 | 
												
													
														
															|  | 
 |  | +		UPDATE the_order_information SET
 | 
												
													
														
															|  | 
 |  | +			leadership = #{leadership}
 | 
												
													
														
															|  | 
 |  | +		WHERE user_id = #{userId}
 | 
												
													
														
															|  | 
 |  | +	</update>
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  
 |  |  
 | 
												
											
												
													
														
															|  | @@ -104,4 +112,8 @@
 | 
												
													
														
															|  |  		LEFT JOIN sys_office bo ON bo.id = o.branch_office
 |  |  		LEFT JOIN sys_office bo ON bo.id = o.branch_office
 | 
												
													
														
															|  |  		WHERE a.we_chat_id = #{wechatId}
 |  |  		WHERE a.we_chat_id = #{wechatId}
 | 
												
													
														
															|  |  	</select>
 |  |  	</select>
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +	<select id="findOffice" resultType="java.lang.String">
 | 
												
													
														
															|  | 
 |  | +		select o.name from sys_office o where id = #{id}
 | 
												
													
														
															|  | 
 |  | +	</select>
 | 
												
													
														
															|  |  </mapper>
 |  |  </mapper>
 |