|
@@ -5,17 +5,14 @@ import java.time.LocalDateTime;
|
|
|
import java.time.ZoneId;
|
|
|
import java.time.temporal.ChronoUnit;
|
|
|
import java.util.*;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
-import cn.hutool.core.bean.copier.CopyOptions;
|
|
|
import cn.hutool.core.date.DateUnit;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
import com.qmrb.system.pojo.entity.CarPark;
|
|
|
import com.qmrb.system.pojo.entity.MyCarPlateNumber;
|
|
|
import com.qmrb.system.service.ICarParkService;
|
|
|
import com.qmrb.system.service.IMyCarPlateNumberService;
|
|
|
-import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -193,6 +190,7 @@ public class BarnRecordServiceImpl extends ServiceImpl<BarnRecordMapper, BarnRec
|
|
|
public List<BarnRecordForm> saveBatchOrUpdate(@Valid List<BarnRecordForm> list) {
|
|
|
List<BarnRecord> saveList = new ArrayList<>();
|
|
|
List<BarnRecord> updateList = new ArrayList<>();
|
|
|
+ List<BarnRecord> result = new ArrayList<>();
|
|
|
for (BarnRecordForm barnRecordForm : list) {
|
|
|
BarnRecord barnRecord = new BarnRecord();
|
|
|
BeanUtil.copyProperties(barnRecordForm, barnRecord);
|