repair /selectSpecificInvoiced about the Spell Bug of Code
This commit is contained in:
parent
a68f6b0a23
commit
a3de19f408
@ -47,7 +47,7 @@ public class XhpcInvoiceApiController extends BaseController {
|
|||||||
@GetMapping(value = "/selectSpecificInvoiced")
|
@GetMapping(value = "/selectSpecificInvoiced")
|
||||||
public AjaxResult selectSpecificInvoiced(@RequestParam Long invoiceId) {
|
public AjaxResult selectSpecificInvoiced(@RequestParam Long invoiceId) {
|
||||||
|
|
||||||
SpecificInvoicedResponse specificInvoicedResponse = xhpcInvoiceService.selectInvoiceHistoryRecords(invoiceId);
|
SpecificInvoicedResponse specificInvoicedResponse = xhpcInvoiceService.selectSpecificInvoiced(invoiceId);
|
||||||
return AjaxResult.success(specificInvoicedResponse);
|
return AjaxResult.success(specificInvoicedResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
|
}
|
||||||
@ -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;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -97,6 +97,6 @@ public interface XhpcInvoiceService {
|
|||||||
* @date 2021/12/27 13:12
|
* @date 2021/12/27 13:12
|
||||||
* @since version-1.0
|
* @since version-1.0
|
||||||
*/
|
*/
|
||||||
SpecificInvoicedResponse selectInvoiceHistoryRecords(Long invoiceId);
|
SpecificInvoicedResponse selectSpecificInvoiced(Long invoiceId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -216,7 +216,7 @@ public class XhpcInvoiceServiceImpl implements XhpcInvoiceService {
|
|||||||
* @since version-1.0
|
* @since version-1.0
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public SpecificInvoicedResponse selectInvoiceHistoryRecords(Long invoiceId) {
|
public SpecificInvoicedResponse selectSpecificInvoiced(Long invoiceId) {
|
||||||
|
|
||||||
//对拷发票部分数据
|
//对拷发票部分数据
|
||||||
XhpcInvoice xhpcInvoice = xhpcInvoiceMapper.selectByPrimaryKey(invoiceId);
|
XhpcInvoice xhpcInvoice = xhpcInvoiceMapper.selectByPrimaryKey(invoiceId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user