mybatis实现模糊查询
<!--根据产品件号模糊查询机信息 --> <select id="selectInStockByPartNum" resultType="com.inchlifc.entity.InStock"> SELECT * FROM in_stock <where> <if test="partNum!=null"> partNum LIKE CONCAT('%', #{partNum}, '%') </if> </where> ORDER BY createTime desc </select>
浙公网安备 33010602011771号