@@ -48,4 +48,9 @@ public interface ProjectMapper {
* @param ids 项目ID列表
*/
void batchDelete(@Param("ids") List<String> ids);
+
+ /**
+ * 根据ID获取项目类型
+ */
+ Integer getProjectTypeById(String id);
}
@@ -78,4 +78,9 @@
#{id}
</foreach>
</delete>
+ <select id="getProjectTypeById" parameterType="string" resultType="int">
+ SELECT project_type
+ FROM t_project
+ WHERE id = #{id}
+ </select>
</mapper>