feat:预炸

This commit is contained in:
苏竹红
2025-06-24 14:53:17 +08:00
parent 22107ffac0
commit ca8c8183f2
2 changed files with 4 additions and 1 deletions

View File

@@ -120,7 +120,7 @@
AND a.violation_flag = #{query.violationFlag}
</if>
<if test="query.violationReason != null">
AND a.violation_reason LIKE CONCAT('%', #{query.violationReason}, '%')
AND a.violation_reason LIKE CONCAT('%,', #{query.violationReason}, ',%')
</if>
</where>
ORDER BY a.fry_date DESC

View File

@@ -86,6 +86,9 @@ public class PreFryRecordsServiceImpl implements PreFryRecordsService {
}else {
List<Long> recordList= new ArrayList<>();
addPreFryRecordsDTO.getRecords().forEach(x->{
if (x.getRecordId()==null){
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
}
PreFryStageChangesDO preFryStageChangesDO = new PreFryStageChangesDO();
preFryStageChangesDO.setStage(addPreFryRecordsDTO.getCurrentStage());
preFryStageChangesDO.setRecordId(x.getRecordId());