Commit 5be4d567 by huluobin

update

parent 1100c623
package com.bailuntec.api.bailuntec.cw.response; package com.bailuntec.api.bailuntec.cw.response;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal; import java.math.BigDecimal;
...@@ -18,31 +19,40 @@ public class GetRepayPlanDetailsResp { ...@@ -18,31 +19,40 @@ public class GetRepayPlanDetailsResp {
private Integer id; private Integer id;
@JsonProperty("BorrowId")
private Integer borrowId; private Integer borrowId;
@JsonProperty("RepayId")
private Integer repayId; private Integer repayId;
@JsonProperty("ContractNo")
private String contractNo; private String contractNo;
@JsonProperty("CompanyVal")
private Integer companyVal; private Integer companyVal;
@JsonProperty("Company")
private String company; private String company;
@JsonProperty("BankCard")
private String bankCard; private String bankCard;
@JsonProperty("BankCardUser")
private String bankCardUser; private String bankCardUser;
@JsonProperty("BankName")
private String bankName; private String bankName;
@JsonProperty("Creditor")
private String creditor; private String creditor;
@JsonProperty("RepayInterest")
private BigDecimal repayInterest; private BigDecimal repayInterest;
@JsonProperty("RepayInterestRmb")
private BigDecimal repayInterestRmb; private BigDecimal repayInterestRmb;
@JsonProperty("CctualRepayTime")
private LocalDateTime actualRepayTime; private LocalDateTime actualRepayTime;
private LocalDateTime gmtCreate;
private LocalDateTime gmtModify;
} }
package com.bailuntec.api.bailuntec.purchase; package com.bailuntec.api.bailuntec.purchase;
import com.bailuntec.api.bailuntec.purchase.resp.GetPagePurchaseSkuInfoResp;
import com.bailuntec.api.bailuntec.purchase.resp.GetPurchaseSkuForDataCenterResp; import com.bailuntec.api.bailuntec.purchase.resp.GetPurchaseSkuForDataCenterResp;
import com.bailuntec.api.bailuntec.purchase.resp.PurchaseDetailDto;
import com.bailuntec.api.bailuntec.purchase.resp.PurchaseResult; import com.bailuntec.api.bailuntec.purchase.resp.PurchaseResult;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import java.util.List; import java.util.List;
...@@ -17,7 +19,7 @@ import java.util.List; ...@@ -17,7 +19,7 @@ import java.util.List;
* @author robbendev * @author robbendev
* @since 2020/10/6 1:30 下午 * @since 2020/10/6 1:30 下午
*/ */
@FeignClient(name = "purhcase", url = "http://api.purchase.bailuntec.com") @FeignClient(name = "purchase", url = "http://api.purchase.bailuntec.com")
public interface PurchaseApi { public interface PurchaseApi {
/** /**
...@@ -48,11 +50,12 @@ public interface PurchaseApi { ...@@ -48,11 +50,12 @@ public interface PurchaseApi {
* @param page page * @param page page
* @return 采购单sku详细信息 * @return 采购单sku详细信息
*/ */
@GetMapping("/api/GetPagePurchaseSkuInfo") @PostMapping(value = "/api/GetPagePurchaseSkuInfo")
PurchaseResult<List<GetPagePurchaseSkuInfoResp>> GetPagePurchaseSkuInfo(@RequestParam("start") String start, @Headers({"content-length: 0"})
@RequestParam("end") String end, PurchaseResult<List<PurchaseDetailDto>> GetPagePurchaseSkuInfo(@RequestParam("start") String start,
@RequestParam("pagesize") Integer pagesize, @RequestParam("end") String end,
@RequestParam("page") Integer page); @RequestParam("pagesize") Integer pagesize,
@RequestParam("page") Integer page);
} }
......
...@@ -2,6 +2,8 @@ package com.bailuntec.api.bailuntec.purchase.resp; ...@@ -2,6 +2,8 @@ package com.bailuntec.api.bailuntec.purchase.resp;
import lombok.Data; import lombok.Data;
import java.util.List;
/** /**
* <p> * <p>
* *
...@@ -12,4 +14,5 @@ import lombok.Data; ...@@ -12,4 +14,5 @@ import lombok.Data;
*/ */
@Data @Data
public class GetPurchaseSkuForDataCenterResp { public class GetPurchaseSkuForDataCenterResp {
} }
package com.bailuntec.api.bailuntec.purchase.resp;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class PurchaseDetailDto {
@JsonProperty("BuyNo")
@JSONField(name = "BuyNo")
private String purchaseId;
@JsonProperty("Status")
@JSONField(name = "Status")
private Integer status;
@JsonProperty("BuyCategoryName")
@JSONField(name = "BuyCategoryName")
private String purchaseCategoryName;
@JsonProperty("SupplierId")
@JSONField(name = "SupplierId")
private Integer deliverId;
@JsonProperty("SupplierName")
@JSONField(name = "SupplierName")
private String deliverName;
@JsonProperty("SupplierValue")
@JSONField(name = "SupplierValue")
private Integer deliverValue;
@JsonProperty("BuyUserName")
@JSONField(name = "BuyUserName")
private String buyerName;
@JSONField(name = "WareHouseFrom")
@JsonProperty("WareHouseFrom")
private String warehouseFromCode;
@JSONField(name = "WareHouseFromName")
@JsonProperty("WareHouseFromName")
private String warehouseFromName;
@JSONField(name = "WareHouseTo")
@JsonProperty("WareHouseTo")
private String warehouseIntoCode;
@JSONField(name = "WareHouseToName")
@JsonProperty("WareHouseToName")
private String warehouseIntoName;
@JsonProperty("SkuCode")
@JSONField(name = "SkuCode")
private String bailunSku;
@JSONField(name = "BuyCount")
@JsonProperty("BuyCount")
private Integer quantityPurchase;
@JSONField(name = "PayPrice")
@JsonProperty("PayPrice")
private BigDecimal unitPrice;
@JSONField(name = "PayAmount")
@JsonProperty("PayAmount")
private BigDecimal amountPaid;
@JSONField(name = "MoneyUnitCode")
@JsonProperty("MoneyUnitCode")
private String currencyCode;
@JSONField(name = "MoneyUnitName")
@JsonProperty("MoneyUnitName")
private String currencyName;
@JSONField(name = "ReturnCount")
@JsonProperty("ReturnCount")
private Integer quantityReturn;
@JSONField(name = "PutinCount")
@JsonProperty("PutinCount")
private Integer quantityInbound;
@JSONField(name = "DeliverCount")
@JsonProperty("DeliverCount")
private Integer quantityDeliver;
@JsonProperty("NotDeliverCount")
@JSONField(name = "NotDeliverCount")
private Integer quantityNotDeliver;
@JsonProperty("ArrivalCount")
@JSONField(name = "ArrivalCount")
private Integer quantityArrival;
@JsonProperty("NotArrivalCount")
@JSONField(name = "NotArrivalCount")
private Integer quantityNotArrival;
@JsonProperty("QcCount")
@JSONField(name = "QcCount")
private Integer quantityInspect;
@JsonProperty("QualifiedCount")
@JSONField(name = "QualifiedCount")
private Integer quantityQualifiedInspect;
@JsonProperty("NotQualifiedCount")
@JSONField(name = "NotQualifiedCount")
private Integer quantityUnqualifiedInspect;
@JsonProperty("AllotCount")
@JSONField(name = "AllotCount")
private Integer quantityWaitTransfer;
@JsonProperty("ExchangeCount")
@JSONField(name = "ExchangeCount")
private Integer quantityExchange;
@JSONField(name = "PutinLoseCount")
@JsonProperty("PutinLoseCount")
private Integer quantityLoseInbound;
@JSONField(name = "CreateTime")
@JsonProperty("CreateTime")
private String createTimed;
@JSONField(name = "UpdateTime")
@JsonProperty("UpdateTime")
private String updateTimed;
@JsonProperty("TaobaoOrderNo")
@JSONField(name = "TaobaoOrderNo")
private String alibabaOrderId;
@JSONField(name = "ExpressNo")
@JsonProperty("ExpressNo")
private String logisticsOrderId;
@JSONField(name = "ExpressCompany")
@JsonProperty("ExpressCompany")
private String logisticsCompanyName;
@JSONField(name = "no")
@JsonProperty("no")
private Integer companyId;
@JSONField(name = "ispush")
@JsonProperty("ispush")
private Integer ispush;
@JSONField(name = "isallot")
@JsonProperty("isallot")
private Integer isallot;
@JSONField(name = "isaims")
@JsonProperty("isaims")
private Integer isaims;
@JSONField(name = "detail_delstatus")
@JsonProperty("detail_delstatus")
private Boolean detailDelstatus;
@JSONField(name = "paytype")
@JsonProperty("paytype")
private Integer payType;
@JSONField(name = "paystatus")
@JsonProperty("paystatus")
private Integer payStatus;
@JSONField(name = "lastsigntime")
@JsonProperty("lastsigntime")
private Date lastSigntime;
@JSONField(name = "arrivalstatus")
@JsonProperty("BuyarrivalstatusNo")
private Integer arrivalStatus;
@JSONField(name = "buyamount")
@JsonProperty("buyamount")
private Integer amountBuy;
@JSONField(name = "buypayamount")
@JsonProperty("buypayamount")
private Integer amountPayed;
@JSONField(name = "expressfee")
@JsonProperty("expressfee")
private Integer amountExpress;
@JSONField(name = "createusername")
@JsonProperty("createusername")
private String createusername;
}
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