12 changed files with 219 additions and 18 deletions
@ -0,0 +1,71 @@ |
|||||
|
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"; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.qs.serve.modules.seeyon.entity; |
||||
|
|
||||
|
import com.qs.serve.modules.seeyon.enums.SyAffairState; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author YenHex |
||||
|
* @since 2023/6/12 |
||||
|
*/ |
||||
|
@Data |
||||
|
@AllArgsConstructor |
||||
|
public class SyAffairStateResult { |
||||
|
|
||||
|
String affairId; |
||||
|
|
||||
|
String memberId; |
||||
|
|
||||
|
String targetId; |
||||
|
|
||||
|
SyAffairState state; |
||||
|
|
||||
|
} |
Loading…
Reference in new issue