|
|
|
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())
|
|
|
|
||templateCode.equals(TbsSeeYonConst.CostApplyContractConf.Code())){
|
|
|
|
return "my-expense-application-approval-pending-detail?expenseApplicationId="+targetId+"&approvalId="+affairId;
|
|
|
|
}
|
|
|
|
// if(templateCode.equals(TbsSeeYonConst.CostCheckConf.Code())){
|
|
|
|
// return "my-expense-application-activity-write-off-approval-pending-detail?" +
|
|
|
|
// "expenseApplicationId=382658" + //费用id
|
|
|
|
// "&writeOffId=1936474" + //核销id
|
|
|
|
// "&activityId=2277848" + //活动id
|
|
|
|
// "&approvalId="+affairId;
|
|
|
|
// }
|
|
|
|
if(templateCode.equals(TbsSeeYonConst.PolicyConf.Code())){
|
|
|
|
return "my-policy-application-approval-pending-detail?policyApplicationId=" + targetId +
|
|
|
|
"&approvalId="+affairId;
|
|
|
|
}
|
|
|
|
return "404";
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取核销待审批详情
|
|
|
|
* @param costApplyId
|
|
|
|
* @param activityId
|
|
|
|
* @param verificationId
|
|
|
|
* @param affairId
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public static String getPreCheckUrl4Verification(Long costApplyId,
|
|
|
|
Long activityId,
|
|
|
|
Long verificationId,
|
|
|
|
String affairId){
|
|
|
|
return "my-expense-application-activity-write-off-approval-pending-detail?" +
|
|
|
|
"expenseApplicationId=" + costApplyId+ //费用id
|
|
|
|
"&writeOffId=" + verificationId +//核销id
|
|
|
|
"&activityId=" + activityId +//活动id
|
|
|
|
"&approvalId="+affairId;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取已审批详情
|
|
|
|
* @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.PolicyConf.Code())){
|
|
|
|
return "my-policy-application-approval-approved-detail?policyApplicationId=" + targetId +
|
|
|
|
"&approvalId=0";
|
|
|
|
}
|
|
|
|
return "404";
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取核销待审批详情
|
|
|
|
* @param costApplyId
|
|
|
|
* @param activityId
|
|
|
|
* @param verificationId
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public static String getCheckedDetailUrl4Verification(Long costApplyId,
|
|
|
|
Long activityId,
|
|
|
|
Long verificationId){
|
|
|
|
return "my-expense-application-activity-write-off-approval-approved-detail?" +
|
|
|
|
"expenseApplicationId=" + costApplyId+ //费用id
|
|
|
|
"&writeOffId=" + verificationId +//核销id
|
|
|
|
"&activityId=" + activityId +//活动id
|
|
|
|
"&approvalId=0";
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取个人申请详情
|
|
|
|
* @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.PolicyConf.Code())){
|
|
|
|
return "my-policy-application-detail?id="+targetId;
|
|
|
|
}
|
|
|
|
return "404";
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|