用户数据表根据新增时间排序

master
@t2652009480 4 months ago
parent ce8c361e5d
commit e4c3406c96

@ -958,9 +958,13 @@
</foreach> </foreach>
</insert> </insert>
<select id="selectDistModuleName" parameterType="java.lang.String" resultType="java.lang.String"> <select id="selectDistModuleName" parameterType="java.lang.String" resultType="java.lang.String">
SELECT DISTINCT module SELECT module
FROM stu_upload_excel_user FROM (
WHERE user_id = #{userId} SELECT DISTINCT module, create_time
FROM stu_upload_excel_user
WHERE user_id = #{userId}
) AS subquery
ORDER BY subquery.create_time ASC
</select> </select>
<select id="selectByString" resultType="java.lang.String"> <select id="selectByString" resultType="java.lang.String">
select DISTINCT step_eleven_c from stu_upload_excel_user where user_id = #{userId} and module=#{tableName} select DISTINCT step_eleven_c from stu_upload_excel_user where user_id = #{userId} and module=#{tableName}

Loading…
Cancel
Save