|
@@ -121,6 +121,11 @@ public class EquipTerminalServiceImpl implements EquipTerminalService {
|
|
}
|
|
}
|
|
String dealCount = i < 10 ? ("0" + i) : i + "";
|
|
String dealCount = i < 10 ? ("0" + i) : i + "";
|
|
serialStr = equip.getSerialNo() + dealCount;
|
|
serialStr = equip.getSerialNo() + dealCount;
|
|
|
|
+ if(serialStr.length() < 12){
|
|
|
|
+ for(int p =0 ;p < 12 - serialStr.length(); p++){
|
|
|
|
+ serialStr = "0" + serialStr;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
socket.setSerialNo(serialStr);
|
|
socket.setSerialNo(serialStr);
|
|
socket.setEquipTerminalId(terminal.getTerminalId());
|
|
socket.setEquipTerminalId(terminal.getTerminalId());
|
|
socket.setSocketStatus(SocketStatus.IDLE.getId());//插座状态初始化?
|
|
socket.setSocketStatus(SocketStatus.IDLE.getId());//插座状态初始化?
|
|
@@ -219,6 +224,11 @@ public class EquipTerminalServiceImpl implements EquipTerminalService {
|
|
}
|
|
}
|
|
String dealCount = i < 10 ? ("0" + i) : i + "";
|
|
String dealCount = i < 10 ? ("0" + i) : i + "";
|
|
serialStr = serialNo + dealCount;
|
|
serialStr = serialNo + dealCount;
|
|
|
|
+ if(serialStr.length() < 12){
|
|
|
|
+ for(int p =0 ;p < 12 - serialStr.length(); p++){
|
|
|
|
+ serialStr = "0" + serialStr;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
socket.setSerialNo(serialStr);
|
|
socket.setSerialNo(serialStr);
|
|
socket.setEquipTerminalId(terminal.getTerminalId());
|
|
socket.setEquipTerminalId(terminal.getTerminalId());
|
|
socket.setSocketStatus(SocketStatus.IDLE.getId());//插座状态初始化?
|
|
socket.setSocketStatus(SocketStatus.IDLE.getId());//插座状态初始化?
|