Commit 24659456 by 程裕兵

feat:list by ids

parent c50d999f
......@@ -34,6 +34,9 @@ public class StudioCashierRecordVO {
@ApiModelProperty("业务订单号")
private String orderNo;
@ApiModelProperty("业务子订单号")
private String subOrderNo;
@ApiModelProperty("业务订单类型")
private String orderType;
......
package com.jiejing.fitness.finance.service.cashier.convert;
import com.alibaba.fastjson.JSON;
import com.google.common.collect.Lists;
import com.jiejing.common.model.PageVO;
import com.jiejing.common.utils.collection.CollectionUtil;
......@@ -21,38 +22,7 @@ import org.springframework.data.domain.Page;
public class CashierConvert {
public static StudioCashierRecordVO convertVO(StudioCashierRecord record) {
return StudioCashierRecordVO.builder()
.id(record.getId())
.transNo(record.getTransNo())
.orderNo(record.getOrderNo())
.orderType(record.getOrderType())
.transType(record.getTransType())
.brandId(record.getBrandId())
.studioId(record.getStudioId())
.studioName(record.getStudioName())
.merchantId(record.getMerchantId())
.merchantNo(record.getMerchantNo())
.channelNo(record.getChannelNo())
.subChannel(record.getSubChannel())
.transAmount(record.getTransAmount())
.feeRate(record.getFeeRate())
.fee(record.getFee())
.actualAmount(record.getActualAmount())
.transState(record.getTransState())
.buyerName(record.getBuyerName())
.buyerPhone(record.getBuyerPhone())
.goods(record.getGoods())
.remark(record.getRemark())
.existRelatedTrans(record.getExistRelatedTrans())
.relatedTransNo(record.getRelatedTransNo())
.thirdTransNo(record.getThirdTransNo())
.failMessage(record.getFailMessage())
.tradingTime(record.getTradingTime())
.successTime(record.getSuccessTime())
.inTime(record.getInTime())
.createTime(record.getCreateTime())
.updateTime(record.getUpdateTime())
.build();
return JSON.parseObject(JSON.toJSONString(record), StudioCashierRecordVO.class);
}
public static List<StudioCashierRecordVO> convertList(List<StudioCashierRecord> list) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment