方向修改

滁州-烟草
LAPTOP-S9HJSOEB\昊天 2 years ago
parent 3c1d990ec0
commit c783678de8

@ -45,7 +45,7 @@ public class CheckLogSearch {
if(this.loc!=null){
this.streetPlc = this.loc.substring(0,3);
this.column = Integer.parseInt(this.loc.substring(4,7));
this.leftRight = Integer.parseInt(this.loc.substring(3,4));
this.leftRight = Integer.parseInt(this.loc.substring(3,4))==1?2:1;
this.row = Integer.parseInt(this.loc.substring(7,10));
}
return this;

@ -102,12 +102,20 @@ public class CheckLogService {
checkLogOne.setFlag("false");
checkLogOne.setFrom_tagid(search.getTagid());
if(checkLog != null){
if(checkLog.getCheckNum() !=null && !"".equals(checkLog.getCheckNum()) && checkLog.getCheckNum().split("_").length>1) {
checkLogOne.setJobnum(checkLog.getCheckNum().split("_")[1]);
}else {
checkLogOne.setJobnum(search.getJobnum().toString());
}
//图片
checkLogOne.setPicture_routesid(configProperties.getPicIpPort()+checkLog.getPic());
if(checkLog.getStatus()!= 1){
checkLogOne.setFlag("true");
if(search.getTagid() != null && !"".equals(search.getTagid())) {
checkLogOne.setTo_tagid(search.getTagid());
}else {
checkLogOne.setTo_tagid(checkLog.getTrayCode());
}
}
}
checkLogOnes.add(checkLogOne);

@ -699,6 +699,7 @@ public class PlcService {
checkLog.setRow(plcCmdInfo.getRow1());
checkLog.setColumn(plcCmdInfo.getColumn1());
checkLog.setWmsCode(plcCmdInfo.getCode());
checkLog.setCheckNum(plcCmdInfo.getOrderNum());
checkLog.setTaskId((plcCmdInfo.getTaskId()));
//默认未盘点

@ -90,6 +90,13 @@ public class KsecDecoder extends DelimiterBasedFrameDecoder {
return ;
}
KsecDataInfo dataInfo = ksecInfo.getData();
//滁州项目左右是1右2左在此处替换为1左2右
if(dataInfo.getFromDirection()!=null){
dataInfo.setFromDirection(dataInfo.getFromDirection()==1?2:1);
}
if(dataInfo.getToDirection()!=null){
dataInfo.setToDirection(dataInfo.getToDirection()==1?2:1);
}
LotnumConvert lotnumConvert = new LotnumConvert(dataInfo.getLotnum());
String lotnum = lotnumConvert.getLotnum();
dataInfo.setLotnum(lotnum);

Loading…
Cancel
Save