Commit 9ac80870 LN

无回温库位时打印日志

1 个父辈 f5c9ab94
......@@ -40,12 +40,17 @@ public class CodeResolve {
private boolean useSizeConfirm = true;
public void updateBarcodeRuleList(List<String> ruleList){
barcodeRuleList = Lists.newArrayList();
for(String codeRule : ruleList){
if(!Strings.isNullOrEmpty(codeRule)){
barcodeRuleList.add(BarcodeRule.newRule(codeRule));
public void updateBarcodeRuleList(List<String> ruleList) {
try {
barcodeRuleList = Lists.newArrayList();
for (String codeRule : ruleList) {
if (!Strings.isNullOrEmpty(codeRule)) {
barcodeRuleList.add(BarcodeRule.newRule(codeRule));
}
}
} catch (Exception ex) {
log.error("updateBarcodeRuleList出错:" + ex.toString());
}
}
......
......@@ -258,6 +258,8 @@ public class SolderBoxCache {
puttingTask.setType(OP.REWARM_PUTTING);
//puttingTask = dataLogDao.save(puttingTask);
taskService.addTaskToExecute(puttingTask);
}else{
log.error(barcode.getBarcode() + "创建回温移库任务失败:未找到回温库位");
}
} catch (ValidateException e) {
log.info(barcode.getBarcode() + "查找回温库位失败");
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!