智慧保安后台管理-外网
tangzy
2022-02-24 d4b00c05321d9373a33bfb26618735e2a5868a81
src/main/java/org/springblade/modules/seinspect/controller/SeinspectController.java
@@ -33,6 +33,7 @@
import org.springblade.modules.seinspect.entity.Seinspect;
import org.springblade.modules.seinspect.service.ISeinspectService;
import org.springblade.modules.seinspect.vo.SeinspectVO;
import org.springblade.modules.system.service.MyAsyncService;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
@@ -52,6 +53,7 @@
public class SeinspectController extends BladeController {
   private final ISeinspectService seinspectService;
   private final MyAsyncService myAsyncService;
   /**
    * 详情
@@ -94,7 +96,8 @@
   @ApiOperation(value = "新增", notes = "传入seinspect")
   public R save(@Valid @RequestBody Seinspect seinspect) throws Exception {
      seinspect.setReviewtime(new Date());
      seinspectService.save(seinspect);
      boolean save = seinspectService.save(seinspect);
      if (save) {
      String url = "";
      if (seinspect.getUrl()!=null&& !"".equals(seinspect.getUrl())){
         String[] split = seinspect.getUrl().split(",");
@@ -117,7 +120,9 @@
            "'" + seinspect.getExaminerId() + "'" + "," +
            "'" + seinspect.getJurisdiction() + "'" + "," +
            "'" + seinspect.getSecurityId() + "'" + ")";
      FtpUtil.sqlFileUpload(s1);
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
      }
      return R.success("成功");
   }