Administrator
2021-08-23 f435d50064d048c7bbc2fb46ffcd518cb19b9764
src/main/java/org/springblade/modules/dispatcher/controller/DispatcherUnitController.java
@@ -115,11 +115,7 @@
    */
   @PostMapping("/submit")
   public R submit(@Valid @RequestBody DispatcherUnit dispatcherUnit) throws Exception {
      if (dispatcherUnit.getId()==null){
         arg arg = new arg();
         arg.test01(arg.url+"/dispatcherUnit/save",dispatcherUnit);
      }
      if (null==dispatcherUnit.getId()){
      if (null==dispatcherUnit.getId()) {
         dispatcherUnit.setCreateTime(new Date());
      }
      return R.status(dispatcherUnitService.saveOrUpdate(dispatcherUnit));
@@ -131,7 +127,7 @@
    */
   @PostMapping("/remove")
   @ApiOperation(value = "删除", notes = "传入ids")
   public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
   public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) throws Exception {
      return R.status(dispatcherUnitService.removeByIds(Func.toLongList(ids)));
   }