瀏覽代碼

添加应用、定向接口

zhaoxian 4 年之前
父節點
當前提交
56bfad9920

+ 2 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/KuaishouTemplateTargetMapper.java

@@ -18,4 +18,6 @@ public interface KuaishouTemplateTargetMapper extends BaseMapper<KuaishouTemplat
     void templateTargetList(@Param("templateTargetList") List<KuaishouTemplateTarget> templateTargetList);
 
     KuaishouTemplateTarget queryTemplateTarget(@Param("templateId") Long templateId, @Param("accountId")Long accountId);
+
+    List<KuaishouTemplateTarget> queryTemplateTargetByIds(@Param("templateIds") List<Long> templateIds);
 }

+ 11 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaishouTemplateTargetMapper.xml

@@ -96,5 +96,16 @@
           AND t2.account_id = #{accountId}
     </select>
 
+    <select id="queryTemplateTargetByIds" resultType="cn.com.ctop.kuaishou.modules.batch.entity.KuaishouTemplateTarget">
+        SELECT *
+        FROM ctop_kuaishou_template_target t1
+        WHERE t1.template_id in
+        <foreach collection="templateIds" item="item" separator=","
+                 open="(" close=")">
+            #{item}
+        </foreach>
+
+    </select>
+
 
 </mapper>