Commit bd1abfc9 by huluobin

写采购订单 采购sku类型

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