解决委托再次接收数据修改bug和异常处理方法bug

This commit is contained in:
dxc
2021-03-10 18:37:36 +08:00
parent 784c26f1bb
commit 10cabd3bb4
3 changed files with 5 additions and 8 deletions

View File

@ -316,6 +316,7 @@ public class ProjectEntrustServiceImpl extends BaseServiceImpl<ProjectEntrustMap
ProjectEntrustVO projectEntrustVO = assembleProjectEntrust(purpImplementSendVO);
if(isUpdate){
projectEntrustVO.setId(projectEntrust.getId());
projectEntrustVO.setStatus(projectEntrust.getStatus());
result = updateProject(projectEntrustVO);
}else{
result = saveProject(projectEntrustVO);

View File

@ -46,17 +46,13 @@ public class ProjectExceptionController{
/**
* 修改数据
*
* @param projectException 异常信息
*
* @param projectExceptionVO 异常信息
* @return
*/
@ApiOperation("修改数据")
@PutMapping("")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectException projectException){
return BaseResponse.success(projectExceptionService.updateById(projectException));
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectExceptionVO projectExceptionVO){
return BaseResponse.success(projectExceptionService.update(projectExceptionVO));
}
/**

View File

@ -26,7 +26,7 @@
</update>
<!-- 根据项目ID物理删除信息 -->
<delete id="deleteByProjectId" parameterType="java.lang.String">
<delete id="deleteByExceptionId" parameterType="java.lang.String">
delete from biz_project_section_exception where exception_id = #{exceptionId}
</delete>
</mapper>