需求删除逻辑修改
This commit is contained in:
@@ -21,6 +21,9 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 需求controller
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/test/project")
|
||||
@@ -66,7 +69,9 @@ public class TestProjectController extends BaseController {
|
||||
@Log(title = "需求", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/delProject")
|
||||
public AjaxResult delProject(@RequestBody IDQO qo) {
|
||||
return toAjax(testProjectService.deleteTestProjectById(qo.getId()));
|
||||
TestProject testProject = testProjectService.selectTestProjectById(qo.getId());
|
||||
testProject.setDelFlag("1");
|
||||
return toAjax(testProjectService.updateTestProject(testProject));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,6 +9,9 @@ import jakarta.annotation.Resource;
|
||||
import java.util.List;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 需求实现类
|
||||
*/
|
||||
@Service
|
||||
public class TestProjectServiceImpl implements ITestProjectService {
|
||||
// 0正常,1删除
|
||||
|
||||
Reference in New Issue
Block a user