修改名称
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.rj.controller;
|
||||
|
||||
import com.rj.entity.LbAssessmentApplication;
|
||||
import com.rj.service.ILbAssessmentApplicationService;
|
||||
import com.rj.entity.LbAssessmentApply;
|
||||
import com.rj.service.ILbAssessmentApplyService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
@@ -12,18 +12,18 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/lbAssessmentApplication")
|
||||
@Tag(name = "申请评估", description = "lb_assessment_application增删改查与分页")
|
||||
public class LbAssessmentApplicationController {
|
||||
@RequestMapping("/api/lbAssessmentApply")
|
||||
@Tag(name = "申请评估", description = "lb_assessment_apply增删改查与分页")
|
||||
public class LbAssessmentApplyController {
|
||||
|
||||
@Autowired
|
||||
private ILbAssessmentApplicationService lbAssessmentApplicationService;
|
||||
private ILbAssessmentApplyService lbAssessmentApplyService;
|
||||
|
||||
@PostMapping("/add")
|
||||
@Operation(summary = "新增")
|
||||
public ResponseEntity<Map<String, Object>> add(
|
||||
@Parameter(description = "实体", required = true) @RequestBody LbAssessmentApplication entity) {
|
||||
Map<String, Object> result = lbAssessmentApplicationService.add(entity);
|
||||
@Parameter(description = "实体", required = true) @RequestBody LbAssessmentApply entity) {
|
||||
Map<String, Object> result = lbAssessmentApplyService.add(entity);
|
||||
Boolean success = (Boolean) result.get("success");
|
||||
if (success != null && success) {
|
||||
return ResponseEntity.ok(result);
|
||||
@@ -34,8 +34,8 @@ public class LbAssessmentApplicationController {
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "编辑")
|
||||
public ResponseEntity<Map<String, Object>> update(
|
||||
@Parameter(description = "实体", required = true) @RequestBody LbAssessmentApplication entity) {
|
||||
Map<String, Object> result = lbAssessmentApplicationService.update(entity);
|
||||
@Parameter(description = "实体", required = true) @RequestBody LbAssessmentApply entity) {
|
||||
Map<String, Object> result = lbAssessmentApplyService.update(entity);
|
||||
Boolean success = (Boolean) result.get("success");
|
||||
if (success != null && success) {
|
||||
return ResponseEntity.ok(result);
|
||||
@@ -47,7 +47,7 @@ public class LbAssessmentApplicationController {
|
||||
@Operation(summary = "删除")
|
||||
public ResponseEntity<Map<String, Object>> delete(
|
||||
@Parameter(description = "主键ID(UUID)", required = true) @PathVariable String id) {
|
||||
Map<String, Object> result = lbAssessmentApplicationService.deleteById(id);
|
||||
Map<String, Object> result = lbAssessmentApplyService.deleteById(id);
|
||||
Boolean success = (Boolean) result.get("success");
|
||||
if (success != null && success) {
|
||||
return ResponseEntity.ok(result);
|
||||
@@ -65,7 +65,7 @@ public class LbAssessmentApplicationController {
|
||||
@RequestParam(required = false) String applicantPhone,
|
||||
@RequestParam(required = false) String colleagueName,
|
||||
@RequestParam(required = false) String teamLeaderName) {
|
||||
Map<String, Object> result = lbAssessmentApplicationService.pageQuery(
|
||||
Map<String, Object> result = lbAssessmentApplyService.pageQuery(
|
||||
current, size, tenantId, applicantName, applicantPhone, colleagueName, teamLeaderName
|
||||
);
|
||||
Boolean success = (Boolean) result.get("success");
|
||||
Reference in New Issue
Block a user