This commit is contained in:
Redkale
2016-10-10 19:20:19 +08:00
parent b2c6dd2db2
commit 1c59c86ba2
2 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ public interface SncpTestIService extends Service {
public String queryResult(SncpTestBean bean);
public void insert(@DynCall(DataCallArrayAttribute.class) SncpTestBean... beans);
public void insert(@RpcCall(DataCallArrayAttribute.class) SncpTestBean... beans);
public String updateBean(@DynCall(SncpTestService.CallAttribute.class) SncpTestBean bean);
public String updateBean(@RpcCall(SncpTestService.CallAttribute.class) SncpTestBean bean);
}

View File

@@ -50,7 +50,7 @@ public class SncpTestService implements SncpTestIService {
}
public void insert(@DynCall(DataCallArrayAttribute.class) SncpTestBean... beans) {
public void insert(@RpcCall(DataCallArrayAttribute.class) SncpTestBean... beans) {
for (SncpTestBean bean : beans) {
bean.setId(System.currentTimeMillis());
}
@@ -62,7 +62,7 @@ public class SncpTestService implements SncpTestIService {
}
@RpcMultiRun
public String updateBean(@DynCall(CallAttribute.class) SncpTestBean bean) {
public String updateBean(@RpcCall(CallAttribute.class) SncpTestBean bean) {
bean.setId(System.currentTimeMillis());
System.out.println(Thread.currentThread().getName() + " 运行了updateBean方法");
return "result: " + bean;