Commit 95deb08c zshaohui

1.UID出库导出修改

2.pk列表排序
1 个父辈 90cd18ad
......@@ -619,7 +619,7 @@ public class Barcode extends BasePo implements Serializable {
return null;
}
public synchronized void UpdateSubCode(Barcode barcode) {
public void UpdateSubCode(Barcode barcode) {
if (subCodeList == null) {
subCodeList = Lists.newArrayList();
......@@ -644,7 +644,7 @@ public class Barcode extends BasePo implements Serializable {
}
}
public synchronized void removeFromSubCodes(Barcode subCode){
public void removeFromSubCodes(Barcode subCode){
if(subCodeList != null && subCodeList.size() > 0){
boolean removeOk = subCodeList.removeIf(t -> t.getBarcode().equals(subCode.getBarcode()));
if(removeOk){
......
......@@ -1020,12 +1020,15 @@ public class LiteOrderCache {
}
}
try {
Thread.sleep(10);
smfApi.canPutInAfterResolve(subCode);
} catch (ValidateException e) {
e.printStackTrace();
log.info(subCode.getBarcode()+"为禁用料,库位为:"+subCode.getPosName());
disablePosNameList.add(subCode.getPosName());
continue;
} catch (InterruptedException ex){
log.info("休眠10毫秒失败:"+ex.getMessage());
}
if (DisableBarcodeUtil.isDisable(subCode.getBarcode())){
......
......@@ -34,6 +34,7 @@ import com.neotel.smfcore.core.storage.service.po.StoragePos;
import com.neotel.smfcore.core.system.service.po.DataLog;
import com.neotel.smfcore.core.system.util.TaskService;
import com.neotel.smfcore.custom.lizhen.innerBox.enums.ExtendType;
import com.neotel.smfcore.custom.luxsan.factory_c.common.util.DisableBarcodeUtil;
import com.neotel.smfcore.custom.siemens.SiemensApi;
import com.neotel.smfcore.security.annotation.AnonymousAccess;
import io.swagger.annotations.Api;
......@@ -668,19 +669,20 @@ public class StoragePosController {
@Override
public List<List<String>> getHeader() {
List<List<String>> header = new ArrayList<>();
Locale locale = request.getLocale();
header.add(Lists.newArrayList(MessageUtils.getText("smfcore.storagePos.barcode",locale,"条码编号")));
header.add(Lists.newArrayList(MessageUtils.getText("",locale,"栈板id")));
header.add(Lists.newArrayList(MessageUtils.getText("smfcore.storagePos.partNumber",locale,"物料编号")));
header.add(Arrays.asList("状态"));
header.add(Lists.newArrayList(MessageUtils.getText("smfcore.storagePos.proDate",locale,"生产日期")));
header.add(Lists.newArrayList(MessageUtils.getText("smfcore.storagePos.expireDate",locale,"过期时间")));
header.add(Lists.newArrayList(MessageUtils.getText("smfcore.storagePos.posName",locale,"库位号")));
header.add(Lists.newArrayList(MessageUtils.getText("smfcore.storagePos.lockName",locale,"工单号")));
header.add(Lists.newArrayList(MessageUtils.getText("smfcore.storagePos.amount",locale,"数量")));
header.add(Lists.newArrayList(MessageUtils.getText("smfcore.storagePos.putInTime",locale,"首次入库时间")));
header.add(Lists.newArrayList(MessageUtils.getText("smfcore.storagePos.putInDate",locale,"入库时间")));
header.add(Arrays.asList("条码编号"));
header.add(Arrays.asList("labelId"));
header.add(Arrays.asList("料号"));
header.add(Arrays.asList("库别"));
header.add(Arrays.asList("批次"));
header.add(Arrays.asList("供应商"));
header.add(Arrays.asList("隔口号"));
header.add(Arrays.asList("DC"));
header.add(Arrays.asList("首次入库时间"));
header.add(Arrays.asList("入库时间"));
header.add(Arrays.asList("所属料箱"));
header.add(Arrays.asList("料箱所属架位"));
header.add(Arrays.asList("料箱是否在库"));
header.add(Arrays.asList("是否禁用"));
return header;
}
......@@ -688,37 +690,57 @@ public class StoragePosController {
public List<List<Object>> getPageData(Query query, Pageable pageable) {
List<List<Object>> dataList = new ArrayList<>();
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
List<Map<String, Object>> list = new ArrayList<>();
List<StoragePos> storagePos = storagePosManager.findByQuery(query,pageable);
for (StoragePos pos : storagePos) {
String proDate = pos.getBarcode().getProduceDate() == null ? "" : dateFormat.format(pos.getBarcode().getProduceDate());
String expireDate = pos.getBarcode().getExpireDate() == null ? "" : dateFormat.format(pos.getBarcode().getExpireDate());
Barcode barcode = pos.getBarcode();
List<Barcode> subCodeList = barcode.getSubCodeList();
if (subCodeList != null && !subCodeList.isEmpty()){
for (Barcode subCode : subCodeList) {
List<Object> data = new ArrayList<>();
data.add(subCode.getBarcode());
data.add(subCode.getLabelId());
data.add(subCode.getPartNumber());
data.add(subCode.getWarehouseCode());
data.add(subCode.getBatch());
data.add(subCode.getProvider());
data.add(subCode.getPosName());
data.add(subCode.getDateCode());
long putInTime = subCode.getPutInTime();
if (putInTime != -1){
data.add(dateFormat.format(putInTime));
} else {
data.add("");
}
String putInTime = (pos.getBarcode().getPutInTime() == -1) ? "" : dateFormat.format(new Date(pos.getBarcode().getPutInTime()));
if(ObjectUtil.isEmpty(putInTime)){
putInTime=dateFormat.format(pos.getBarcode().getCreateDate());
}
Date putInDate = subCode.getPutInDate();
if (putInDate != null){
data.add(dateFormat.format(putInDate));
} else {
data.add("");
}
List<Object> data = new ArrayList<>();
data.add(pos.getBarcode().getBarcode());
data.add(pos.getBarcode().getPalletId());
data.add(pos.getBarcode().getPartNumber());
data.add(barcode.getBarcode());
data.add(barcode.getPosName());
String statusStr = "";
if (pos.getBarcode().getStatus() == BARCODE_STATUS.IN_STORE){
statusStr = "在库";
}
int status = barcode.getStatus();
if (status == BARCODE_STATUS.IN_STORE){
data.add("在库");
} else {
data.add("");
}
if (DisableBarcodeUtil.isDisable(subCode.getBarcode())){
data.add("是");
} else {
data.add("");
}
data.add(statusStr);
data.add(proDate);
data.add(expireDate);
data.add(pos.getPosName());
data.add(pos.getBarcode().getLockName());
data.add(pos.getBarcode().getAmount());
data.add(putInTime);
data.add("");
dataList.add(data);
dataList.add(data);
}
}
}
return dataList;
}
......
......@@ -911,6 +911,7 @@ public class CDeviceController {
}
@Deprecated
@ApiOperation("物料放入料格,完成入库任务")
@RequestMapping("/finishedReelToBox")
@AnonymousAccess
......
......@@ -82,6 +82,7 @@ public class PkCheckOutController {
}
}
}
pickingResultList = pickingResultList.stream().sorted(Comparator.comparing(QueryPickingResult :: getCREATE_AT)).collect(Collectors.toList());
return ResultBean.newOkResult(QueryPickingDto.convertQueryPickingResultDto(pickingResultList));
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!