Quellcode durchsuchen

子项目查询变更

user5 vor 4 Jahren
Ursprung
Commit
36834bdd50

+ 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}),'%')