修改名称

This commit is contained in:
2026-04-29 19:20:29 +08:00
parent 521cc30f94
commit 68d0c7ea37
6 changed files with 44 additions and 44 deletions

View File

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

View File

@@ -12,9 +12,9 @@ import java.time.LocalDateTime;
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@TableName("lb_assessment_application") @TableName("lb_assessment_apply")
@Schema(description = "申请评估表") @Schema(description = "申请评估表")
public class LbAssessmentApplication implements Serializable { public class LbAssessmentApply implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

View File

@@ -1,9 +0,0 @@
package com.rj.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rj.entity.LbAssessmentApplication;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface LbAssessmentApplicationMapper extends BaseMapper<LbAssessmentApplication> {
}

View File

@@ -0,0 +1,9 @@
package com.rj.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rj.entity.LbAssessmentApply;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface LbAssessmentApplyMapper extends BaseMapper<LbAssessmentApply> {
}

View File

@@ -1,15 +1,15 @@
package com.rj.service; package com.rj.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.rj.entity.LbAssessmentApplication; import com.rj.entity.LbAssessmentApply;
import java.util.Map; import java.util.Map;
public interface ILbAssessmentApplicationService extends IService<LbAssessmentApplication> { public interface ILbAssessmentApplyService extends IService<LbAssessmentApply> {
Map<String, Object> add(LbAssessmentApplication entity); Map<String, Object> add(LbAssessmentApply entity);
Map<String, Object> update(LbAssessmentApplication entity); Map<String, Object> update(LbAssessmentApply entity);
Map<String, Object> deleteById(String id); Map<String, Object> deleteById(String id);

View File

@@ -3,9 +3,9 @@ package com.rj.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rj.entity.LbAssessmentApplication; import com.rj.entity.LbAssessmentApply;
import com.rj.mapper.LbAssessmentApplicationMapper; import com.rj.mapper.LbAssessmentApplyMapper;
import com.rj.service.ILbAssessmentApplicationService; import com.rj.service.ILbAssessmentApplyService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.time.LocalDateTime; import java.time.LocalDateTime;
@@ -14,12 +14,12 @@ import java.util.Map;
import java.util.UUID; import java.util.UUID;
@Service @Service
public class LbAssessmentApplicationServiceImpl public class LbAssessmentApplyServiceImpl
extends ServiceImpl<LbAssessmentApplicationMapper, LbAssessmentApplication> extends ServiceImpl<LbAssessmentApplyMapper, LbAssessmentApply>
implements ILbAssessmentApplicationService { implements ILbAssessmentApplyService {
@Override @Override
public Map<String, Object> add(LbAssessmentApplication entity) { public Map<String, Object> add(LbAssessmentApply entity) {
Map<String, Object> result = new HashMap<>(); Map<String, Object> result = new HashMap<>();
try { try {
if (entity.getTenantId() == null) { if (entity.getTenantId() == null) {
@@ -62,7 +62,7 @@ public class LbAssessmentApplicationServiceImpl
} }
@Override @Override
public Map<String, Object> update(LbAssessmentApplication entity) { public Map<String, Object> update(LbAssessmentApply entity) {
Map<String, Object> result = new HashMap<>(); Map<String, Object> result = new HashMap<>();
try { try {
if (entity.getId() == null || entity.getId().trim().isEmpty()) { if (entity.getId() == null || entity.getId().trim().isEmpty()) {
@@ -117,26 +117,26 @@ public class LbAssessmentApplicationServiceImpl
size = 10; size = 10;
} }
LambdaQueryWrapper<LbAssessmentApplication> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<LbAssessmentApply> queryWrapper = new LambdaQueryWrapper<>();
if (tenantId != null) { if (tenantId != null) {
queryWrapper.eq(LbAssessmentApplication::getTenantId, tenantId); queryWrapper.eq(LbAssessmentApply::getTenantId, tenantId);
} }
if (applicantName != null && !applicantName.trim().isEmpty()) { if (applicantName != null && !applicantName.trim().isEmpty()) {
queryWrapper.like(LbAssessmentApplication::getApplicantName, applicantName.trim()); queryWrapper.like(LbAssessmentApply::getApplicantName, applicantName.trim());
} }
if (applicantPhone != null && !applicantPhone.trim().isEmpty()) { if (applicantPhone != null && !applicantPhone.trim().isEmpty()) {
queryWrapper.like(LbAssessmentApplication::getApplicantPhone, applicantPhone.trim()); queryWrapper.like(LbAssessmentApply::getApplicantPhone, applicantPhone.trim());
} }
if (colleagueName != null && !colleagueName.trim().isEmpty()) { if (colleagueName != null && !colleagueName.trim().isEmpty()) {
queryWrapper.like(LbAssessmentApplication::getColleagueName, colleagueName.trim()); queryWrapper.like(LbAssessmentApply::getColleagueName, colleagueName.trim());
} }
if (teamLeaderName != null && !teamLeaderName.trim().isEmpty()) { if (teamLeaderName != null && !teamLeaderName.trim().isEmpty()) {
queryWrapper.like(LbAssessmentApplication::getTeamLeaderName, teamLeaderName.trim()); queryWrapper.like(LbAssessmentApply::getTeamLeaderName, teamLeaderName.trim());
} }
queryWrapper.orderByDesc(LbAssessmentApplication::getUpdatedAt) queryWrapper.orderByDesc(LbAssessmentApply::getUpdatedAt)
.orderByDesc(LbAssessmentApplication::getCreatedAt); .orderByDesc(LbAssessmentApply::getCreatedAt);
Page<LbAssessmentApplication> page = this.page(new Page<>(current, size), queryWrapper); Page<LbAssessmentApply> page = this.page(new Page<>(current, size), queryWrapper);
result.put("success", true); result.put("success", true);
result.put("message", "查询成功"); result.put("message", "查询成功");
result.put("data", page.getRecords()); result.put("data", page.getRecords());