|
|
@@ -509,4 +509,25 @@
|
|
|
where
|
|
|
dep_no=#{depNo,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
+ <select id="selectIDNBySuperId" parameterType="java.lang.String" resultType="com.goafanti.organization.bo.OrganizationListOut">
|
|
|
+ select
|
|
|
+ id,create_id as createId,create_time as createTime,
|
|
|
+ update_time as updateTime,deleted_sign as deletedSign,
|
|
|
+ name,type,manager_id as managerId,
|
|
|
+ dep_no as depNo,
|
|
|
+ super_id as superId,
|
|
|
+ remarks,status
|
|
|
+ from organization_management
|
|
|
+ where
|
|
|
+ super_id=#{superId,jdbcType=VARCHAR}
|
|
|
+ order by dep_no
|
|
|
+ </select>
|
|
|
+ <update id="updateByNumber" parameterType="com.goafanti.organization.bo.OrganizationListOut">
|
|
|
+ update organization_management
|
|
|
+ <set>
|
|
|
+ dep_no = #{depNo,jdbcType=VARCHAR}
|
|
|
+ </set>
|
|
|
+ where
|
|
|
+ id=#{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
</mapper>
|