Commit ca13858b authored by dqq's avatar dqq

安装告知删除

parent a866e632
...@@ -255,10 +255,10 @@ public class InstallNoticeController extends BaseController { ...@@ -255,10 +255,10 @@ public class InstallNoticeController extends BaseController {
public ResponseModel<Boolean> deleteBySeq(HttpServletRequest request, @PathVariable(value = "sequenceNbr") Long sequenceNbr) { public ResponseModel<Boolean> deleteBySeq(HttpServletRequest request, @PathVariable(value = "sequenceNbr") Long sequenceNbr) {
final InstallNoticeDto installNoticeDto = installNoticeServiceImpl.selectOneById(sequenceNbr); final InstallNoticeDto installNoticeDto = installNoticeServiceImpl.selectOneById(sequenceNbr);
final String noticeStatus = installNoticeDto.getNoticeStatus(); final String noticeStatus = installNoticeDto.getNoticeStatus();
if (noticeStatus.equals("已提交")||noticeStatus.equals("已保存")){ if (!noticeStatus.equals("已接收")){
return ResponseHelper.buildResponse(installNoticeServiceImpl.removeById(sequenceNbr)); return ResponseHelper.buildResponse(installNoticeServiceImpl.removeById(sequenceNbr));
} }
return null; return ResponseHelper.buildResponse(false);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment