|  | @@ -13,9 +13,11 @@ import com.ruoyi.common.core.domain.AjaxResult;
 | 
	
		
			
				|  |  |  import com.ruoyi.common.core.domain.entity.SysUser;
 | 
	
		
			
				|  |  |  import com.ruoyi.common.core.domain.model.LoginUser;
 | 
	
		
			
				|  |  |  import com.ruoyi.common.utils.StringUtils;
 | 
	
		
			
				|  |  | +import com.ruoyi.finance.service.impl.TFeeServiceImpl;
 | 
	
		
			
				|  |  |  import com.ruoyi.system.mapper.SysUserMapper;
 | 
	
		
			
				|  |  |  import com.ruoyi.warehouseBusiness.domain.TWarehouseBills;
 | 
	
		
			
				|  |  |  import com.ruoyi.warehouseBusiness.mapper.TWarehouseBillsMapper;
 | 
	
		
			
				|  |  | +import com.ruoyi.warehouseBusiness.service.impl.TWarehouseAgreementServiceImpl;
 | 
	
		
			
				|  |  |  import com.ruoyi.warehouseBusiness.service.impl.TWarehouseBillsServiceImpl;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
	
		
			
				|  | @@ -54,6 +56,14 @@ public class AuditPathsServiceImpl implements IAuditPathsService {
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private TWarehouseBillsServiceImpl tWarehouseBillsService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private TFeeServiceImpl tFeeServiceImpl;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private TWarehouseAgreementServiceImpl tWarehouseAgreementService;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 查询审批流配置主
 | 
	
		
			
				|  |  |       *
 | 
	
	
		
			
				|  | @@ -304,6 +314,32 @@ public class AuditPathsServiceImpl implements IAuditPathsService {
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      } else if (auditItems.getActId() >= 210 && auditItems.getActId() <= 230) {
 | 
	
		
			
				|  |  |                          // 财务模块
 | 
	
		
			
				|  |  | +                        if ("T".equals(at.getIffinalItem())) {
 | 
	
		
			
				|  |  | +                            fettle = 6L;
 | 
	
		
			
				|  |  | +                        } else if ("F".equals(at.getIffinalItem())) {
 | 
	
		
			
				|  |  | +                            fettle = 5L;
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                        // 变更财务状态
 | 
	
		
			
				|  |  | +                        AjaxResult ajaxResult = tFeeServiceImpl.tfeeFollow(auditItems.getBillId(), fettle);
 | 
	
		
			
				|  |  | +                        String code = (String) ajaxResult.get("code");
 | 
	
		
			
				|  |  | +                        if ("500".equals(code)) {
 | 
	
		
			
				|  |  | +                            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
 | 
	
		
			
				|  |  | +                            return ajaxResult;
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    } else if (auditItems.getActId() >= 310 && auditItems.getActId() <= 320) {
 | 
	
		
			
				|  |  | +                        // 财务模块
 | 
	
		
			
				|  |  | +                        if ("T".equals(at.getIffinalItem())) {
 | 
	
		
			
				|  |  | +                            fettle = 6L;
 | 
	
		
			
				|  |  | +                        } else if ("F".equals(at.getIffinalItem())) {
 | 
	
		
			
				|  |  | +                            fettle = 5L;
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                        // 变更财务状态
 | 
	
		
			
				|  |  | +                        AjaxResult ajaxResult = tWarehouseAgreementService.agreementFollow(auditItems.getBillId(), fettle);
 | 
	
		
			
				|  |  | +                        String code = (String) ajaxResult.get("code");
 | 
	
		
			
				|  |  | +                        if ("500".equals(code)) {
 | 
	
		
			
				|  |  | +                            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
 | 
	
		
			
				|  |  | +                            return ajaxResult;
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      break;
 | 
	
		
			
				|  |  |                  }
 | 
	
	
		
			
				|  | @@ -334,7 +370,23 @@ public class AuditPathsServiceImpl implements IAuditPathsService {
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              return ajaxResult;
 | 
	
		
			
				|  |  |          } else if (auditItems.getActId() >= 210 && auditItems.getActId() <= 230) {
 | 
	
		
			
				|  |  | +            fettle = 3L;
 | 
	
		
			
				|  |  |              // 财务模块
 | 
	
		
			
				|  |  | +            AjaxResult ajaxResult = tFeeServiceImpl.tfeeFollow(auditItems.getBillId(), fettle);
 | 
	
		
			
				|  |  | +            String code = (String) ajaxResult.get("code");
 | 
	
		
			
				|  |  | +            if ("500".equals(code)) {
 | 
	
		
			
				|  |  | +                TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            return ajaxResult;
 | 
	
		
			
				|  |  | +        } else if (auditItems.getActId() >= 310 && auditItems.getActId() <= 320) {
 | 
	
		
			
				|  |  | +            fettle = 3L;
 | 
	
		
			
				|  |  | +            // 协议模块
 | 
	
		
			
				|  |  | +            AjaxResult ajaxResult = tWarehouseAgreementService.agreementFollow(auditItems.getBillId(), fettle);
 | 
	
		
			
				|  |  | +            String code = (String) ajaxResult.get("code");
 | 
	
		
			
				|  |  | +            if ("500".equals(code)) {
 | 
	
		
			
				|  |  | +                TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            return ajaxResult;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          AuditItems item = new AuditItems();
 | 
	
		
			
				|  |  |          item.setBillId(auditItems.getId());
 |