wuhp 1 год назад
Родитель
Сommit
899515f455
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/resources/mapper/modules/fnc/contract/ContractMapper.xml

+ 1 - 1
src/main/resources/mapper/modules/fnc/contract/ContractMapper.xml

@@ -9,7 +9,7 @@
             ins_contract  ic
         <where>
             <if test="vo.contractCode !=null  and  vo.contractCode !=''">
-                and ic.contract_code like concat('%',#{vo.contractCode},'%')
+                and (ic.contract_code like concat('%',#{vo.contractCode},'%') or ic.contract_name like concat('%',#{vo.contractCode},'%'))
             </if>
 
             <if test="vo.contractIdList != null  and vo.contractIdList !='' and  vo.contractIdList.size()>0 ">