Commit 9ac80870 LN

无回温库位时打印日志

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