|
|
@ -18,6 +18,7 @@ |
|
|
|
package com.epmet.opendata.service.impl; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
@ -165,8 +166,13 @@ public class UserPatrolRecordServiceImpl extends BaseServiceImpl<UserPatrolRecor |
|
|
|
return false; |
|
|
|
} |
|
|
|
if (isReload){ |
|
|
|
userPatrolDetailService.deleteByCustomerId(list.get(0).getCustomerId()); |
|
|
|
int i = userPatrolDetailService.deleteByCustomerId(list.get(0).getCustomerId()); |
|
|
|
log.info("insertRecordBatch del patrol effectRow:{}",i); |
|
|
|
} |
|
|
|
LambdaQueryWrapper<UserPatrolRecordEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(UserPatrolRecordEntity::getCustomerId, list.get(0).getCustomerId()); |
|
|
|
int delete = baseDao.delete(wrapper); |
|
|
|
log.info("insertRecordBatch del patrol effectRow:{}",delete); |
|
|
|
this.insertBatch(insertList, NumConstant.ONE_HUNDRED); |
|
|
|
List<UserPatrolDetailEntity> insertDetailList = new ArrayList<>(); |
|
|
|
list.forEach(o-> { |
|
|
|