zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
commit | author | age
a18bfa 1 package com.codingapi.tm.netty.service.impl;
Z 2
3 import com.alibaba.fastjson.JSONObject;
4 import com.codingapi.tm.manager.service.TxManagerService;
5 import com.codingapi.tm.netty.service.IActionService;
6 import org.springframework.beans.factory.annotation.Autowired;
7 import org.springframework.stereotype.Service;
8
9 /**
10  * 检查事务组
11  * create by lorne on 2017/11/11
12  */
13 @Service(value = "ckg")
14 public class ActionCKGServiceImpl implements IActionService{
15
16
17     @Autowired
18     private TxManagerService txManagerService;
19
20     @Override
21     public String execute(String channelAddress, String key, JSONObject params ) {
22         String res = "";
23         String groupId = params.getString("g");
24         String taskId = params.getString("t");
25         int bs = txManagerService.cleanNotifyTransaction(groupId,taskId);
26
27         res = String.valueOf(bs);
28         return res;
29     }
30 }