Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/estate_expert
| | |
| | | if (Objects.isNull(client)) { |
| | | throw new RuntimeException("委托方不存在"); |
| | | } |
| | | //校验是否已检查 |
| | | Long count = lambdaQuery().eq(Check::getCheckTaskId, request.getCheckTaskIdId()).count(); |
| | | if (count > 0) { |
| | | throw new RuntimeException("已检查不可重复上传"); |
| | | } |
| | | // 1. 创建 Check 实体对象(MyBatis Plus 实体) |
| | | Check check = new Check(); |
| | | |
| | |
| | | throw new RuntimeException("岗位不存在"); |
| | | } |
| | | String positionName = position.getName(); |
| | | //校验该岗位是否已添加 |
| | | Long count = lambdaQuery().eq(OnDuty::getCheckTaskIdId, request.getCheckTaskIdId()).eq(OnDuty::getPositionId, request.getPositionId()).count(); |
| | | if (count > 0) { |
| | | throw new RuntimeException("该岗位已上传"); |
| | | } |
| | | |
| | | // 3. 处理图片列表(逗号分隔) |
| | | String imgStr = null; |