Commit 01a9a69e authored by neo's avatar neo

[Bugfix] fixed sql error query status for approval

parent 000f3fd4
......@@ -138,13 +138,9 @@ public interface PeriodApproveMapper extends MyVatMapper {
"SELECT " +
" STATUS AS status " +
"FROM " +
" PERIOD_APPROVE " +
" ( SELECT * FROM PERIOD_APPROVE WHERE PROJECT_ID = #{projectId} AND PERIOD = #{period} ORDER BY CREATE_TIME DESC ) " +
"WHERE " +
" PROJECT_ID = #{projectId} " +
" AND PERIOD = #{period} " +
" AND ROWNUM = 1 " +
"ORDER BY " +
" CREATE_TIME DESC" +
" ROWNUM = 1" +
"")
String getStatusByProjectIdAndPeriod(@Param("projectId") String projectId, @Param("period") Integer period);
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment