Procházet zdrojové kódy

获取项目类型方法添加

gushoubang před 1 měsícem
rodič
revize
340702f29c

+ 5 - 0
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/mapper/ProjectMapper.java

@@ -48,4 +48,9 @@ public interface ProjectMapper {
      * @param ids 项目ID列表
      */
     void batchDelete(@Param("ids") List<String> ids);
+
+    /**
+     * 根据ID获取项目类型
+     */
+    Integer getProjectTypeById(String id);
 }

+ 5 - 0
siwei-modules/siwei-apply/src/main/resources/mapper/ProjectMapper.xml

@@ -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>