|
@@ -65,28 +65,6 @@ public class WxscController {
|
|
|
@ApiOperation("修改维修手册接口")
|
|
|
@PostMapping("/save")
|
|
|
public Result<Object> saveMore(@RequestBody Wxsc wxsc) {
|
|
|
-// Collection<Wxsc> collection = new ArrayList<>();
|
|
|
-// String title = wxscVO.getTitle();
|
|
|
-// LocalDateTime createTime = wxscVO.getCreateTime();
|
|
|
-// String[] langs = wxscVO.getLang();
|
|
|
-// String[] urls = wxscVO.getFileUrl();
|
|
|
-// String[] scNames = wxscVO.getScName();
|
|
|
-// String brandCode = wxscVO.getBrandCode();
|
|
|
-// Arrays.stream(wxscVO.getClientCode()).forEach(client -> {
|
|
|
-// for (int i = 0; i < langs.length; i++) {
|
|
|
-// Wxsc wxsc = new Wxsc();
|
|
|
-// wxsc.setTitle(title);
|
|
|
-// wxsc.setBrandCode(brandCode);
|
|
|
-// wxsc.setLang(langs[i]);
|
|
|
-// wxsc.setScName(scNames[i]);
|
|
|
-// wxsc.setFileUrl(urls[i]);
|
|
|
-// wxsc.setClientCode(client);
|
|
|
-// wxsc.setCreateTime(createTime);
|
|
|
-// wxsc.setUpdateTime(LocalDateTime.now());
|
|
|
-// collection.add(wxsc);
|
|
|
-// }
|
|
|
-// });
|
|
|
-
|
|
|
return Result.succ(wxscService.saveOrUpdate(wxsc));
|
|
|
}
|
|
|
|