|
@@ -1,5 +1,6 @@
|
|
|
package com.sooka.sponest.data.system.attach.controller;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ruoyi.common.core.domain.R;
|
|
|
import com.ruoyi.common.core.web.controller.BaseController;
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
@@ -127,4 +128,16 @@ public class CenterdataTAttachController extends BaseController {
|
|
|
public R<List<CenterdataTAttach>> urlAttchMpF(@PathVariable String busId) {
|
|
|
return R.ok(centerdataTAttachMapper.urlAttchMpF(busId));
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/deleteAttchByBusId")
|
|
|
+ public int deleteAttchByBusId(@RequestParam("busId") String busId) {
|
|
|
+ return centerdataTAttachMapper.deleteAttchByBusId(busId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/insertAttachToArray")
|
|
|
+ public int insertAttachToArray(@RequestParam("jsonString") String jsonString) {
|
|
|
+ JSONObject jsonObject = JSONObject.parseObject(jsonString);
|
|
|
+ List<CenterdataTAttach> array = jsonObject.getObject("attachList",List.class);
|
|
|
+ return centerdataTAttachMapper.insertAttachToArray(array);
|
|
|
+ }
|
|
|
}
|