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 { ...@@ -138,13 +138,9 @@ public interface PeriodApproveMapper extends MyVatMapper {
"SELECT " + "SELECT " +
" STATUS AS status " + " STATUS AS status " +
"FROM " + "FROM " +
" PERIOD_APPROVE " + " ( SELECT * FROM PERIOD_APPROVE WHERE PROJECT_ID = #{projectId} AND PERIOD = #{period} ORDER BY CREATE_TIME DESC ) " +
"WHERE " + "WHERE " +
" PROJECT_ID = #{projectId} " + " ROWNUM = 1" +
" AND PERIOD = #{period} " +
" AND ROWNUM = 1 " +
"ORDER BY " +
" CREATE_TIME DESC" +
"") "")
String getStatusByProjectIdAndPeriod(@Param("projectId") String projectId, @Param("period") Integer period); 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