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