收银点bug修复
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MerchantCashPlace;
|
||||
import cn.pluss.platform.entity.UserCashPlace;
|
||||
import cn.pluss.platform.vo.MerchantCashPlaceVO;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
@@ -56,4 +56,6 @@ public interface MerchantChannelStatusMapper extends BaseMapper<MerchantChannelS
|
||||
|
||||
List<Integer> getChannelByMerchantCode(@Param("merchantCode") String merchantCode);
|
||||
Integer saveChannel(MerchantChannelStatus merchantChannelStatus);
|
||||
|
||||
List<Integer> getChannelByRootId(@Param("rootAccountId") long rootAccountId);
|
||||
}
|
||||
|
||||
@@ -90,7 +90,12 @@
|
||||
order by mcs.id desc limit #{pageSize} offset #{offset};
|
||||
</select>
|
||||
<select id="getChannelByMerchantCode" resultType="java.lang.Integer">
|
||||
SELECT channel FROM tb_pluss_merchant_channel_status WHERE merchantCode=#{merchantCode}
|
||||
-- SELECT channel FROM tb_pluss_merchant_channel_status tp inner join tb_pluss_merchant_cash_place tpm
|
||||
-- on tp.channel = tpm.pay_passage_id and tp.userId = tpm.userId WHERE merchantCode=#{merchantCode}
|
||||
SELECT tp.channel FROM tb_pluss_merchant_channel_status tp
|
||||
inner join tb_pluss_merchant_base_info tmb on tp.merchantCode = tmb.merchantCode
|
||||
inner join tb_pluss_merchant_cash_place tpm WHERE merchantCode=#{merchantCode}
|
||||
on tmb.userId = tpm.userId
|
||||
</select>
|
||||
<select id="selectMerchantCode" resultType="cn.pluss.platform.vo.MerchantCashPlaceVO">
|
||||
SELECT
|
||||
@@ -114,6 +119,9 @@
|
||||
LIMIT
|
||||
#{pageNum}, #{pageSize}
|
||||
</select>
|
||||
<select id="getChannelByRootId" resultType="java.lang.Integer">
|
||||
SELECT DISTINCT tpm.pay_passage_id from tb_pluss_merchant_cash_place tpm where tpm.root_account_id = #{rootAccountId}
|
||||
</select>
|
||||
|
||||
<insert id="saveChannel" useGeneratedKeys="true" keyProperty="id" keyColumn="id"
|
||||
parameterType="cn.pluss.platform.entity.MerchantChannelStatus">
|
||||
|
||||
Reference in New Issue
Block a user