weaver-hrm-salary/src/com/engine/salary/service/ProgressService.java

87 lines
1.6 KiB
Java
Raw Normal View History

2022-04-11 20:17:47 +08:00
package com.engine.salary.service;
2023-06-06 10:30:49 +08:00
import com.engine.salary.entity.progress.ProgressDTO;
2022-04-11 20:17:47 +08:00
import java.math.BigDecimal;
2022-04-11 20:17:47 +08:00
/**
2023-06-06 10:30:49 +08:00
* 进度条
2022-04-11 20:17:47 +08:00
* <p>Copyright: Copyright (c) 2022</p>
* <p>Company: 泛微软件</p>
*
* @author qiantao
* @version 1.0
**/
2023-06-06 10:30:49 +08:00
public interface ProgressService {
2022-04-11 20:17:47 +08:00
/**
* 初始化核算进度条
*
* @param salaryAcctProgress
* @return
*/
2023-06-06 10:30:49 +08:00
void initProgress(String cacheKey, ProgressDTO salaryAcctProgress);
2022-04-11 20:17:47 +08:00
/**
* 更新进度条
*
* @param calculatedQuantity
* @return
*/
void getAndAddCalculatedQty(String cacheKey, Integer calculatedQuantity);
2023-05-16 18:01:38 +08:00
2023-06-06 10:30:49 +08:00
/**
* 更新进度条
* @param cacheKey
* @param calculatedQuantity
* @param message
*/
2023-05-16 18:01:38 +08:00
void getAndAddCalculatedQty(String cacheKey, Integer calculatedQuantity, String message);
2022-04-11 20:17:47 +08:00
/**
* 计算失败
*
* @param cacheKey
* @param message
* @return
*/
void fail(String cacheKey, String message);
/**
* 完成
*
* @param cacheKey
*/
void finish(String cacheKey, boolean checkStatus);
2023-06-06 11:48:19 +08:00
/**
* 完成
* @param cacheKey
* @param checkStatus
* @param message
*/
void finish(String cacheKey, boolean checkStatus,String message);
/**
* 更新进度条
*
* @param cacheKey
*/
void updateProgress(String cacheKey, BigDecimal progress, boolean checkStatus);
2022-04-11 20:17:47 +08:00
/**
* 获取进度条
* @return
*/
2023-06-06 10:30:49 +08:00
ProgressDTO getProgress(String cacheKey);
2022-04-11 20:17:47 +08:00
/**
* 删除redis中的缓存
*
* @param cacheKey
* @return
*/
2023-06-06 10:30:49 +08:00
ProgressDTO del(String cacheKey);
2022-04-11 20:17:47 +08:00
}