|
|
@ -143,9 +143,9 @@ public class PdaServiceImpl implements IPdaBindingService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public String messageNotifications(String userName) {
|
|
|
|
public String messageNotifications(String userName) {
|
|
|
|
List<HashMap<String, String>> barcodeList = mapper.messageNotifications(userName);
|
|
|
|
|
|
|
|
String resultMessage = null;
|
|
|
|
String resultMessage = null;
|
|
|
|
StringBuilder boxCode = null;
|
|
|
|
StringBuilder boxCode = null;
|
|
|
|
|
|
|
|
List<HashMap<String, String>> barcodeList = mapper.messageNotifications(userName);
|
|
|
|
for (HashMap<String, String> map : barcodeList) {
|
|
|
|
for (HashMap<String, String> map : barcodeList) {
|
|
|
|
String userNames = map.get("INSPECTION_USER_CODE");
|
|
|
|
String userNames = map.get("INSPECTION_USER_CODE");
|
|
|
|
if (userNames.equals("NULL")){
|
|
|
|
if (userNames.equals("NULL")){
|
|
|
@ -161,12 +161,15 @@ public class PdaServiceImpl implements IPdaBindingService {
|
|
|
|
recordExceptionProcess.setInspectionUserCode(userNames);
|
|
|
|
recordExceptionProcess.setInspectionUserCode(userNames);
|
|
|
|
recordExceptionProcessService.updateRecordExceptionProcess(recordExceptionProcess);
|
|
|
|
recordExceptionProcessService.updateRecordExceptionProcess(recordExceptionProcess);
|
|
|
|
if (boxCode == null){
|
|
|
|
if (boxCode == null){
|
|
|
|
boxCode = new StringBuilder(map.get("BOX_BARCODE"));
|
|
|
|
boxCode = new StringBuilder(map.get("BOX_BARCODE")).append("(位置:").append(map.get("TEAM_NAME")).append(")");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
boxCode.append(",").append(map.get("BOX_BARCODE"));
|
|
|
|
boxCode.append(",").append(map.get("BOX_BARCODE")).append("(位置:").append(map.get("TEAM_NAME")).append(")");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (boxCode != null){
|
|
|
|
resultMessage = boxCode + "已审批完成,请进行降级处理!";
|
|
|
|
resultMessage = boxCode + "已审批完成,请进行降级处理!";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
System.out.println("PDA降级消息通知:" + resultMessage);
|
|
|
|
return resultMessage;
|
|
|
|
return resultMessage;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|