| | |
| | | * 播种墙库位容器码
|
| | | */
|
| | | @ApiModelProperty(value = "播种墙库位容器码")
|
| | | @TableField(updateStrategy = FieldStrategy.IGNORED)
|
| | | private String barcode;
|
| | |
|
| | | public CacheSite() {}
|
| | |
|
| | | public CacheSite(String siteNo,Integer siteStatus,Long orderId,String orderNo,Long hostId,Integer status,Integer deleted,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) {
|
| | | public CacheSite(String siteNo,Integer siteStatus,Long orderId,String orderNo,Long hostId,Integer status, String barcode,Integer deleted,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) {
|
| | | this.siteNo = siteNo;
|
| | | this.siteStatus = siteStatus;
|
| | | this.orderId = orderId;
|
| | | this.orderNo = orderNo;
|
| | | this.barcode = barcode;
|
| | | this.hostId = hostId;
|
| | | this.status = status;
|
| | | this.deleted = deleted;
|
| | |
| | | if (Objects.isNull(order)) {
|
| | | throw new CoolException("绑定订单不存在!!");
|
| | | }
|
| | | siteNo.setOrderNo(order.getOrderNo()).setOrderId(order.getId()).setSiteStatus(CacheSiteStatusType.R.id).setBarcode(param.get("barcode").toString());
|
| | | siteNo.setOrderNo(order.getOrderNo())
|
| | | .setOrderId(order.getId())
|
| | | .setSiteStatus(CacheSiteStatusType.R.id)
|
| | | .setBarcode(param.get("barcode").toString());
|
| | | if (cacheSiteMapper.updateById(siteNo) < 1) {
|
| | | throw new CoolException("订单播种位绑定失败!!" );
|
| | | }
|
| | |
| | | if (StringUtil.isNullOrEmpty(siteNo.getOrderNo())) {
|
| | | throw new CoolException("当前播种站点未绑定订单!!");
|
| | | }
|
| | | siteNo.setOrderId(null).setOrderNo(null).setSiteNo("0");
|
| | | siteNo.setOrderId(null).setOrderNo(null).setBarcode(null).setSiteNo("0");
|
| | | if (cacheSiteMapper.updateById(siteNo) < 1) {
|
| | | throw new CoolException("订单与播种位解绑失败!!" );
|
| | | }
|