|
|
|
|
@ -49,12 +49,13 @@ public class SupTaskTestingAlcoholPeopleService extends ServiceImpl<SupTaskTesti
|
|
|
|
|
.set(SupTaskTestingAlcoholPeople::getTestingResult, dto.getTestingResult()); |
|
|
|
|
if ("已检测".equals(dto.getTestingResult())) { |
|
|
|
|
updateWrapper.set(SupTaskTestingAlcoholPeople::getDrinkResult, dto.getDrinkResult()) |
|
|
|
|
.set(SupTaskTestingAlcoholPeople::getTestingFiles, JSON.toJSONString(dto.getTestingFiles())); |
|
|
|
|
.set(SupTaskTestingAlcoholPeople::getTestingFiles, JSON.toJSONString(dto.getTestingFiles())) |
|
|
|
|
.set(SupTaskTestingAlcoholPeople::getIsIllegalBanquet, dto.getIsIllegalBanquet()); |
|
|
|
|
if ("饮酒".equals(dto.getDrinkResult())) { |
|
|
|
|
updateWrapper.set(SupTaskTestingAlcoholPeople::getAlcoholContent, dto.getAlcoholContent()); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
updateWrapper.set(SupTaskTestingAlcoholPeople::getUnTestingDesc, dto.getUnTestingDesc()); |
|
|
|
|
updateWrapper.set(SupTaskTestingAlcoholPeople::getUnTestingDesc, "其他".equals(dto.getUnTestingDesc()) ? dto.getUnTestingDescOther() : dto.getUnTestingDesc()); |
|
|
|
|
} |
|
|
|
|
return update(updateWrapper); |
|
|
|
|
} |
|
|
|
|
|