Commit 9f6b65bf authored by mcb's avatar mcb

no message

parent 8fd23e42
......@@ -171,4 +171,16 @@ public class OfflineSynchController {
}
return pageInfo;
}
/**
* 保存离线任务数据
*
* @return
*/
@ApiOperation(value = "保存离线任务数据", notes = "保存离线任务数据")
@PostMapping(value = "/addSyncTask")
public JsonResult addSyncTask(@RequestBody @Validated SyncDmpTaskAddReq syncDmpTaskAddReq) throws Exception {
JsonResult list = offlineSynchService.addSyncTask(syncDmpTaskAddReq);
return list;
}
}
package com.jz.dmp.modules.controller.DataIntegration.bean;
import io.swagger.annotations.ApiModel;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* @DATE: 2020-12-24/11:10
* @Description: 添加任务请求体
**/
@ApiModel(value = "添加任务请求对象", description = "添加任务对象")
public class SyncDmpTaskAddReq implements Serializable {
private static final long serialVersionUID = 4286346100382139287L;
@NotEmpty(message = "入参不能为空")
private List<Map<String, Object>> params;
public List<Map<String, Object>> getParams() {
return params;
}
public void setParams(List<Map<String, Object>> params) {
this.params = params;
}
}
......@@ -35,4 +35,6 @@ public interface OfflineSynchService {
JsonResult querySoureAndTargetColumnsByParams(SoureAndTargetColumnsReq soureAndTargetColumnsReq) throws Exception;
PageInfoResponse<DvRuleTDto> queryJyRuleListPage(BasePageBean basePageBean, HttpServletRequest httpRequest) throws Exception;
JsonResult addSyncTask(SyncDmpTaskAddReq syncDmpTaskAddReq) throws Exception;
}
......@@ -416,4 +416,9 @@ public class OfflineSynchServiceImpl implements OfflineSynchService {
return pageInfoResponse;
}
@Override
public JsonResult addSyncTask(SyncDmpTaskAddReq syncDmpTaskAddReq) throws Exception {
return null;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment