he2802 3 роки тому
батько
коміт
89dc282f8b

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/bo/CertificateTpQueryBo.java

@@ -55,4 +55,7 @@ public class CertificateTpQueryBo extends BaseEntity {
 	/** 证书键值 */
 	@ApiModelProperty("证书键值")
 	private String keyValue;
+
+	@ApiModelProperty("证书模板ID数组")
+	private List<Long> tpIds;
 }

+ 6 - 0
zhongzheng-system/src/main/resources/mapper/modules/base/CertificateTpMapper.xml

@@ -43,6 +43,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 #{item}
             </foreach>
         </if>
+        <if test="tpIds != null and tpIds.size()!=0 ">
+            AND ct.tp_id in
+            <foreach collection="tpIds" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
     </select>
 
 </mapper>