|
@@ -55,7 +55,7 @@
|
|
|
|
|
|
<!-- 查集合 - 根据条件(参数为空时代表忽略指定条件) [G] -->
|
|
|
<select id="getList" resultType="com.pj.project.tb_business_item.TbBusinessItem">
|
|
|
- select a.*,b.goods_name,b.card_no,b.china_car_no
|
|
|
+ select a.*,b.goods_name,b.card_no,b.china_car_no,b.business_type
|
|
|
from tb_business_item a,tb_business b where a.business_id=b.id
|
|
|
<if test=' this.has("id") '> and a.id = #{id} </if>
|
|
|
<if test=' this.has("businessId") '> and a.business_id = #{businessId} </if>
|
|
@@ -71,6 +71,10 @@
|
|
|
and date_format(a.create_time,'%Y-%m-%d') >= #{beginTime}
|
|
|
and date_format(a.create_time,'%Y-%m-%d') <= #{endTime}
|
|
|
</if>
|
|
|
+ <if test=' this.has("cardNo") '> and b.card_no like concat('%',#{cardNo},'%') </if>
|
|
|
+ <if test=' this.has("chinaCarNo") '> and b.china_car_no like concat('%',#{chinaCarNo},'%') </if>
|
|
|
+ <if test=' this.has("businessType") '> and b.business_type = #{businessType} </if>
|
|
|
+ <if test=' this.has("goodsName") '> and b.goods_name like concat('%',#{goodsName},'%') </if>
|
|
|
order by
|
|
|
<choose>
|
|
|
<when test='sortType == 1'> a.id desc </when>
|