|
|
|
@ -19,7 +19,7 @@ public class Result {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static String success(String serialId){
|
|
|
|
|
public static String success(String serialId,String receive,String send){
|
|
|
|
|
|
|
|
|
|
String createTime= Func.format(new Date(), DateUtil.PATTERN_DATETIME_MINI);
|
|
|
|
|
|
|
|
|
@ -35,14 +35,14 @@ public class Result {
|
|
|
|
|
" <receiver typeCode=\"RCV\"> \n" +
|
|
|
|
|
" <device classCode=\"DEV\" determinerCode=\"INSTANCE\"> \n" +
|
|
|
|
|
" <id> \n" +
|
|
|
|
|
" <item extension=\"@111\"/> \n" +
|
|
|
|
|
" <item extension=\""+receive+"\"/> \n" +
|
|
|
|
|
" </id> \n" +
|
|
|
|
|
" </device> \n" +
|
|
|
|
|
" </receiver> \n" +
|
|
|
|
|
" <sender typeCode=\"SND\"> \n" +
|
|
|
|
|
" <device classCode=\"DEV\" determinerCode=\"INSTANCE\"> \n" +
|
|
|
|
|
" <id> \n" +
|
|
|
|
|
" <item extension=\"@222\"/> \n" +
|
|
|
|
|
" <item extension=\""+send+"\"/> \n" +
|
|
|
|
|
" </id> \n" +
|
|
|
|
|
" </device> \n" +
|
|
|
|
|
" </sender> \n" +
|
|
|
|
@ -57,7 +57,7 @@ public class Result {
|
|
|
|
|
" </acknowledgement> \n" +
|
|
|
|
|
"</MCCI_IN000002UV01>\n";
|
|
|
|
|
}
|
|
|
|
|
public static String failed(String serialId,String message){
|
|
|
|
|
public static String failed(String serialId,String message,String receive,String send){
|
|
|
|
|
|
|
|
|
|
String createTime= Func.format(new Date(), DateUtil.PATTERN_DATETIME_MINI);
|
|
|
|
|
|
|
|
|
@ -72,14 +72,14 @@ public class Result {
|
|
|
|
|
" <receiver typeCode=\"RCV\"> \n" +
|
|
|
|
|
" <device classCode=\"DEV\" determinerCode=\"INSTANCE\"> \n" +
|
|
|
|
|
" <id> \n" +
|
|
|
|
|
" <item extension=\"@111\"/> \n" +
|
|
|
|
|
" <item extension=\""+receive+"\"/> \n" +
|
|
|
|
|
" </id> \n" +
|
|
|
|
|
" </device> \n" +
|
|
|
|
|
" </receiver> \n" +
|
|
|
|
|
" <sender typeCode=\"SND\"> \n" +
|
|
|
|
|
" <device classCode=\"DEV\" determinerCode=\"INSTANCE\"> \n" +
|
|
|
|
|
" <id> \n" +
|
|
|
|
|
" <item extension=\"@222\"/> \n" +
|
|
|
|
|
" <item extension=\""+send+"\"/> \n" +
|
|
|
|
|
" </id> \n" +
|
|
|
|
|
" </device> \n" +
|
|
|
|
|
" </sender> \n" +
|
|
|
|
|