@@ -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);
}
@@ -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>