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