---测试远程jar包管理功能
This commit is contained in:
@ -142,34 +142,17 @@ public class Testfrom3Controller {
|
||||
|
||||
@Override
|
||||
public UpdateTestfrom3Dto before(DataOperationContent<UpdateTestfrom3Dto> content) {
|
||||
if(content.getType()==OperationType.DELETE) {
|
||||
CommonCallUtils.deleteBefore(content.getTableName(),content.getIdValue());
|
||||
}else if(content.getType()==OperationType.DISABLE){
|
||||
CommonCallUtils.disableBefore(content.getTableName(),content.getIdValue());
|
||||
}else if(content.getType()==OperationType.ENABLE){
|
||||
CommonCallUtils.enableBefore(content.getTableName(),content.getIdValue());
|
||||
}
|
||||
|
||||
return content.getObj();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTestfrom3Dto after(DataOperationContent<UpdateTestfrom3Dto> content) {
|
||||
if(content.getType()==OperationType.INSERT || content.getType()==OperationType.UPDATE) {
|
||||
if(content.getType()==OperationType.UPDATE) {
|
||||
CommonCallUtils.saveAfter(content.getTableName(),content.getIdValue());
|
||||
}
|
||||
return content.getObj();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(DataOperationContent<UpdateTestfrom3Dto> content) {
|
||||
// TODO Auto-generated method stub
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFinally(DataOperationContent<UpdateTestfrom3Dto> content) {
|
||||
// TODO Auto-generated method stub
|
||||
}
|
||||
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user