package com.casic.missiles.mapper.business;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.casic.missiles.model.business.BusinessDealRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface BusinessDealRecordMapper extends BaseMapper<BusinessDealRecord> {


   @Select("SELECT name " +
           "FROM sys_dict  sd " +
           "JOIN( SELECT id  " +
           "      FROM sys_dict " +
           "      WHERE CODE = 'cancelEntrust') sds ON sds.id=sd.pid " +
           " AND code=#{reasonId} ")
   String getDictContent(@Param("reasonId")String  reasonId);

}
