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