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
|
|
|
|
2022-12-15 18:03:28 +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);
|
|
|
|
|
|
2022-12-15 18:03:28 +08:00
|
|
|
/**
|
|
|
|
|
* 更新进度条
|
|
|
|
|
*
|
|
|
|
|
* @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
|
|
|
}
|