|
|
@@ -919,6 +919,9 @@
|
|
|
<if test="whName != null">
|
|
|
AND tmgs.wh_name LIKE concat('%',my_ex.likequery(#{whName}),'%')
|
|
|
</if>
|
|
|
+ <if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
+ limit #{end} offset #{start}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<!-- 查询库存个数 -->
|
|
|
@@ -937,13 +940,13 @@
|
|
|
AND tpi.non_std_code = #{nonStdCode}
|
|
|
</if>
|
|
|
<if test="skuCode != null">
|
|
|
- AND tmgs.sku_code = #{skuCode}
|
|
|
+ AND tmgs.sku_code LIKE concat('%',my_ex.likequery(#{skuCode}),'%')
|
|
|
</if>
|
|
|
<if test="skuName != null">
|
|
|
- AND tmgs.sku_name = #{skuName}
|
|
|
+ AND tmgs.sku_name LIKE concat('%',my_ex.likequery(#{skuName}),'%')
|
|
|
</if>
|
|
|
<if test="whName != null">
|
|
|
- AND tmgs.wh_name = #{whName}
|
|
|
+ AND tmgs.wh_name LIKE concat('%',my_ex.likequery(#{whName}),'%')
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
@@ -1195,7 +1198,7 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <!-- 获取资金账户-->
|
|
|
+ <!-- 获取资金账户(下拉)-->
|
|
|
<select id="getMac" resultType="java.util.Map">
|
|
|
select tmma.mac_id as "macId",
|
|
|
tmma.mac_code as "macCode",
|
|
|
@@ -1217,4 +1220,45 @@
|
|
|
</if>
|
|
|
order by tmma.display_no
|
|
|
</select>
|
|
|
+
|
|
|
+ <!-- 获取资金账户(放大镜) -->
|
|
|
+ <select id="getMoneyAccount" resultType="java.util.Map">
|
|
|
+ select tmma.mac_id as "macId",
|
|
|
+ tmma.mac_code as "macCode",
|
|
|
+ tmma.mac_name as "macName",
|
|
|
+ tmma.mac_type as "macType",
|
|
|
+ tmma.balance,
|
|
|
+ tmma.display_no as "displayNo",
|
|
|
+ tmma.flg_default as "flgDefault",
|
|
|
+ tmma.mac_receipt_code as "macReceiptCode",
|
|
|
+ tmma.remarks
|
|
|
+ from dkic_b.t_mst_money_account tmma
|
|
|
+ where tmma.flg_valid
|
|
|
+ and tmma.cp_id = #{cpId}
|
|
|
+ <if test="macCode !=null and macCode !=''">
|
|
|
+ AND tmma.mac_code LIKE concat('%',my_ex.likequery(#{macCode}),'%')
|
|
|
+ </if>
|
|
|
+ <if test="macName !=null and macName !=''">
|
|
|
+ AND tmma.mac_name LIKE concat('%',my_ex.likequery(#{macName}),'%')
|
|
|
+ </if>
|
|
|
+ order by tmma.display_no
|
|
|
+ <if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
+ limit #{end} offset #{start}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 获取资金账户(放大镜)个数 -->
|
|
|
+ <select id="getMoneyAccountCountByPage" resultType="Long">
|
|
|
+ SELECT
|
|
|
+ count(1)
|
|
|
+ from dkic_b.t_mst_money_account tmma
|
|
|
+ where tmma.flg_valid
|
|
|
+ and tmma.cp_id = #{cpId}
|
|
|
+ <if test="macCode !=null and macCode !=''">
|
|
|
+ AND tmma.mac_code LIKE concat('%',my_ex.likequery(#{macCode}),'%')
|
|
|
+ </if>
|
|
|
+ <if test="macName !=null and macName !=''">
|
|
|
+ AND tmma.mac_name LIKE concat('%',my_ex.likequery(#{macName}),'%')
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
</mapper>
|