|
@@ -6,10 +6,7 @@ import com.persagy.common.web.PagedResponse;
|
|
|
import com.persagy.dmp.rwd.edit.entity.FuncidDefChangeRecord;
|
|
|
import com.persagy.dmp.rwd.edit.service.FuncidDefChangeRecordService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.util.List;
|
|
@@ -46,4 +43,8 @@ public class FuncidDefChangeRecordController {
|
|
|
service.download(response, idList);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/addVersion")
|
|
|
+ public MapResponse addVersion(@RequestParam String version, @RequestBody List<Integer> idList) {
|
|
|
+ return service.addVersion(version, idList);
|
|
|
+ }
|
|
|
}
|