智慧保安后台管理-外网项目备份
src/main/java/org/springblade/modules/apply/controller/ExamPaymentController.java
@@ -13,6 +13,7 @@
import org.springblade.modules.apply.entity.ExamPayment;
import org.springblade.modules.apply.service.ExamPaymentService;
import org.springblade.modules.apply.vo.ExamPaymentVO;
import org.springblade.modules.system.service.MyAsyncService;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
@@ -29,10 +30,12 @@
public class ExamPaymentController {
   private final ExamPaymentService examPaymentService;
   private final MyAsyncService myAsyncService;
   /**
    * 自定义分页
    * @param query page,size
    *
    * @param query       page,size
    * @param examPayment 考试缴费信息对象
    */
   @GetMapping("/page")
@@ -52,6 +55,7 @@
   /**
    * 新增
    *
    * @param examPayment 考试缴费信息对象
    */
   @PostMapping("/save")
@@ -63,6 +67,7 @@
   /**
    * 修改
    *
    * @param examPayment 考试缴费信息对象
    */
   @PostMapping("/update")
@@ -72,6 +77,7 @@
   /**
    * 新增或修改
    *
    * @param examPayment 考试缴费信息对象
    */
   @PostMapping("/submit")
@@ -82,6 +88,7 @@
   /**
    * 删除
    *
    * @param ids 考试缴费信息ids 数组
    */
   @PostMapping("/remove")
@@ -90,13 +97,15 @@
      list.forEach(id -> {
         //内网同步
         String s1 = "delete from sys_exam_payment where id = " + "'" + id + "'";
         FtpUtil.sqlFileUpload(s1);
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.dataSync(s1);
      });
      return R.status(examPaymentService.removeByIds(Func.toLongList(ids)));
   }
   /**
    * 详情
    *
    * @param examPayment 考试缴费信息对象
    */
   @GetMapping("/detail")