public List<Jixi> findQxrLiByHtbh(@Param("f4001htbh") String f4001htbh);
<if test="f4001htbh != null and f4001htbh != ''"> AND qxr1.f5009htbh LIKE CONCAT(CONCAT('%', #{f4001htbh}), '%') </if>
如果就就一个参数,并且用到if,需要在mapper里加上@Param("f4001htbh")
public List<Jixi> findQxrLiByHtbh(@Param("f4001htbh") String f4001htbh);
<if test="f4001htbh != null and f4001htbh != ''"> AND qxr1.f5009htbh LIKE CONCAT(CONCAT('%', #{f4001htbh}), '%') </if>
如果就就一个参数,并且用到if,需要在mapper里加上@Param("f4001htbh")