解决委托再次接收数据修改bug和异常处理方法bug
This commit is contained in:
@ -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);
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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>
|
Reference in New Issue
Block a user