| | |
| | | package com.zy.asrs.entity.param; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | |
| | | * 状态 1: 正常 0: 禁用 |
| | | */ |
| | | private Integer status; |
| | | /** |
| | | * 高频入出库物料 |
| | | */ |
| | | private Boolean inoutEveryday; |
| | | |
| | | /** |
| | | * 上架区域{1:单品区,2:高频混放区,3:低频混放区} |
| | | */ |
| | | private Integer matType; |
| | | |
| | | /** |
| | | * 添加人员 |
| | |
| | | if (Cools.isEmpty(matParam.getMatnr())) { |
| | | throw new CoolException("商品编码不能为空"); |
| | | } |
| | | if (Cools.isEmpty(matParam.getInoutEveryday())) { |
| | | throw new CoolException("是否为高频入出库物料标识不能为空"); |
| | | } |
| | | if (Cools.isEmpty(matParam.getMatType())) { |
| | | throw new CoolException("上架区域不能为空"); |
| | | } |
| | | Date now = new Date(); |
| | | Mat mat = matService.selectByMatnr(matParam.getMatnr()); |
| | | if (mat == null) { |