|
|
@@ -1,11 +1,15 @@
|
|
|
package com.jzg.organization.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.jzg.commons.aop.OperatorTrajectory;
|
|
|
+import com.jzg.commons.constants.OperationTypeEnum;
|
|
|
import com.jzg.commons.core.base.BaseController;
|
|
|
import com.jzg.commons.core.page.HttpResult;
|
|
|
import com.jzg.commons.entity.account.dto.*;
|
|
|
import com.jzg.commons.entity.account.vo.AccountVo;
|
|
|
+import com.jzg.commons.entity.dto.AgreementAddParam;
|
|
|
import com.jzg.commons.util.AssertionUtils;
|
|
|
+import com.jzg.organization.mapper.PtlAgreementMapper;
|
|
|
import com.jzg.organization.service.InvAccountService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
@@ -14,6 +18,7 @@ import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Tag(name="来往企业管理接口")
|
|
|
@RestController
|
|
|
@@ -27,13 +32,24 @@ public class AccountController extends BaseController {
|
|
|
* 企业管理列表分页
|
|
|
* @return
|
|
|
*/
|
|
|
- @PostMapping("/accountList")
|
|
|
+ @PostMapping("/accountPage")
|
|
|
@Operation(summary = "企业管理列表分页")
|
|
|
- public HttpResult accountList(@RequestBody AccountParam param){
|
|
|
+ public HttpResult accountPage(@RequestBody AccountParam param){
|
|
|
Page<AccountVo> result = accountService.queryPage(param);
|
|
|
return HttpResult.ok(result);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 企业管理列表分页
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/accountList")
|
|
|
+ @Operation(summary = "企业管理列表")
|
|
|
+ public HttpResult accountList(@RequestBody AccountParam param){
|
|
|
+ List<AccountVo> result = accountService.queryList(param);
|
|
|
+ return HttpResult.ok(result);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 来往企业信息查询
|
|
|
* @param id
|
|
|
@@ -69,4 +85,16 @@ public class AccountController extends BaseController {
|
|
|
accountService.accountEdit(param);
|
|
|
return HttpResult.ok("修改成功");
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 批量删除协议
|
|
|
+ *
|
|
|
+ * @param id 主键串
|
|
|
+ */
|
|
|
+ @Operation(summary = "删除来往企业")
|
|
|
+ @DeleteMapping("/accountDelete")
|
|
|
+ public HttpResult accountDelete(String id) {
|
|
|
+ boolean b = accountService.removeById(id);
|
|
|
+ return HttpResult.ok(b ? "删除成功":"删除失败");
|
|
|
+ }
|
|
|
}
|