瀏覽代碼

子项目查询变更

user5 4 年之前
父節點
當前提交
36834bdd50
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/main/resources/mappings/modules/ruralprojectrecords/SubProjectInfoDao.xml

+ 8 - 0
src/main/resources/mappings/modules/ruralprojectrecords/SubProjectInfoDao.xml

@@ -83,6 +83,10 @@
 			<if test="projectId != null and projectId != ''">
 				AND a.project_id like concat('%',#{projectId},'%')
 			</if>
+			<!--父项目id-->
+			<if test="parentProId != null and parentProId != ''">
+				AND a.parent_pro_id = #{parentProId}
+			</if>
 			<!--项目名称-->
 			<if test="projectName != null and projectName != ''">
 				AND a.project_name like concat(concat('%',#{projectName}),'%')
@@ -123,6 +127,10 @@
 			<if test="projectId != null and projectId != ''">
 				AND a.project_id like concat('%',#{projectId},'%')
 			</if>
+			<!--父项目id-->
+			<if test="parentProId != null and parentProId != ''">
+				AND a.parent_pro_id = #{parentProId}
+			</if>
 			<!--项目名称-->
 			<if test="projectName != null and projectName != ''">
 				AND a.project_name like concat(concat('%',#{projectName}),'%')