浏览代码

文物模块, 增加根据文物Id查询

wuweihao 3 年之前
父节点
当前提交
9be669d8f4
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      zhoushan-system-dao/src/main/resources/mapper/cust/TbCollectionMapperCust.xml

+ 5 - 0
zhoushan-system-dao/src/main/resources/mapper/cust/TbCollectionMapperCust.xml

@@ -63,6 +63,11 @@
     <if test="name != null and name != ''">
       and a.name LIKE CONCAT('%', #{name}, '%')
     </if>
+
+    <if test="typeId != null and typeId != ''">
+      and a.type_id = #{typeId}
+    </if>
+
   </select>
 
   <update id="addLikeNumById" parameterType="java.lang.Long">