mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-08-12 01:04:00 +08:00
接入汇付企业开户失败待办
This commit is contained in:
@@ -33,6 +33,9 @@ public interface TodoTaskService {
|
||||
int completeByBusiness(String businessType, String businessId, Long assigneeUserId,
|
||||
Long operatorId, String operatorName);
|
||||
|
||||
int completeByBusinessAsSystem(String businessType, String businessId, Long assigneeUserId,
|
||||
String operatorName);
|
||||
|
||||
boolean cancelForAssignee(Long todoId, Long assigneeUserId, String operatorName, String reason);
|
||||
|
||||
boolean cancel(Long todoId, Long operatorId, String operatorName, String reason);
|
||||
|
||||
@@ -33,9 +33,9 @@ public class TodoTaskServiceImpl implements TodoTaskService {
|
||||
private static final String SYSTEM_OPERATOR = "system";
|
||||
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
|
||||
private static final Set<String> DEFAULT_ROUTE_WHITELIST = new HashSet<>(
|
||||
Arrays.asList("invoiceDetail", "financeDetail"));
|
||||
Arrays.asList("invoiceDetail", "financeDetail", "accountUserInfo"));
|
||||
|
||||
@Value("${todo.route-whitelist:invoiceDetail,financeDetail}")
|
||||
@Value("${todo.route-whitelist:invoiceDetail,financeDetail,accountUserInfo}")
|
||||
private String routeWhitelist;
|
||||
|
||||
@Autowired
|
||||
@@ -162,6 +162,19 @@ public class TodoTaskServiceImpl implements TodoTaskService {
|
||||
operatorId, normalizeOperator(operatorName, operatorId));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public int completeByBusinessAsSystem(String businessType, String businessId, Long assigneeUserId,
|
||||
String operatorName) {
|
||||
String safeBusinessType = normalizeRequired(businessType, "业务类型", 64);
|
||||
String safeBusinessId = normalizeRequired(businessId, "业务主键", 64);
|
||||
if (assigneeUserId != null) {
|
||||
validateUserId(assigneeUserId);
|
||||
}
|
||||
return todoTaskMapper.completeTodoByBusiness(safeBusinessType, safeBusinessId, assigneeUserId,
|
||||
null, normalizeOperator(operatorName, null));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean cancelForAssignee(Long todoId, Long assigneeUserId, String operatorName, String reason) {
|
||||
|
||||
Reference in New Issue
Block a user