|
|
@@ -2625,37 +2625,6 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <!--获取仓库-->
|
|
|
- <select id="getWarehouseByPage" resultType="java.util.Map">
|
|
|
- SELECT mtw.wh_id as "whId",sys.f_code_name(mtw.wh_code,mtw.wh_name) AS "whCodeName"
|
|
|
- FROM mst.t_warehouse mtw left join core.t_user ctu on ctu.user_id = mtw.op_create_user_id
|
|
|
- WHERE mtw.fty_id = #{ftyId}
|
|
|
- and mtw.flg_valid
|
|
|
- <if test="whCode!=null and whCode!=''">
|
|
|
- and position(#{whCode} in mtw.wh_code) > 0
|
|
|
- </if>
|
|
|
- <if test="whName!=null and whName!=''">
|
|
|
- and position(#{warehouseName} in mtw.wh_name) > 0
|
|
|
- </if>
|
|
|
- <if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
- limit #{end} offset #{start}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-
|
|
|
- <!--获取仓库个数-->
|
|
|
- <select id="countWarehouseByPage" resultType="Long">
|
|
|
- select count(1)
|
|
|
- from mst.t_warehouse mtw
|
|
|
- WHERE mtw.fty_id = #{ftyId}
|
|
|
- and mtw.flg_valid
|
|
|
- <if test="whCode!=null and whCode!=''">
|
|
|
- and position(#{whCode} in mtw.wh_code) > 0
|
|
|
- </if>
|
|
|
- <if test="whName!=null and whName!=''">
|
|
|
- and position(#{warehouseName} in mtw.wh_name) > 0
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-
|
|
|
<!--获取仓位-->
|
|
|
<select id="getWarehousePlaceByPage" resultType="java.util.Map">
|
|
|
SELECT mtwp.place_id as "placeId", mtwp.place_name as "placeName",
|