gejun123456 / MyBatisCodeHelper-Pro

http://brucege.com
1.88k stars 240 forks source link

自动生成sql语句无法识别resultMap继承的字段 #897

Closed zjiajun1996 closed 10 months ago

zjiajun1996 commented 1 year ago

我的mapper里面的resultMap是这样的

<resultMap id="BaseResultMap" type="com.ccjr.suvs.core.instruction.dto.InstructStrategyDTO"
               extends="com.ccjr.suvs.core.instruction.mapper.InstructStrategyMapper.BaseResultMap">
        <!--@Table instruct_strategy tm-->
</resultMap>

因为是继承的别的mapper,所以生成sql的时候所有的字段都是null 比如我的方法名是findByHedgingType 生成的sql是这样的:

<select id="findByHedgingType" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from instruct_strategy tm
        where null=#{hedgingType}
</select>

希望能支持一个继承的resultMap,谢谢!!!

gejun123456 commented 10 months ago

3.2.3 已支持