Explorar o código

公出详情表新增合同编号查询

anderx %!s(int64=3) %!d(string=hai) anos
pai
achega
8fd1c3af21

+ 3 - 3
src/main/java/com/goafanti/common/mapper/PublicReleaseMapper.xml

@@ -705,8 +705,8 @@
 	and a.clock_in= #{clockIn}
 	</if>
     <if test="contractNo !=null">
-	and f.contract_no= #{contractNo}
-	</if>
+    and f.contract_no like CONCAT('%',#{contractNo},'%')
+    </if>
     order by b.status,b.create_time desc
 	<if test="page_sql!=null">
 			${page_sql}
@@ -752,7 +752,7 @@
       and a.clock_in= #{clockIn}
     </if>
     <if test="contractNo !=null">
-      and f.contract_no= #{contractNo}
+      and f.contract_no like CONCAT('%',#{contractNo},'%')
     </if>
   </select>