Merge remote-tracking branch 'upstream/test' into test
commit
35abd70bae
@ -0,0 +1,45 @@
|
||||
package cn.estsh.i3plus.pojo.model.wms;
|
||||
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsMoveDetails;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description : move物料明细model
|
||||
* @Reference :
|
||||
* @Author : junsheng.li
|
||||
* @CreateDate 2021/10/28 16:03
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Api("move物料明细model")
|
||||
//@NoArgsConstructor
|
||||
public class WmsMovePartModel extends WmsMoveDetails {
|
||||
|
||||
private static final long serialVersionUID = 3308814792807712395L;
|
||||
|
||||
@ApiParam("主表ID")
|
||||
public Long masterId;
|
||||
|
||||
@ApiParam("产线/工作中心")
|
||||
public String workCenterCode;
|
||||
|
||||
public WmsMovePartModel() {}
|
||||
|
||||
public WmsMovePartModel(Long masterId, String workCenterCode, WmsMovePartModel model) {
|
||||
this.masterId = masterId;
|
||||
this.workCenterCode = workCenterCode;
|
||||
this.id = model.getId();
|
||||
this.partNo = model.getPartNo();
|
||||
this.partNameRdd = model.getPartNameRdd();
|
||||
this.transQty = model.getTransQty();
|
||||
this.handledQty = model.getHandledQtyVal();
|
||||
this.srcZoneNo = model.getSrcZoneNo();
|
||||
this.refSrc = model.getRefSrc();
|
||||
this.orderNo = model.getOrderNo();
|
||||
this.item = model.getItem();
|
||||
this.unit = model.getUnit();
|
||||
this.itemStatus = model.getItemStatus();
|
||||
}
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package cn.estsh.i3plus.pojo.model.wms;
|
||||
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsMoveMaster;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsMoveSn;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsStockSn;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsWorkCenterZone;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description : 原材料扣减model
|
||||
* @Reference :
|
||||
* @Author : junsheng.li
|
||||
* @CreateDate 2021/10/27 11:37
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Api("原材料扣减model")
|
||||
@NoArgsConstructor
|
||||
public class WmsProdModel implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4743847310569744772L;
|
||||
|
||||
@ApiParam("move明细集合")
|
||||
public List<WmsMovePartModel> movePartList;
|
||||
|
||||
@ApiParam("产线/工作中心集合")
|
||||
public List<WmsWorkCenterZone> workCenterInCodeList;
|
||||
|
||||
@ApiParam("记录主表,报错信息")
|
||||
Map<Long, WmsMoveMaster> errorMasterMap;
|
||||
|
||||
//按存储区加物料分组partNo+zoneNo
|
||||
Map<String, List<WmsStockSn>> partZoneStockSnOrderByFifoListMap;
|
||||
|
||||
String organizeCode;
|
||||
|
||||
//本次需要扣减的move物料明细
|
||||
List<WmsMovePartModel> newPartMoveDetailList;
|
||||
|
||||
//产线对应多个存储区ListMap集合
|
||||
Map<String, List<String>> workCenterToZoneListMap;
|
||||
|
||||
List<WmsMovePartModel> partMoveDetailList;
|
||||
|
||||
//更新move条码集合
|
||||
List<WmsMoveSn> toInsertMoveSnList;
|
||||
|
||||
//记录move主表masterId对应的move明细(待处理)个数
|
||||
Map<Long, Integer> countMoveItemStatusMap;
|
||||
|
||||
//记录主表,报错信息(没有符合条件的扣减条码)
|
||||
Map<Long, WmsMoveMaster> errorToUpdateMasterMap;
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
package cn.estsh.i3plus.pojo.softswitch.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ns
|
||||
* @create 2021/12/5 0005 下午 15:18
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "BS_SUIT_DUPLICATE_RECORD",indexes = {
|
||||
@Index(name="bs_suit_request_record_suit_record_id_idx",columnList = "SUIT_RECORD_ID"),
|
||||
})
|
||||
@ApiModel(value = "适配中出现报文重复记录", description = "适配中出先报文重复记录")
|
||||
public class BsSuitDuplicateRecord extends BaseBean {
|
||||
|
||||
@Column(name = "SUIT_RECORD_ID")
|
||||
@ApiParam(value = "适配记录id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long suitRecordId;
|
||||
|
||||
@Column(name = "SUIT_CASE_ID")
|
||||
@ApiParam(value = "适配器套件id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long suitCaseId;
|
||||
|
||||
@Column(name = "REQUEST_SOURCE")
|
||||
@ApiParam(value = "请求来源(枚举)")
|
||||
private Integer requestSource;
|
||||
|
||||
// 移动至记录数据表
|
||||
@Column(name = "REQUEST_ORGIN_PARAM")
|
||||
@ApiParam(value = "请求原始参数")
|
||||
private String requestOrginParam;
|
||||
|
||||
@Column(name = "REQUEST_ID")
|
||||
@ApiParam(value = "请求id")
|
||||
private String requestId;
|
||||
|
||||
@Column(name = "BUSI_ID_LIST")
|
||||
@ApiParam(value = "业务id列表")
|
||||
private String busiIdList;
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.softswitch.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitDuplicateRecord;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : 重复报文记录
|
||||
* @Reference :
|
||||
* @Author : ns
|
||||
* @CreateDate : 2021-12-05 15:13
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface BsSuitDuplicateRecordRepository extends BaseRepository<BsSuitDuplicateRecord,Long> {
|
||||
}
|
Loading…
Reference in New Issue