You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.6 KiB
68 lines
2.6 KiB
package com.example.demo.mapper.cash;
|
|
|
|
//import com.example.demo.domain.DTO.PaymentDTO;
|
|
import com.example.demo.domain.DTO.PaymentDTO;
|
|
import com.example.demo.domain.DTO.StripeDTO;
|
|
import com.example.demo.domain.entity.CashRecord;
|
|
import com.example.demo.domain.entity.GOrder;
|
|
import com.example.demo.domain.entity.RechargeActivity;
|
|
import com.example.demo.domain.vo.cash.CashCollection;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.util.List;
|
|
import java.util.Set;
|
|
|
|
/**
|
|
* @program: gold-java
|
|
* @ClassName CashCollectionMapper
|
|
* @description:
|
|
* @author: Ethan
|
|
* @create: 2025−09-26 17:17
|
|
* @Version 1.0
|
|
**/
|
|
@Mapper
|
|
public interface CashCollectionMapper {
|
|
//ceshi
|
|
//根据jwcode获取所属地区
|
|
String getMarketByJwcode(@Param("jwcode") Integer jwcode);
|
|
//新增收款订单
|
|
void add(CashRecord cashRecord);
|
|
//根据订单号获取订单id,状态
|
|
CashRecord selectByOrderCode(@Param("orderCode") String orderCode);
|
|
//更新订单状态
|
|
int updateStatus(@Param("orderCode") String orderCode,
|
|
@Param("status") Integer status);
|
|
//编辑订单
|
|
// 编辑订单(状态=5)后重新提交
|
|
int updateByOrderCode(@Param("cashRecordCollection") CashRecord cashRecord);
|
|
//多条件查询收款订单列表
|
|
List<CashCollection> selectCollection1(@Param("pageNum") Integer pageNum,
|
|
@Param("pageSize") Integer pageSize,
|
|
@Param("cashCollection") CashCollection cashCollection);
|
|
|
|
//根据订单号查询待审核的现金收款订单
|
|
CashRecord selectAuditByOrderCode(@Param("orderCode") String orderCode);
|
|
//补全手续费等信息
|
|
int complete(@Param("cashRecordCollection") CashRecord cashRecord);
|
|
//根据精网号获取姓名
|
|
String getNameByJwcode(@Param("jwcode") Integer jwcode);
|
|
//根据精网号获取市场名
|
|
String getMarketNameByJwcode(Integer jwcode);
|
|
//获取收款活动列表
|
|
List<RechargeActivity> getActivityList();
|
|
//查找未同步的订单
|
|
List<GOrder>getUnSync(@Param("size")int size);
|
|
//给同步过去的gOrder设置同步状态
|
|
int markSynced(@Param("orderId") Integer orderId);
|
|
//根据id查询收款订单
|
|
CashCollection selectById(Integer id);
|
|
|
|
List<CashCollection> selectBatchIds(Set<Integer> relatedIds);
|
|
//根据glodcoin订单号查询收款订单
|
|
CashCollection selectByGoldCoinOrderCode(String orderNo);
|
|
|
|
void updateByGoldCoinOrderCodeByPayment(PaymentDTO paymentDTO);
|
|
void updateByGoldCoinOrderCodeByStripe(StripeDTO stripeDTO);
|
|
}
|