|
|
@@ -16,7 +16,7 @@ public interface TreeNodeMapper {
|
|
|
* 获取所有的TreeNode
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select({"select * from tree_nodes"})
|
|
|
+ @Select({"select * from tree_node"})
|
|
|
@Results(id="treeNodeMap",value = {
|
|
|
@Result(column = "is_leaf", property = "leaf"),
|
|
|
@Result(column = "time_to_take", property = "timeToTake"),
|
|
|
@@ -35,7 +35,7 @@ public interface TreeNodeMapper {
|
|
|
* @param id
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select({"select * from tree_nodes where id = #{id}"})
|
|
|
+ @Select({"select * from tree_node where id = #{id}"})
|
|
|
@ResultMap(value = "treeNodeMap")
|
|
|
TreeNodePO getTreeNodeById(@Param("id") int id);
|
|
|
|
|
|
@@ -44,7 +44,7 @@ public interface TreeNodeMapper {
|
|
|
* @param groupId
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select({"select * from tree_nodes where group_id = #{groupId}"})
|
|
|
+ @Select({"select * from tree_node where group_id = #{groupId}"})
|
|
|
@ResultMap(value = "treeNodeMap")
|
|
|
List<TreeNodePO> listTreeNodesByGroupId(@Param("groupId") int groupId);
|
|
|
|
|
|
@@ -53,7 +53,7 @@ public interface TreeNodeMapper {
|
|
|
* @param projectId
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select({"select * from tree_nodes where project_id = #{projectId}"})
|
|
|
+ @Select({"select * from tree_node where project_id = #{projectId}"})
|
|
|
@ResultMap(value = "treeNodeMap")
|
|
|
List<TreeNodePO> listTreeNodesByProjectId(@Param("projectId") int projectId);
|
|
|
|
|
|
@@ -62,7 +62,7 @@ public interface TreeNodeMapper {
|
|
|
* @param TreeNodePO
|
|
|
* @return treeNode的自增主键
|
|
|
*/
|
|
|
- @Insert({"insert into tree_nodes(title, description, type, priority, state, time_to_take, start_time, end_time, is_leaf, group_id,project_id,deep,parent_id) " +
|
|
|
+ @Insert({"insert into tree_node(title, description, type, priority, state, time_to_take, start_time, end_time, is_leaf, group_id,project_id,deep,parent_id) " +
|
|
|
"VALUES (#{title}, #{description}, #{type}, #{priority}, #{state}, #{timeToTake}, #{startTime}, #{endTime}, #{leaf}, #{groupId},#{projectId},#{deep},#{parentId})"})
|
|
|
@Options(useGeneratedKeys = true, keyProperty = "id")
|
|
|
int insertTreeNode(TreeNodePO TreeNodePO);
|
|
|
@@ -81,12 +81,12 @@ public interface TreeNodeMapper {
|
|
|
@UpdateProvider(type = GeneralInsertUpdateSqlProvider.class,method = "updateById")
|
|
|
int update(TreeNodePO TreeNodePO);
|
|
|
|
|
|
- @Delete("delete from tree_nodes where id = #{nodeId}")
|
|
|
+ @Delete("delete from tree_node where id = #{nodeId}")
|
|
|
int deleteTreeNode(@Param("nodeId") int nodeId);
|
|
|
- @Update("update tree_nodes set ")
|
|
|
+ @Update("update tree_node set ")
|
|
|
int updateTreeNodeById(@Param("nodeId") int nodeId);
|
|
|
|
|
|
- @Select("select * from tree_nodes where project_id = #{projectId} and type = 'TASK' ")
|
|
|
+ @Select("select * from tree_node where project_id = #{projectId} and type = 'TASK' ")
|
|
|
List<TreeNodePO> getNodesWithTaskTypeByProjectid(@Param("projectId") int projectId);
|
|
|
|
|
|
// @Delete("delete from group_member where group_id = #{groupId} and user_id = #{userId}")
|