feat:预炸
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user