|
|
@@ -198,6 +198,51 @@ public interface ChartsConfigMapper {
|
|
|
"</script>")
|
|
|
void delChartsGroup(List<Integer> isList);
|
|
|
|
|
|
+ @Insert("<script>"
|
|
|
+ + "INSERT INTO BI_CHARTS_GROUP(BC_ID, BC_GROUP_NAME, BC_INDEX, BC_FATHER_ID, CREATE_DATE) "
|
|
|
+ + "SELECT BI_CHARTS_GROUP_SEQ.NEXTVAL,M.* FROM ("
|
|
|
+ + "<foreach collection=\"list\" item=\"item\" index=\"index\" separator=\"UNION ALL\">"
|
|
|
+ + "SELECT "
|
|
|
+ + "#{item.groupName, jdbcType=VARCHAR},"
|
|
|
+ + "#{item.groupIndex, jdbcType=INTEGER},"
|
|
|
+ + "#{item.fatherId, jdbcType=INTEGER},"
|
|
|
+ + "SYSDATE "
|
|
|
+ + "FROM DUAL"
|
|
|
+ + "</foreach>"
|
|
|
+ + ") M"
|
|
|
+ + "</script>")
|
|
|
+ void batchInsertCharts(@Param("list") List<GroupInfo> groupInfoList);
|
|
|
+
|
|
|
+ @Update("<script>"
|
|
|
+ + "BEGIN"
|
|
|
+ + "<foreach collection=\"list\" item=\"item\" index=\"index\" separator=\";\">"
|
|
|
+ + "UPDATE BI_CHARTS_GROUP"
|
|
|
+ + "<set>"
|
|
|
+ + "<if test=\"item.groupName != null\">"
|
|
|
+ + "BC_GROUP_NAME = #{item.groupName, jdbcType=VARCHAR},"
|
|
|
+ + "</if>"
|
|
|
+ + "<if test=\"item.groupIndex != null\">"
|
|
|
+ + "BC_INDEX = #{item.groupIndex, jdbcType=VARCHAR},"
|
|
|
+ + "</if>"
|
|
|
+ + "<if test=\"item.fatherId != null\">"
|
|
|
+ + "BC_FATHER_ID = #{item.fatherId, jdbcType=INTEGER},"
|
|
|
+ + "</if>"
|
|
|
+ + "UPDATA_DATE = SYSDATE"
|
|
|
+ + "</set>"
|
|
|
+ + "WHERE BC_ID = #{item.id, jdbcType=INTEGER}"
|
|
|
+ + "</foreach>"
|
|
|
+ + ";END;"
|
|
|
+ +"</script>")
|
|
|
+ void batchUpdateCharts(@Param("list") List<GroupInfo> groupInfoList);
|
|
|
+
|
|
|
+ @Delete(" <script>"
|
|
|
+ + "DELETE FROM BI_CHARTS_GROUP WHERE BC_ID IN"
|
|
|
+ + "<foreach collection=\"list\" item=\"item\" index=\"index\" open=\"(\" close=\")\" separator=\",\">"
|
|
|
+ + "#{item.id, jdbcType=INTEGER}"
|
|
|
+ + "</foreach>"
|
|
|
+ + "</script>")
|
|
|
+ void batchDeleteCharts(@Param("list") List<GroupInfo> groupInfoList);
|
|
|
+
|
|
|
/*
|
|
|
查询分组
|
|
|
*/
|