7 changed files with 342 additions and 26 deletions
@ -0,0 +1,25 @@ |
|||
package com.qs.cost.common.conf; |
|||
|
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
import org.springframework.boot.context.properties.ConfigurationProperties; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @author YenHex |
|||
* @since 2022/7/7 |
|||
*/ |
|||
|
|||
@Getter |
|||
@Setter |
|||
@Component |
|||
@ConfigurationProperties(prefix = "server.timetable") |
|||
public class MainServerProperties { |
|||
|
|||
private String host; |
|||
|
|||
private String book; |
|||
|
|||
private String year; |
|||
|
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.qs.cost.module.controller; |
|||
|
|||
import com.qs.cost.common.dto.R; |
|||
import com.qs.cost.common.dto.u8.U8CallbackVo; |
|||
import com.qs.cost.module.service.JiaJinService; |
|||
import lombok.AllArgsConstructor; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* @author YenHex |
|||
* @since 2022/7/7 |
|||
*/ |
|||
@AllArgsConstructor |
|||
@RestController |
|||
@RequestMapping("/lzOrder") |
|||
public class LzOrderController { |
|||
|
|||
private final JiaJinService jiaJinService; |
|||
|
|||
@PostMapping("/callback") |
|||
public R callback(@RequestBody U8CallbackVo requestVo){ |
|||
jiaJinService.callback(requestVo); |
|||
return R.ok(); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,173 @@ |
|||
package com.qs.cost.module.domain.dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonAutoDetect; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Builder; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author: YenHex |
|||
* @Date: 2021/3/11 |
|||
* @Version: 1.0 |
|||
**/ |
|||
@Getter |
|||
@Setter |
|||
@Builder |
|||
@JsonAutoDetect(fieldVisibility= JsonAutoDetect.Visibility.ANY,getterVisibility= JsonAutoDetect.Visibility.NONE) |
|||
public class U8API4SaleOrder { |
|||
|
|||
@JsonProperty("AddType") |
|||
private int addType; |
|||
|
|||
/** |
|||
* 单据号 |
|||
*/ |
|||
@JsonProperty("cSOCode") |
|||
private String code; |
|||
|
|||
/** |
|||
* 订单日期 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonProperty("dDate") |
|||
private Date orderDate; |
|||
|
|||
/** |
|||
* 业务类型 |
|||
*/ |
|||
@JsonProperty("cBusType") |
|||
private String bizType; |
|||
|
|||
/** |
|||
* 销售类型 |
|||
*/ |
|||
@JsonProperty("cSTCode") |
|||
private String saleType; |
|||
|
|||
/** |
|||
* 客户编码 |
|||
*/ |
|||
@JsonProperty("cCusCode") |
|||
private String cusCode; |
|||
|
|||
/** |
|||
* 币种 |
|||
*/ |
|||
@JsonProperty("cexch_name") |
|||
private String currencyType; |
|||
|
|||
/** |
|||
* 部门编号 |
|||
*/ |
|||
@JsonProperty("cDepCode") |
|||
private String depCode; |
|||
|
|||
/** |
|||
* 制单人 |
|||
*/ |
|||
@JsonProperty("cMaker") |
|||
private String createUser; |
|||
|
|||
/** |
|||
* 预发货日期 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonProperty("dPreDateBT") |
|||
private Date preShipmentsDate; |
|||
|
|||
/** |
|||
* 预完工日期 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonProperty("dPreMoDateBT") |
|||
private Date preFinishedDate; |
|||
|
|||
/** |
|||
* 税率 |
|||
*/ |
|||
@JsonProperty("iTaxRate") |
|||
private BigDecimal taxRate; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
@JsonProperty("cMemo") |
|||
private String remark; |
|||
|
|||
/** |
|||
* 备注(底部) |
|||
*/ |
|||
@JsonProperty("cDefine11") |
|||
private String remarkFoot; |
|||
|
|||
/** |
|||
* 存货商品列表 |
|||
*/ |
|||
@JsonProperty("Details") |
|||
private List<OrderDetail> details; |
|||
|
|||
@Getter |
|||
@Setter |
|||
@JsonAutoDetect(fieldVisibility= JsonAutoDetect.Visibility.ANY,getterVisibility= JsonAutoDetect.Visibility.NONE) |
|||
public static class OrderDetail{ |
|||
|
|||
/** |
|||
* 存货编码 |
|||
*/ |
|||
@JsonProperty("cInvCode") |
|||
private String InvCode; |
|||
|
|||
/** |
|||
* 数量 |
|||
*/ |
|||
@JsonProperty("iQuantity") |
|||
private Long quantity; |
|||
|
|||
/** |
|||
* 含税单价 |
|||
*/ |
|||
@JsonProperty("iTaxUnitPrice") |
|||
private BigDecimal hasRatePrice; |
|||
|
|||
/** |
|||
* 价税合计 |
|||
*/ |
|||
@JsonProperty("iSum") |
|||
private BigDecimal hasRateSumPrice; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
@JsonProperty(value="cMemo") |
|||
private String remark; |
|||
|
|||
/** |
|||
* 税率 |
|||
*/ |
|||
@JsonProperty(value="iTaxRate") |
|||
private BigDecimal taxRate; |
|||
|
|||
/** |
|||
* 预发货日期 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
// @JsonProperty(value="dPreDate")
|
|||
@JsonProperty("dreleasedate") |
|||
private Date preShipmentsDate; |
|||
|
|||
/** |
|||
* 预完工日期 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonProperty(value="dPreMoDate") |
|||
private Date preFinishedDate; |
|||
|
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue