|  | @@ -299,7 +299,7 @@ module.exports = app => {
 | 
	
		
			
				|  |  |                  // 在生成新变更令后,需要copy前一个变更令报表的签名信息
 | 
	
		
			
				|  |  |                  const lastChange = await ctx.service.change.getLastChange(tenderId);
 | 
	
		
			
				|  |  |                  const change = await ctx.service.change.add(tenderId, ctx.session.sessionUser.accountId, data.code, data.plan_code, data.name, stateInfo.value);
 | 
	
		
			
				|  |  | -                await ctx.service.roleRptRel.createRoleRelationshipFromOtherBz(tenderId, '-300', change.cid, lastChange.cid);
 | 
	
		
			
				|  |  | +                await ctx.service.roleRptRel.createRoleRelationshipFromOtherBz(tenderId, '-300', change.cid, lastChange ? lastChange.cid : null);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                  ctx.body = { err: 0, msg: '', data: change };
 | 
	
		
			
				|  |  |              } catch (err) {
 |