linwe
2024-05-28 55bda5300ff455474364395513f6edddcd6cacf8
src/main/java/org/springblade/modules/eCallEventTwo/controller/ECallEventTwoController.java
@@ -26,8 +26,11 @@
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springblade.modules.eCallEventTwo.entity.EcOrder;
import org.springblade.modules.eCallEventTwo.service.EcOrderService;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.eCallEventTwo.entity.ECallEventTwoEntity;
@@ -35,6 +38,8 @@
import org.springblade.modules.eCallEventTwo.wrapper.ECallEventTwoWrapper;
import org.springblade.modules.eCallEventTwo.service.IECallEventTwoService;
import org.springblade.core.boot.ctrl.BladeController;
import java.util.List;
/**
 * 工单 控制器
@@ -49,6 +54,8 @@
public class ECallEventTwoController extends BladeController {
   private final IECallEventTwoService eCallEventTwoService;
   private final EcOrderService ecOrderService;
   /**
    * 工单 详情
@@ -88,8 +95,9 @@
   @PostMapping("/save")
   @ApiOperationSupport(order = 4)
   @ApiOperation(value = "新增", notes = "传入eCallEventTwo")
   public R save(@Valid @RequestBody ECallEventTwoEntity eCallEventTwo) {
      return R.status(eCallEventTwoService.save(eCallEventTwo));
   public R save(@Valid @RequestBody ECallEventTwoVO eCallEventTwo) {
      eCallEventTwo.setCreateUserId(AuthUtil.getUserId());
      return R.status(eCallEventTwoService.saveTwo(eCallEventTwo));
   }
   /**
@@ -108,8 +116,8 @@
   @PostMapping("/submit")
   @ApiOperationSupport(order = 6)
   @ApiOperation(value = "新增或修改", notes = "传入eCallEventTwo")
   public R submit(@Valid @RequestBody ECallEventTwoEntity eCallEventTwo) {
      return R.status(eCallEventTwoService.saveOrUpdate(eCallEventTwo));
   public R submit(@Valid @RequestBody ECallEventTwoVO eCallEventTwo) {
      return R.status(eCallEventTwoService.saveTwo(eCallEventTwo));
   }
   /**
@@ -123,4 +131,16 @@
   }
   /**
    * 工单 同步
    */
   @GetMapping("/synchronizeData")
   @ApiOperationSupport(order = 8)
   @ApiOperation(value = "工单 同步")
   public R synchronizeData() {
      boolean b = ecOrderService.SynchronizeData();
      return R.status(b);
   }
}