Commit bd1abfc9 by huluobin

写采购订单 采购sku类型

parent 9d995da7
...@@ -58,6 +58,9 @@ public class PurchaseOrderCmdServiceImpl implements PurchaseOrderCmdService { ...@@ -58,6 +58,9 @@ public class PurchaseOrderCmdServiceImpl implements PurchaseOrderCmdService {
.createTime(new Date()) .createTime(new Date())
.status(1) .status(1)
.build(); .build();
if (purchaseOrder != null) {
purchaseOrder.setSkuTypeName(purchaseSkuType.getName());
}
purchaseOrderMapper.insert(purchaseOrder); purchaseOrderMapper.insert(purchaseOrder);
}); });
......
package com.gogirl.domain.product.purchase; package com.gogirl.domain.product.purchase;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -20,11 +22,14 @@ import java.time.LocalDateTime; ...@@ -20,11 +22,14 @@ import java.time.LocalDateTime;
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value="PurchaseSkuType对象", description="sku类型") @ApiModel(value = "PurchaseSkuType对象", description = "sku类型")
public class PurchaseSkuType implements Serializable { public class PurchaseSkuType implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
private Integer id;
@ApiModelProperty(value = "类型名称") @ApiModelProperty(value = "类型名称")
private String name; private String name;
......
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