mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 开票详情页面
This commit is contained in:
@@ -2,6 +2,7 @@ package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.OrderInvoiceRecord;
|
||||
import com.jsowell.pile.dto.QueryInvoiceRecordDTO;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -11,6 +12,7 @@ import java.util.List;
|
||||
* @author jsowell
|
||||
* @date 2023-04-10
|
||||
*/
|
||||
@Repository
|
||||
public interface OrderInvoiceRecordMapper {
|
||||
/**
|
||||
* 查询申请开票
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import com.jsowell.pile.domain.MemberInvoiceTitle;
|
||||
import com.jsowell.pile.vo.uniapp.InvoiceTitleVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -11,6 +12,8 @@ import java.util.List;
|
||||
* @date 2023-04-13
|
||||
*/
|
||||
public interface IMemberInvoiceTitleService {
|
||||
InvoiceTitleVO selectByTitleId(String titleId);
|
||||
|
||||
/**
|
||||
* 查询会员发票抬头
|
||||
*
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import com.jsowell.common.enums.TitleTypeEnum;
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.pile.domain.MemberInvoiceTitle;
|
||||
import com.jsowell.pile.mapper.MemberInvoiceTitleMapper;
|
||||
import com.jsowell.pile.service.IMemberInvoiceTitleService;
|
||||
import com.jsowell.pile.vo.uniapp.InvoiceTitleVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@@ -20,6 +22,24 @@ public class MemberInvoiceTitleServiceImpl implements IMemberInvoiceTitleService
|
||||
@Autowired
|
||||
private MemberInvoiceTitleMapper memberInvoiceTitleMapper;
|
||||
|
||||
@Override
|
||||
public InvoiceTitleVO selectByTitleId(String titleId) {
|
||||
MemberInvoiceTitle memberInvoiceTitle = memberInvoiceTitleMapper.selectMemberInvoiceTitleById(Long.parseLong(titleId));
|
||||
if (memberInvoiceTitle == null) {
|
||||
return null;
|
||||
}
|
||||
return InvoiceTitleVO.builder()
|
||||
.titleId(memberInvoiceTitle.getId() + "")
|
||||
.titleName(memberInvoiceTitle.getName())
|
||||
.titleType(TitleTypeEnum.getLabel(memberInvoiceTitle.getTitleType()))
|
||||
.taxId(memberInvoiceTitle.getTaxId())
|
||||
.unitAddress(memberInvoiceTitle.getUnitAddress())
|
||||
.phoneNumber(memberInvoiceTitle.getPhoneNumber())
|
||||
.bankName(memberInvoiceTitle.getBankName())
|
||||
.bankAccountNumber(memberInvoiceTitle.getBankAccountNumber())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询会员发票抬头
|
||||
*
|
||||
|
||||
@@ -18,4 +18,29 @@ public class InvoiceTitleVO {
|
||||
|
||||
// 抬头类型 (单位或个人)
|
||||
private String titleType;
|
||||
|
||||
/**
|
||||
* 税号
|
||||
*/
|
||||
private String taxId;
|
||||
|
||||
/**
|
||||
* 单位地址
|
||||
*/
|
||||
private String unitAddress;
|
||||
|
||||
/**
|
||||
* 电话号码
|
||||
*/
|
||||
private String phoneNumber;
|
||||
|
||||
/**
|
||||
* 开户银行
|
||||
*/
|
||||
private String bankName;
|
||||
|
||||
/**
|
||||
* 银行账户
|
||||
*/
|
||||
private String bankAccountNumber;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.jsowell.pile.vo.web;
|
||||
|
||||
import com.jsowell.pile.vo.uniapp.InvoiceTitleVO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class InvoiceRecordVO {
|
||||
/**
|
||||
* 申请记录主键id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 会员id
|
||||
*/
|
||||
private String memberId;
|
||||
|
||||
/**
|
||||
* 状态 0-未开票 1-已开票
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private String createTime;
|
||||
|
||||
/**
|
||||
* 更新时间x
|
||||
*/
|
||||
private String updateTime;
|
||||
|
||||
/**
|
||||
* 发票抬头信息
|
||||
*/
|
||||
private InvoiceTitleVO invoiceTitle;
|
||||
|
||||
/**
|
||||
* 订单明细
|
||||
*/
|
||||
// private List<> orderList;
|
||||
}
|
||||
Reference in New Issue
Block a user