You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.6 KiB
72 lines
2.6 KiB
2 years ago
|
package com.qs.serve.controller.util;
|
||
|
|
||
|
import com.qs.serve.modules.tbs.common.TbsSeeYonConst;
|
||
|
import lombok.experimental.UtilityClass;
|
||
|
|
||
|
/**
|
||
|
* @author YenHex
|
||
|
* @since 2023/6/12
|
||
|
*/
|
||
|
@UtilityClass
|
||
|
public class SyKeyLoginUtil {
|
||
|
|
||
|
/**
|
||
|
* 获取待审批详情
|
||
|
* @param templateCode
|
||
|
* @param targetId
|
||
|
* @param affairId
|
||
|
* @return
|
||
|
*/
|
||
|
public static String getPreCheckUrl(String templateCode,String targetId,String affairId){
|
||
|
if(templateCode.equals(TbsSeeYonConst.CostApplyConf.Code())){
|
||
|
return "my-expense-application-approval-pending-detail?expenseApplicationId="+targetId+"&approvalId="+affairId;
|
||
|
}
|
||
|
if(templateCode.equals(TbsSeeYonConst.CostCheckConf.Code())){
|
||
|
return "my-expense-application-approval-pending-detail?expenseApplicationId="+targetId+"&approvalId=0";
|
||
|
}
|
||
|
if(templateCode.equals(TbsSeeYonConst.PolicyConf.Code())){
|
||
|
return "my-expense-application-approval-pending-detail?expenseApplicationId="+targetId+"&approvalId=0";
|
||
|
}
|
||
|
return "404";
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 获取已审批详情
|
||
|
* @param templateCode
|
||
|
* @param targetId
|
||
|
* @return
|
||
|
*/
|
||
|
public static String getCheckedDetailUrl(String templateCode,String targetId){
|
||
|
if(templateCode.equals(TbsSeeYonConst.CostApplyConf.Code())){
|
||
|
return "my-expense-application-approval-approved-detail?expenseApplicationId="+targetId+"&approvalId=0";
|
||
|
}
|
||
|
if(templateCode.equals(TbsSeeYonConst.CostCheckConf.Code())){
|
||
|
return "my-expense-application-approval-pending-detail?expenseApplicationId="+targetId+"&approvalId=0";
|
||
|
}
|
||
|
if(templateCode.equals(TbsSeeYonConst.PolicyConf.Code())){
|
||
|
return "my-expense-application-approval-pending-detail?expenseApplicationId="+targetId+"&approvalId=0";
|
||
|
}
|
||
|
return "404";
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 获取个人申请详情
|
||
|
* @param templateCode
|
||
|
* @param targetId
|
||
|
* @return
|
||
|
*/
|
||
|
public static String getMyDetailUrl(String templateCode,String targetId){
|
||
|
if(templateCode.equals(TbsSeeYonConst.CostApplyConf.Code())){
|
||
|
return "my-expense-application-detail?id="+targetId;
|
||
|
}
|
||
|
if(templateCode.equals(TbsSeeYonConst.CostCheckConf.Code())){
|
||
|
return "my-expense-application-approval-pending-detail?expenseApplicationId="+targetId+"&approvalId=0";
|
||
|
}
|
||
|
if(templateCode.equals(TbsSeeYonConst.PolicyConf.Code())){
|
||
|
return "my-expense-application-approval-pending-detail?expenseApplicationId="+targetId+"&approvalId=0";
|
||
|
}
|
||
|
return "404";
|
||
|
}
|
||
|
|
||
|
}
|