@ -321,6 +321,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " FGStockIn " ) ;
erplog . setEventName ( " FGStockIn " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( makeFGStockIn ) ;
erplog . setSendMsg2 ( makeFGStockIn ) ;
erplog . setSendMsg2 ( makeFGStockIn ) ;
erplog . setSendMsg ( makeFGStockIn ) ;
erplog . setSendMsg ( makeFGStockIn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
@ -367,6 +368,7 @@ public class ToSAPServiceImpl {
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
/ / erplog . setMessageId ( undoId ) ;
/ / erplog . setMessageId ( undoId ) ;
erplog . setMessageId ( undoId ) ;
erplog . setMessageId ( undoId ) ;
erplog . setSendMsg ( makeFGStockIn ) ;
erplog . setSendMsg2 ( makeFGStockIn ) ;
erplog . setSendMsg2 ( makeFGStockIn ) ;
erplog . setSendMsg ( makeFGStockIn ) ;
erplog . setSendMsg ( makeFGStockIn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
@ -429,6 +431,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " FGStockIn " ) ;
erplog . setEventName ( " FGStockIn " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( RECEIVEACTNO ) ;
erplog . setMessageId ( RECEIVEACTNO ) ;
erplog . setSendMsg ( makeFGStockIn ) ;
erplog . setSendMsg2 ( makeFGStockIn ) ;
erplog . setSendMsg2 ( makeFGStockIn ) ;
erplog . setSendMsg ( makeFGStockIn ) ;
erplog . setSendMsg ( makeFGStockIn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
@ -486,6 +489,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " FGStockIn " ) ;
erplog . setEventName ( " FGStockIn " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( " " ) ;
erplog . setMessageId ( " " ) ;
erplog . setSendMsg ( bodyJson ) ;
erplog . setSendMsg2 ( bodyJson ) ;
erplog . setSendMsg2 ( bodyJson ) ;
erplog . setSendMsg ( bodyJson ) ;
erplog . setSendMsg ( bodyJson ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
@ -551,6 +555,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " CancelFGStockIn " ) ;
erplog . setEventName ( " CancelFGStockIn " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
/ / erplog . setMessageId ( RECEIVEACTNO ) ;
/ / erplog . setMessageId ( RECEIVEACTNO ) ;
erplog . setSendMsg ( makeCancelFGStockIn ) ;
erplog . setSendMsg2 ( makeCancelFGStockIn ) ;
erplog . setSendMsg2 ( makeCancelFGStockIn ) ;
erplog . setSendMsg ( makeCancelFGStockIn ) ;
erplog . setSendMsg ( makeCancelFGStockIn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
@ -878,6 +883,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " qtr " ) ;
erplog . setEventName ( " qtr " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( reActo ) ;
erplog . setMessageId ( reActo ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -959,6 +965,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " AlloctionStockIn " ) ;
erplog . setEventName ( " AlloctionStockIn " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( shipRequestName ) ;
erplog . setMessageId ( shipRequestName ) ;
erplog . setSendMsg ( makeAlloctionStockIn ) ;
erplog . setSendMsg2 ( makeAlloctionStockIn ) ;
erplog . setSendMsg2 ( makeAlloctionStockIn ) ;
erplog . setSendMsg ( makeAlloctionStockIn ) ;
erplog . setSendMsg ( makeAlloctionStockIn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
@ -1108,6 +1115,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " AlloctionStockIn " ) ;
erplog . setEventName ( " AlloctionStockIn " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( shipRequestName ) ;
erplog . setMessageId ( shipRequestName ) ;
erplog . setSendMsg ( makeAlloctionStockIn ) ;
erplog . setSendMsg2 ( makeAlloctionStockIn ) ;
erplog . setSendMsg2 ( makeAlloctionStockIn ) ;
erplog . setSendMsg ( makeAlloctionStockIn ) ;
erplog . setSendMsg ( makeAlloctionStockIn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
@ -1306,6 +1314,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " 调拨出库(NLCC) " ) ;
erplog . setEventName ( " 调拨出库(NLCC) " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -1424,6 +1433,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " SaleReturn " ) ;
erplog . setEventName ( " SaleReturn " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( shipRequestName ) ;
erplog . setMessageId ( shipRequestName ) ;
erplog . setSendMsg ( makeReturnMaterials ) ;
erplog . setSendMsg2 ( makeReturnMaterials ) ;
erplog . setSendMsg2 ( makeReturnMaterials ) ;
erplog . setSendMsg ( makeReturnMaterials ) ;
erplog . setSendMsg ( makeReturnMaterials ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
@ -1882,6 +1892,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " 生产领料出库261/311 " ) ;
erplog . setEventName ( " 生产领料出库261/311 " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -2469,7 +2480,8 @@ public class ToSAPServiceImpl {
}
}
log . info ( " SendTOSAP >>>> " + sendData ) ;
log . info ( " SendTOSAP >>>> " + sendData ) ;
String sapreturn = toSAPMessageUtil . sendHttpPost ( toSAPMessageUtil . materialChangeLocationUrl , " " , sendData . toJSONString ( ) ) ;
String sendDatas = sendData . toJSONString ( ) ;
String sapreturn = toSAPMessageUtil . sendHttpPost ( toSAPMessageUtil . materialChangeLocationUrl , " " , sendDatas ) ;
org . json . JSONObject receiveJsonObject = new org . json . JSONObject ( sapreturn ) ;
org . json . JSONObject receiveJsonObject = new org . json . JSONObject ( sapreturn ) ;
org . json . JSONObject returnJsonObject = ( org . json . JSONObject ) receiveJsonObject . get ( " RETURN " ) ;
org . json . JSONObject returnJsonObject = ( org . json . JSONObject ) receiveJsonObject . get ( " RETURN " ) ;
rcode = returnJsonObject . get ( " STATUS " ) . toString ( ) ;
rcode = returnJsonObject . get ( " STATUS " ) . toString ( ) ;
@ -2485,6 +2497,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " MES物料消耗261 " ) ;
erplog . setEventName ( " MES物料消耗261 " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -2645,6 +2658,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " 成本中心领料出库201 " ) ;
erplog . setEventName ( " 成本中心领料出库201 " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -2804,6 +2818,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " 研发( 内部订单) 领料出库Z61 " ) ;
erplog . setEventName ( " 研发( 内部订单) 领料出库Z61 " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -2940,6 +2955,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " 销售出库 " ) ;
erplog . setEventName ( " 销售出库 " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -3078,6 +3094,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " 调拨出库(NLCC) " ) ;
erplog . setEventName ( " 调拨出库(NLCC) " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -3212,6 +3229,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " 调拨出库(NLCC) " ) ;
erplog . setEventName ( " 调拨出库(NLCC) " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -3346,6 +3364,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " 调拨出库(NLCC) " ) ;
erplog . setEventName ( " 调拨出库(NLCC) " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -3502,6 +3521,7 @@ public class ToSAPServiceImpl {
erplog . setId ( uuid . toString ( ) ) ;
erplog . setId ( uuid . toString ( ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -3629,6 +3649,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " 盘点 " ) ;
erplog . setEventName ( " 盘点 " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -3795,6 +3816,7 @@ public class ToSAPServiceImpl {
erplog . setId ( uuid . toString ( ) ) ;
erplog . setId ( uuid . toString ( ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -3958,6 +3980,7 @@ public class ToSAPServiceImpl {
erplog . setId ( uuid . toString ( ) ) ;
erplog . setId ( uuid . toString ( ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -4107,6 +4130,7 @@ public class ToSAPServiceImpl {
erplog . setId ( uuid . toString ( ) ) ;
erplog . setId ( uuid . toString ( ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -4270,6 +4294,7 @@ public class ToSAPServiceImpl {
erplog . setId ( uuid . toString ( ) ) ;
erplog . setId ( uuid . toString ( ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -4418,6 +4443,7 @@ public class ToSAPServiceImpl {
erplog . setId ( uuid . toString ( ) ) ;
erplog . setId ( uuid . toString ( ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -4552,6 +4578,7 @@ public class ToSAPServiceImpl {
erplog . setId ( uuid . toString ( ) ) ;
erplog . setId ( uuid . toString ( ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -4674,6 +4701,7 @@ public class ToSAPServiceImpl {
erplog . setId ( uuid . toString ( ) ) ;
erplog . setId ( uuid . toString ( ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setSendMsg2 ( sendData . toJSONString ( ) ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;
@ -4698,20 +4726,20 @@ public class ToSAPServiceImpl {
* /
* /
public String ReturnStockInNew ( String siteName , String eventUser , String shipRequestName , String commitDate , String opCode ) throws Exception {
public String ReturnStockInNew ( String siteName , String eventUser , String shipRequestName , String commitDate , String opCode ) throws Exception {
String sql = " SELECT T.RECEIVEREQUESTNAME , " + SystemPropHelper . CR +
String sql = " SELECT T.RECEIVEREQUESTNAME , " + SystemPropHelper . CR +
" T. PRODUCTORDER," + SystemPropHelper . CR +
" D.REQUESTNAME PRODUCTORDER," + SystemPropHelper . CR +
" T.ERPFACTORY, " + SystemPropHelper . CR +
" T.ERPFACTORY, " + SystemPropHelper . CR +
" T.ERPLOCATION, " + SystemPropHelper . CR +
" T.ERPLOCATION, " + SystemPropHelper . CR +
" T.MATERIALSPECNAME, " + SystemPropHelper . CR +
" T.MATERIALSPECNAME, " + SystemPropHelper . CR +
" T.UNIT, " + SystemPropHelper . CR +
" T.UNIT, " + SystemPropHelper . CR +
" T.PACKINGGRADE, " + SystemPropHelper . CR +
" T.PACKINGGRADE, " + SystemPropHelper . CR +
" SUM(T.MATERIALQUANTITY) AS MATERIALQUANTITY " + SystemPropHelper . CR +
" SUM(T.MATERIALQUANTITY) AS MATERIALQUANTITY " + SystemPropHelper . CR +
" FROM MATERIALPACKING T " + SystemPropHelper . CR +
" FROM MATERIALPACKING T LEFT JOIN BS_MES_SHIPPED D ON D.LOTNAME = T.MATERIALPACKINGNAME " + SystemPropHelper . CR +
" WHERE 1 = 1 " + SystemPropHelper . CR +
" WHERE 1 = 1 " + SystemPropHelper . CR +
" AND T.receiveActNo = :SHIPREQUESTNAME " + SystemPropHelper . CR +
" AND T.receiveActNo = :SHIPREQUESTNAME " + SystemPropHelper . CR +
" AND T.SITENAME = :SITENAME " + SystemPropHelper . CR +
" AND T.SITENAME = :SITENAME " + SystemPropHelper . CR +
" AND T.STOCKSTATE = 'Created' " + SystemPropHelper . CR +
" AND T.STOCKSTATE = 'Created' " + SystemPropHelper . CR +
" GROUP BY T.RECEIVEREQUESTNAME, T.PRODUCTORDER , T.ERPFACTORY,T.ERPLOCATION, " + SystemPropHelper . CR +
" GROUP BY T.RECEIVEREQUESTNAME, D.REQUESTNAME , T.ERPFACTORY,T.ERPLOCATION, " + SystemPropHelper . CR +
" T.MATERIALSPECNAME,T.UNIT, PACKINGGRADE " ;
" T.MATERIALSPECNAME,T.UNIT, T. PACKINGGRADE " ;
Map < String , Object > hashMap = new HashMap < String , Object > ( ) ;
Map < String , Object > hashMap = new HashMap < String , Object > ( ) ;
hashMap . put ( " SITENAME " , siteName ) ;
hashMap . put ( " SITENAME " , siteName ) ;
/ / hashMap . put ( " SHIPREQUESTNAME " , shipRequestName ) ;
/ / hashMap . put ( " SHIPREQUESTNAME " , shipRequestName ) ;
@ -4746,6 +4774,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " ReturnStockIn " ) ;
erplog . setEventName ( " ReturnStockIn " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( shipRequestName ) ;
erplog . setMessageId ( shipRequestName ) ;
erplog . setSendMsg ( makeReturnStockIn ) ;
erplog . setSendMsg2 ( makeReturnStockIn ) ;
erplog . setSendMsg2 ( makeReturnStockIn ) ;
erplog . setSendMsg ( makeReturnStockIn ) ;
erplog . setSendMsg ( makeReturnStockIn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
@ -4884,6 +4913,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " PurStockIn " ) ;
erplog . setEventName ( " PurStockIn " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( shipRequestName ) ;
erplog . setMessageId ( shipRequestName ) ;
erplog . setSendMsg ( moveLibraryInfo ) ;
erplog . setSendMsg2 ( moveLibraryInfo ) ;
erplog . setSendMsg2 ( moveLibraryInfo ) ;
erplog . setSendMsg ( moveLibraryInfo ) ;
erplog . setSendMsg ( moveLibraryInfo ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
@ -4956,6 +4986,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " PurStockIn " ) ;
erplog . setEventName ( " PurStockIn " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( shipRequestName ) ;
erplog . setMessageId ( shipRequestName ) ;
erplog . setSendMsg ( moveLibraryInfo ) ;
erplog . setSendMsg2 ( moveLibraryInfo ) ;
erplog . setSendMsg2 ( moveLibraryInfo ) ;
erplog . setSendMsg ( moveLibraryInfo ) ;
erplog . setSendMsg ( moveLibraryInfo ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
@ -5130,6 +5161,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " iqcResultFeekback " ) ;
erplog . setEventName ( " iqcResultFeekback " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData ) ;
erplog . setSendMsg2 ( sendData ) ;
erplog . setSendMsg2 ( sendData ) ;
erplog . setSendMsg ( sendData ) ;
erplog . setSendMsg ( sendData ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
@ -5228,6 +5260,7 @@ public class ToSAPServiceImpl {
erplog . setEventName ( " QMSResultFeekback " ) ;
erplog . setEventName ( " QMSResultFeekback " ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setInterfaceTime ( TimeStampUtil . getCurrentTime ( TimeStampUtil . FORMAT_DEFAULT ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setMessageId ( UUID . randomUUID ( ) . toString ( ) ) ;
erplog . setSendMsg ( sendData ) ;
erplog . setSendMsg2 ( sendData ) ;
erplog . setSendMsg2 ( sendData ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setReturnMsg2 ( sapreturn ) ;
erplog . setResultCode ( rcode ) ;
erplog . setResultCode ( rcode ) ;