|
|
@@ -240,6 +240,51 @@ public interface DataConnectorMapper {
|
|
|
@Delete("delete from bi_base_group_by where bb_id = #{id}")
|
|
|
void delConnectorGroup(Long id);
|
|
|
|
|
|
+ @Insert("<script>"
|
|
|
+ + "INSERT INTO BI_BASE_GROUP_BY(BB_ID, BB_GROUP_NAME, BB_INDEX, BB_FATHER_ID, CREATE_DATE)"
|
|
|
+ + "("
|
|
|
+ + "<foreach collection=\"list\" item=\"item\" index=\"index\" separator=\"union all\">"
|
|
|
+ + "SELECT "
|
|
|
+ + "BI_BASE_GROUP_BY_SEQUENCE.NEXTVAL,"
|
|
|
+ + "#{item.groupName, jdbcType=VARCHAR},"
|
|
|
+ + "#{item.groupIndex, jdbcType=INTEGER},"
|
|
|
+ + "#{item.fatherId, jdbcType=INTEGER},"
|
|
|
+ + "SYSDATE "
|
|
|
+ + "FROM DUAL"
|
|
|
+ + "</foreach>"
|
|
|
+ + ")"
|
|
|
+ + "</script>")
|
|
|
+ void batchInsertDataConnector(@Param("list") List<GroupInfo> groupInfoList);
|
|
|
+
|
|
|
+ @Update(" <script>"
|
|
|
+ + "BEGIN"
|
|
|
+ + "<foreach collection=\"list\" item=\"item\" index=\"index\" separator=\";\">"
|
|
|
+ + "UPDATE BI_BASE_GROUP_BY "
|
|
|
+ + "<set>"
|
|
|
+ + "<if test=\"item.groupName != null\">"
|
|
|
+ + "BB_GROUP_NAME = #{item.groupName, jdbcType=VARCHAR},"
|
|
|
+ + "</if>"
|
|
|
+ + "<if test=\"item.groupIndex != null\">"
|
|
|
+ + "BB_INDEX = #{item.groupIndex, jdbcType=VARCHAR},"
|
|
|
+ + "</if>"
|
|
|
+ + "<if test=\"item.fatherId != null\">"
|
|
|
+ + "BB_FATHER_ID = #{item.fatherId, jdbcType=INTEGER},"
|
|
|
+ + "</if>"
|
|
|
+ + "UPDATA_DATE = SYSDATE"
|
|
|
+ + "</set>"
|
|
|
+ + "WHERE BB_ID = #{item.id, jdbcType=INTEGER}"
|
|
|
+ + "</foreach>"
|
|
|
+ + ";END;"
|
|
|
+ + "</script>")
|
|
|
+ void batchUpdateDataConnector(@Param("list") List<GroupInfo> groupInfoList);
|
|
|
+
|
|
|
+ @Delete(" <script>"
|
|
|
+ + "DELETE FROM BI_BASE_GROUP_BY WHERE BB_ID IN"
|
|
|
+ + "<foreach collection=\"list\" item=\"item\" index=\"index\" open=\"(\" close=\")\" separator=\",\">"
|
|
|
+ + "#{item.id, jdbcType=INTEGER}"
|
|
|
+ + "</foreach>"
|
|
|
+ + "</script>")
|
|
|
+ void batchDeleteDataConnector(@Param("list") List<GroupInfo> groupInfoList);
|
|
|
/*
|
|
|
查询分组是否有子分组
|
|
|
*/
|