Commit f590b74b authored by neo's avatar neo

[bugfix] fixed bug for sql maaper

parent deb00558
...@@ -117,13 +117,13 @@ public interface PeriodCellDataMapper extends MyVatMapper { ...@@ -117,13 +117,13 @@ public interface PeriodCellDataMapper extends MyVatMapper {
" PERIOD_CELL_DATA C, " + " PERIOD_CELL_DATA C, " +
" PERIOD_REPORT R " + " PERIOD_REPORT R " +
"WHERE " + "WHERE " +
" C.REPORT_ID = R.ID AND C.PERIOD=#{period}" + " C.REPORT_ID = R.ID" +
" AND C.PROJECT_ID = #{projectId} " + " AND C.PROJECT_ID = #{projectId} AND " +
" " + " " +
" <foreach item=\"item\" index=\"index\" collection=\"list\"" + " <foreach item=\"item\" index=\"index\" collection=\"list\"" +
" open=\"(\" separator=\"OR\" close=\")\">" + " open=\"(\" separator=\"OR\" close=\")\">" +
" ( R.PERIOD=#{item.period} AND C.CELL_TEMPLATE_ID=#{item.cellTemplateId} )" + " ( R.PERIOD=#{item.period} AND C.CELL_TEMPLATE_ID=#{item.cellTemplateId} )" +
" </foreach>" + " </foreach>" +
"</script>") "</script>")
List<PCTEntity> queryByPCTs(@Param("list") Set<PCTEntity> parameter, @Param("projectId") String projectId, @Param("period") Integer period); List<PCTEntity> queryByPCTs(@Param("list") Set<PCTEntity> parameter, @Param("projectId") String projectId);
} }
\ 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