@ -353,15 +353,15 @@ public class RequestManageServiceImpl extends ServiceImpl<RequestManageMapper, P
for ( ProcessFormVo inData : data . getInformationList ( ) ) {
for ( ProcessFormVo inData : data . getInformationList ( ) ) {
String requestId = inData . getRequestId ( ) ;
String requestId = inData . getRequestId ( ) ;
/ / 获取上一个节点的i d
String previousNode Id ;
try {
int numericNodeId = Integer . parseInt ( inData . getNodeId ( ) ) ;
previousNode Id = String . valueOf ( numericNodeId - 1 ) ;
} catch ( NumberFormatException e ) {
throw new RuntimeException ( "节点ID不能转为整数: " + inData . getNodeId ( ) , e ) ;
}
List < ProcessFormVo > previousProcessList = requestManageMapper . getThePreviousProcessInfo ( inData . getSite ( ) , inData . getBu ( ) , inData . getDocumentNo ( ) , previousNodeId ) ;
/ / 获取上一个节点的stepI d
/ / String previousStep Id ;
/ / try {
/ / int numericNodeId = Integer . parseInt ( inData . getNodeId ( ) ) ;
/ / previousStep Id = String . valueOf ( numericNodeId - 1 ) ;
/ / } catch ( NumberFormatException e ) {
/ / throw new RuntimeException ( "节点ID不能转为整数: " + inData . getNodeId ( ) , e ) ;
/ / }
List < ProcessFormVo > previousProcessList = requestManageMapper . getThePreviousProcessInfo ( inData . getSite ( ) , inData . getBu ( ) , inData . getDocumentNo ( ) , inData . getStepId ( ) - 10 ) ;
if ( previousProcessList . isEmpty ( ) ) {
if ( previousProcessList . isEmpty ( ) ) {
throw new RuntimeException ( "不存在上一个节点的流程流转信息!" ) ;
throw new RuntimeException ( "不存在上一个节点的流程流转信息!" ) ;
}
}
@ -405,7 +405,7 @@ public class RequestManageServiceImpl extends ServiceImpl<RequestManageMapper, P
vo . setDocumentNo ( inData . getDocumentNo ( ) ) ;
vo . setDocumentNo ( inData . getDocumentNo ( ) ) ;
vo . setNodeConclusion ( "同意" ) ;
vo . setNodeConclusion ( "同意" ) ;
vo . setRejectOpinion ( "" ) ;
vo . setRejectOpinion ( "" ) ;
vo . setNodeId ( previousNodeId ) ;
vo . setNodeId ( previousProcessList . get ( 0 ) . get NodeId ( ) ) ;
vo . setProcessFlag ( data . getProcessFlag ( ) ) ;
vo . setProcessFlag ( data . getProcessFlag ( ) ) ;
if ( Constant . ECN . equals ( inData . getDocumentType ( ) ) ) {
if ( Constant . ECN . equals ( inData . getDocumentType ( ) ) ) {
changeManagementService . submitChangeToFlow ( vo ) ;
changeManagementService . submitChangeToFlow ( vo ) ;