| | |
| | | } |
| | | |
| | | @Override |
| | | public CommonResult updateCorrection(Correction Correction) { |
| | | Correction.setUpdateBy(SecurityUtils.getUsername()); |
| | | Correction.setUpdateTime(LocalDateTime.now()); |
| | | int insert = correctionMapper.updateById(Correction); |
| | | public CommonResult updateCorrection(Correction correction) { |
| | | correction.setUpdateBy(SecurityUtils.getUsername()); |
| | | correction.setUpdateTime(LocalDateTime.now()); |
| | | int insert = correctionMapper.updateById(correction); |
| | | if (insert > 0){ |
| | | return CommonResult.success(); |
| | | } |
| | |
| | | |
| | | @Override |
| | | public CommonResult deletedCorrection(Integer id) { |
| | | Correction Correction = new Correction(); |
| | | Correction.setId(id.longValue()); |
| | | Correction.setDelFlag(1); |
| | | Correction.setUpdateBy(SecurityUtils.getUsername()); |
| | | Correction.setUpdateTime(LocalDateTime.now()); |
| | | int insert = correctionMapper.updateById(Correction); |
| | | Correction correction = new Correction(); |
| | | correction.setId(id.longValue()); |
| | | correction.setDelFlag(1); |
| | | correction.setUpdateBy(SecurityUtils.getUsername()); |
| | | correction.setUpdateTime(LocalDateTime.now()); |
| | | int insert = correctionMapper.updateById(correction); |
| | | if (insert > 0){ |
| | | return CommonResult.success(); |
| | | } |