feat:产品ID不能为空
This commit is contained in:
@@ -75,6 +75,9 @@ public class PreFryRecordsServiceImpl implements PreFryRecordsService {
|
||||
List<PreFryStageChangesDO> list = new ArrayList<>();
|
||||
if (addPreFryRecordsFlag(minApplyTypeByStoreCode.getApplyType(), addPreFryRecordsDTO.getCurrentStage())){
|
||||
addPreFryRecordsDTO.getRecords().forEach(x->{
|
||||
if (x.getProductId()==null){
|
||||
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
|
||||
}
|
||||
PreFryRecordsDO preFryRecordsDO = new PreFryRecordsDO();
|
||||
preFryRecordsDO.setStoreCode(addPreFryRecordsDTO.getStoreCode());
|
||||
preFryRecordsDO.setProductId(x.getProductId());
|
||||
|
||||
Reference in New Issue
Block a user