| | |
| | | .eq("order_item_id", dto.getOrderItemId()) |
| | | ); |
| | | if(c != null){ |
| | | if(StringUtils.isNotEmpty(c.getAuditStatus())){ |
| | | throw new ValidationException("已审核,不可修改"); |
| | | if(Constants.CHECK_AUDIT_STATUS.AGREED.name().equals(c.getAuditStatus())){ |
| | | throw new ValidationException("已审核通过,不可修改"); |
| | | } |
| | | c.setCheckTime(LocalDateTime.now()); |
| | | c.setNum(dto.getNum()); |
| | |
| | | c.setPictures(toJSONString(pictureList)); |
| | | c.setTargetLevel(targetLevel); |
| | | c.setDeductAmount(deduct); |
| | | c.setAuditStatus(null); |
| | | c.setAuditTime(null); |
| | | c.update(SecurityUtils.getUserId()); |
| | | orderItemCheckMapper.updateById(c); |
| | | } else { |