kb.id
,kb.`name`
,kb.ent_id
, kb.goods_type goodsType
, kb.spec
, kb.price
, kb.amount
, kb.status
, kb.remark
, kb.create_time createTime
, kt.want_buy_id wantBuyId
, kt.trading trading
, kba.name addressName
kb.del_flag = 0 and kt.del_flag = 0
and kb.create_time between #{wantBuyReq.startCreateTime,jdbcType=TIMESTAMP} and
#{wantBuyReq.endCreateTime,jdbcType=TIMESTAMP}
and kt.trading in
#{item,jdbcType=VARCHAR}
and kb.status = #{wantBuyReq.status}
and (
kb.`name` like concat('%', #{wantBuyReq.keywords,jdbcType=VARCHAR}, '%')
)
and kb.goods_type in
#{item}
and kba.city_code = #{wantBuyReq.cityCode}