Jiaqi.xu

BASF接口

...@@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate; ...@@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
10 import javax.persistence.*; 10 import javax.persistence.*;
11 import javax.validation.Valid; 11 import javax.validation.Valid;
12 import javax.validation.constraints.NotBlank; 12 import javax.validation.constraints.NotBlank;
13 +import javax.validation.constraints.NotNull;
13 import java.io.Serializable; 14 import java.io.Serializable;
14 import java.util.List; 15 import java.util.List;
15 16
...@@ -50,7 +51,8 @@ public class Basfc implements Serializable { ...@@ -50,7 +51,8 @@ public class Basfc implements Serializable {
50 51
51 @ApiModelProperty(value = "运单ID", name = "consignmentId", example = "运单记录的唯一ID") 52 @ApiModelProperty(value = "运单ID", name = "consignmentId", example = "运单记录的唯一ID")
52 @Column(name = "CONSIGNMENTID") 53 @Column(name = "CONSIGNMENTID")
53 - @NotBlank(message="参数consignmentId不能为空!") 54 + @NotNull(message="参数consignmentId不能为空!")
55 +// @NotBlank(message="参数consignmentId不能为空!")
54 private Long consignmentId; 56 private Long consignmentId;
55 57
56 @ApiModelProperty(value = "运单类型",name = "consType", example = "A/B/C/D") 58 @ApiModelProperty(value = "运单类型",name = "consType", example = "A/B/C/D")
......
...@@ -30,8 +30,8 @@ public class BasfcDetail { ...@@ -30,8 +30,8 @@ public class BasfcDetail {
30 private Long basfId; 30 private Long basfId;
31 31
32 @Column(name="CONSIGNMENTDETAILID") 32 @Column(name="CONSIGNMENTDETAILID")
33 - @NotBlank(message="参数consignmentDetailId不能为空") 33 + @NotNull(message="参数consignmentDetailId不能为空")
34 - private String consignmentDetailId; 34 + private Long consignmentDetailId;
35 35
36 @ApiModelProperty(value = "商品编号") 36 @ApiModelProperty(value = "商品编号")
37 @NotBlank(message="参数skuCode不能为空") 37 @NotBlank(message="参数skuCode不能为空")
......
...@@ -80,7 +80,7 @@ public class BasfService { ...@@ -80,7 +80,7 @@ public class BasfService {
80 if (basfc.getBasfcDetailList().size()>0){ 80 if (basfc.getBasfcDetailList().size()>0){
81 for (BasfcDetail basfcDetail : basfc.getBasfcDetailList()){ 81 for (BasfcDetail basfcDetail : basfc.getBasfcDetailList()){
82 BasfMawbDetail mawbDetail = new BasfMawbDetail(); 82 BasfMawbDetail mawbDetail = new BasfMawbDetail();
83 - mawbDetail.setDetailId(basfcDetail.getConsignmentDetailId()); 83 + mawbDetail.setDetailId(String.valueOf(basfcDetail.getConsignmentDetailId()));
84 mawbDetail.setGmodel(basfcDetail.getModel()); 84 mawbDetail.setGmodel(basfcDetail.getModel());
85 mawbDetail.setCodeTS(basfcDetail.getSkuCode()); 85 mawbDetail.setCodeTS(basfcDetail.getSkuCode());
86 mawbDetail.setGname(basfcDetail.getSkuName()); 86 mawbDetail.setGname(basfcDetail.getSkuName());
......