浏览代码

列表接口增加查询条件

yanliming 5 年之前
父节点
当前提交
7fb581beb2

+ 2 - 2
picc-common/src/main/resources/mapper/base/InsuranceDefinition.xml

@@ -91,8 +91,8 @@ id_,name_,insurance_description,clause_,status_,del_flag,create_by,create_time,u
 		]]>
 		<where>
 			and del_flag = false
-			<if test="searchParams.id != null">
-				and ID_ like #{searchParams.id}
+			<if test="searchParams.name != null">
+				and name_ like #{searchParams.name}
 			</if>
 		</where>
 		<foreach item="sort" collection="sortList"  open="order by" separator=",">

+ 2 - 2
picc-common/src/main/resources/mapper/base/InsuranceDefinitionLimit.xml

@@ -114,8 +114,8 @@ id_,definition_id,name_,limit_,unit_,status_,del_flag,create_by,create_time,upda
 		]]>
 		<where>
 			and del_flag = false
-			<if test="searchParams.id != null">
-				and ID_ like #{searchParams.id}
+			<if test="searchParams.name != null">
+				and name_ like #{searchParams.name}
 			</if>
 		</where>
 		<foreach item="sort" collection="sortList"  open="order by" separator=",">

+ 2 - 2
picc-common/src/main/resources/mapper/base/InsuranceJobs.xml

@@ -95,10 +95,10 @@ id_,jobs_id,definition_id,charges_,del_flag,create_by,create_time,update_by,upda
 		<where>
 			and del_flag = false
 			<if test="searchParams.jobsId != null">
-				and jobs_id like #{searchParams.jobsId}
+				and jobs_id = #{searchParams.jobsId}
 			</if>
 			<if test="searchParams.definitionId != null">
-				and definition_id like #{searchParams.definitionId}
+				and definition_id = #{searchParams.definitionId}
 			</if>
 		</where>
 		<foreach item="sort" collection="sortList"  open="order by" separator=",">

+ 2 - 2
picc-common/src/main/resources/mapper/base/Jobs.xml

@@ -86,8 +86,8 @@ id_,name_,content_,status_,del_flag,create_by,create_time,update_by,update_time
 		]]>
 		<where>
 			and del_flag = false
-			<if test="searchParams.id != null">
-				and ID_ like #{searchParams.id}
+			<if test="searchParams.name != null">
+				and name_ like #{searchParams.name}
 			</if>
 		</where>
 		<foreach item="sort" collection="sortList"  open="order by" separator=",">