Browse Source

Merge branch 'develop' into release

tags/v1.2.0^2
wanghaoran 1 year ago
parent
commit
182d4ff962
2 changed files with 8 additions and 0 deletions
  1. +5
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/entity/request/goods/QueryGoodsListByWarehouseIdRequest.java
  2. +3
    -0
      tuoheng-admin/src/main/resources/mapper/GoodsMapper.xml

+ 5
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/entity/request/goods/QueryGoodsListByWarehouseIdRequest.java View File

*/ */
private Integer warehouseId; private Integer warehouseId;


/**
* 物资名称
*/
private String goodsName;

} }

+ 3
- 0
tuoheng-admin/src/main/resources/mapper/GoodsMapper.xml View File

<if test="1 == 1"> and g.mark = 1 </if> <if test="1 == 1"> and g.mark = 1 </if>
<if test="tenantId != null "> and g.tenant_id = #{tenantId}</if> <if test="tenantId != null "> and g.tenant_id = #{tenantId}</if>
<if test="warehouseId != null "> and g.warehouse_id = #{warehouseId}</if> <if test="warehouseId != null "> and g.warehouse_id = #{warehouseId}</if>
<if test="goodsName != null and goodsName != ''">
and g.goods_name like concat('%',#{goodsName},'%')
</if>
</where> </where>
order by g.create_time desc order by g.create_time desc
</select> </select>

Loading…
Cancel
Save