第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

為什么不寫parameterType也可以運(yùn)行成功

為什么不寫parameterType也可以運(yùn)行成功?寫別的類型可不會報錯照常執(zhí)行

command.xml:
? <select id="queryCommandListByPage" resultMap="CommandResult" >
? ?? ?select <include refid="columns"/> from command a left join command_content b
??? on a.id=b.command_id
? ?? ?<where>
? ?? ??? ?<if test="command.name != null and !&quot;&quot;.equals(command.name.trim())">
?? ??? ??? ?and a.name=#{command.name}
?? ???? </if>
?? ???? <if test="command.description != null and !&quot;&quot;.equals(command.description.trim())">
?? ??? ??? ?and a.description like '%' #{command.description} '%'
?? ???? </if>
? ?? ?</where>
? ?? ?<if test="flag==1">
?? ??? ?group by aid
?? ?</if>
? ?? ?order by id
? </select>

? <sql? id="columns">
? ?? ?a.id aid,a.name,a.description,b.content,b.id,b.command_id
? </sql>

接口:

/**
?? ? * 攔截器實現(xiàn)分頁
?? ? */
?? ?public List<command> queryCommandListByPage(Map<String,Object>parameter);

正在回答

1 回答

貌似mybatis能夠識別吧,但返回值類型不能不寫,因為mybatis需要將獲得結(jié)果封裝到相應(yīng)的類中,查詢的字段與類的屬性需要一致(不一致的需要顯示的配置)

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

為什么不寫parameterType也可以運(yùn)行成功

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號