package com.bcxin.ins.dao.order;


import com.bcxin.ins.entity.policy_core.InsMailPolicy;
import com.bcxin.ins.spring.annotation.MyBatisDao;
import com.bcxin.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

@MyBatisDao
public interface InsMailPolicyAPIDao extends BaseMapper<InsMailPolicy> {

    public void updateByIdForManual(InsMailPolicy imp);

    public int updateUrlByExternalreference(@Param("url")String url, @Param("externalreference")String externalreference);

    /**
     * <b> 根据订单id查询发票信息 </b>
     * @author ZXF
     * @create 2019/12/16 0016 16:09
     * @version
     * @注意事项 </b>
     */
    public InsMailPolicy getInsMailPolicyByOrderId(@Param("order_id")Long order_id);
}
