pos支付bug

This commit is contained in:
齐天大圣 2024-06-04 15:44:41 +08:00
parent 566a81a1e6
commit 5324586116
5 changed files with 22 additions and 0 deletions

View File

@ -120,5 +120,11 @@ public class CardValueOrdersController extends BaseController {
String orderNo = map.get("orderNo");
cardValueOrdersService.getOneByOrderNo(orderNo);
}
@PostMapping("getOneByOrderNos")
public ResponseObject getOneByOrderNos(@RequestBody Map<String,String> map){
String orderNo = map.get("orderNo");
return getSuccessResult(cardValueOrdersService.getOneByOrderNos(orderNo));
}
}

View File

@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fuint.business.marketingActivity.cardValueOrders.entity.CardValueOrders;
import com.fuint.business.order.entity.AllOrderInfo;
/**
* 储值卡订单表(CardValueOrders)表服务接口
@ -19,6 +20,7 @@ public interface CardValueOrdersService extends IService<CardValueOrders> {
* @return
*/
CardValueOrders getOneByOrderNo(String orderNo);
AllOrderInfo getOneByOrderNos(String orderNo);
/**
* 根据用户id分页查询储值卡订单信息
* @param page

View File

@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fuint.business.marketingActivity.cardValueOrders.entity.CardValueOrders;
import com.fuint.business.marketingActivity.cardValueOrders.mapper.CardValueOrdersMapper;
import com.fuint.business.marketingActivity.cardValueOrders.service.CardValueOrdersService;
import com.fuint.business.order.entity.AllOrderInfo;
import com.fuint.business.order.mapper.AllOrderInfoMapper;
import com.fuint.business.order.service.AllOrderInfoService;
import com.fuint.business.order.vo.AllOrderInfoVo;
@ -45,6 +46,12 @@ public class CardValueOrdersServiceImpl extends ServiceImpl<CardValueOrdersMappe
return cardValueOrdersMapper.getOneByOrderNo(orderNo);
}
@Override
public AllOrderInfo getOneByOrderNos(String orderNo) {
return allOrderInfoService.getOneByOrderNos(orderNo);
}
@Override
public IPage<CardValueOrders> selectCardValueOrders(Page page, CardValueOrders order) {
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();

View File

@ -94,4 +94,6 @@ public interface AllOrderInfoService {
AllOrderInfoVo getOperatingDataPos(AllOrderInfoDto allOrderInfo);
AllOrderInfoVo getOneByOrderNo(String orderNo);
AllOrderInfo getOneByOrderNos(String orderNo);
}

View File

@ -961,6 +961,11 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
return allOrderInfoMapper.getOneByOrderNo(orderNo);
}
@Override
public AllOrderInfo getOneByOrderNos(String orderNo) {
return allOrderInfoMapper.getOneByOrderNo(orderNo);
}
private long dayCount(String beginTimeStr, String endTimeStr ) {
// 将字符串表示的时间转换成 LocalDate 对象