台湾盘点测试

taiwan-lingli-new
yiming 4 years ago
parent f20a61d1ea
commit f21442807b

@ -31,16 +31,16 @@ public class TestService {
row = street.getRightRow();
column = street.getRightColumn();
}
String lotnum = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMDDHHmmss"));
for(int i = 1;i<=row;i++){
for(int j = 1; j<= column;j++){
String code = "J83572603";
if(j % 5==0){
if(j % 9==0){
code = "dsawqwe";
}
String taskId = i +"-"+ j+"-"+LocalDateTime.now().format(DateTimeFormatter.ofPattern("hhmmss"));
PlcCmdInfo plcCmdInfo = new PlcCmdInfo(street.getPlcId(),taskId,1,leftRight,j,i,1,1,1,1,1,1,"");
PlcCmdInfo plcCmdInfo = new PlcCmdInfo(street.getPlcId(),taskId,1,leftRight,j,i,1,1,1,1,1,1,lotnum);
plcCmdInfo.setTimes(1);
int co = j%3 + 1;
plcService.check(plcCmdInfo,"E"+co,code,code);

Loading…
Cancel
Save