|
|
@@ -7,8 +7,7 @@
|
|
|
<sql id="Base_Column_List">
|
|
|
t.staff_id, t.staff_code, t.staff_name,t.staff_phone, t.org_id, t.role_ids, t.wx_user_id, t.remarks,
|
|
|
t.flg_valid,t.flg_can_login,
|
|
|
- t.cp_id, t.op_create_time, t.op_create_user_id, t.op_update_time, t.op_update_user_id, t.op_app_code,
|
|
|
- t.op_timestamp, t.op_db_user
|
|
|
+ t.cp_id, t.op_create_time, t.op_create_user_id, t.op_update_time, t.op_update_user_id
|
|
|
</sql>
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
@@ -42,6 +41,9 @@
|
|
|
<!-- 通用条件列 -->
|
|
|
<sql id="Condition">
|
|
|
<where>
|
|
|
+ <if test="staffId != null">
|
|
|
+ AND t.staff_id = #{staffId}
|
|
|
+ </if>
|
|
|
<if test="staffCode != null and staffCode != ''">
|
|
|
AND position (#{staffCode} in t.staff_code ) >0
|
|
|
</if>
|
|
|
@@ -108,6 +110,14 @@
|
|
|
<include refid="Condition"/>
|
|
|
</select>
|
|
|
|
|
|
+ <!--员工-->
|
|
|
+ <select id="selectByStringId" resultType="com.dk.mdm.model.response.core.StaffResponse">
|
|
|
+ select <include refid="Base_Column_List"/>
|
|
|
+ from dkic_b.t_mst_staff t
|
|
|
+ where t.staff_id = #{staffId,typeHandler=UuidTypeHandler}
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
<!--员工编码是否重复-->
|
|
|
<select id="selectByCode" resultType="Long">
|
|
|
select count(1)
|