repair /selectSpecificInvoiced about the Spell Bug of Code

This commit is contained in:
wen 2021-12-27 14:47:34 +08:00
parent a68f6b0a23
commit a3de19f408
5 changed files with 71 additions and 3 deletions

View File

@ -47,7 +47,7 @@ public class XhpcInvoiceApiController extends BaseController {
@GetMapping(value = "/selectSpecificInvoiced")
public AjaxResult selectSpecificInvoiced(@RequestParam Long invoiceId) {
SpecificInvoicedResponse specificInvoicedResponse = xhpcInvoiceService.selectInvoiceHistoryRecords(invoiceId);
SpecificInvoicedResponse specificInvoicedResponse = xhpcInvoiceService.selectSpecificInvoiced(invoiceId);
return AjaxResult.success(specificInvoicedResponse);
}

View File

@ -0,0 +1,27 @@
package com.xhpc.invoice.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* /selectInvoiceHistoryRecords接口请求包装类
*
* @author WH
* @date 2021/12/27 14:18
* @since version-1.0
*/
@NoArgsConstructor
@Data
public class InvoiceHistoryRecordsRequest {
@JsonProperty("creatorId")
private Long creatorId;
@JsonProperty("creatorType")
private Integer creatorType;
@JsonProperty("currentPage")
private Integer currentPage;
@JsonProperty("items")
private Long items;
}

View File

@ -0,0 +1,41 @@
package com.xhpc.invoice.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.util.List;
/**
* /selectInvoiceHistoryRecords接口的返回数据包装类
*
* @author WH
* @date 2021/12/27 14:34
* @since version-1.0
*/
@NoArgsConstructor
@Data
public class InvoiceHistoryRecordsResponse {
@JsonProperty("totalItems")
private Long totalItems;
@JsonProperty("items")
private List<ItemsDTO> items;
@NoArgsConstructor
@Data
public static class ItemsDTO {
@JsonProperty("invoiceId")
private Long invoiceId;
@JsonProperty("createTime")
private String createTime;
@JsonProperty("status")
private Integer status;
@JsonProperty("invoicingMoney")
private BigDecimal invoicingMoney;
}
}

View File

@ -97,6 +97,6 @@ public interface XhpcInvoiceService {
* @date 2021/12/27 13:12
* @since version-1.0
*/
SpecificInvoicedResponse selectInvoiceHistoryRecords(Long invoiceId);
SpecificInvoicedResponse selectSpecificInvoiced(Long invoiceId);
}

View File

@ -216,7 +216,7 @@ public class XhpcInvoiceServiceImpl implements XhpcInvoiceService {
* @since version-1.0
*/
@Override
public SpecificInvoicedResponse selectInvoiceHistoryRecords(Long invoiceId) {
public SpecificInvoicedResponse selectSpecificInvoiced(Long invoiceId) {
//对拷发票部分数据
XhpcInvoice xhpcInvoice = xhpcInvoiceMapper.selectByPrimaryKey(invoiceId);