|
|
@ -34,7 +34,6 @@ import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
@ -190,7 +189,7 @@ public class GridInfoPingyinServiceImpl extends BaseServiceImpl<GridInfoPingyinD |
|
|
|
entity.setGridName(ag.getGridName()); |
|
|
|
entity.setGridLevel("07"); |
|
|
|
entity.setIsDel("N"); |
|
|
|
entity.setUpdateTime(new Date()); |
|
|
|
entity.setUpdateTime(null); |
|
|
|
if (ag.getLatitude().length() > 10) { |
|
|
|
entity.setLat(new BigDecimal(ag.getLatitude().substring(0, 10))); |
|
|
|
} else { |
|
|
@ -259,7 +258,7 @@ public class GridInfoPingyinServiceImpl extends BaseServiceImpl<GridInfoPingyinD |
|
|
|
if (StringUtils.isNotBlank(formDTO.getOldCode()) && !formDTO.getOldCode().equals(entity.getGridCode())){ |
|
|
|
GridInfoPingyinEntity gridInfoEntity = new GridInfoPingyinEntity(); |
|
|
|
gridInfoEntity.setGridCode(entity.getGridCode()); |
|
|
|
gridInfoEntity.setUpdateTime(new Date()); |
|
|
|
gridInfoEntity.setUpdateTime(null); |
|
|
|
LambdaUpdateWrapper<GridInfoPingyinEntity> updateWrapper = new LambdaUpdateWrapper<>(); |
|
|
|
updateWrapper.eq(GridInfoPingyinEntity::getGridCode,formDTO.getOldCode()); |
|
|
|
int update = baseDao.update(gridInfoEntity, updateWrapper); |
|
|
@ -268,7 +267,7 @@ public class GridInfoPingyinServiceImpl extends BaseServiceImpl<GridInfoPingyinD |
|
|
|
|
|
|
|
GridstaffInfoPingyinEntity staffInfo = new GridstaffInfoPingyinEntity(); |
|
|
|
staffInfo.setGridCode(entity.getGridCode()); |
|
|
|
staffInfo.setUpdateTime(new Date()); |
|
|
|
staffInfo.setUpdateTime(null); |
|
|
|
|
|
|
|
LambdaUpdateWrapper<GridstaffInfoPingyinEntity> staffInfoWrapper = new LambdaUpdateWrapper<>(); |
|
|
|
staffInfoWrapper.eq(GridstaffInfoPingyinEntity::getGridCode,formDTO.getOldCode()); |
|
|
@ -277,7 +276,7 @@ public class GridInfoPingyinServiceImpl extends BaseServiceImpl<GridInfoPingyinD |
|
|
|
|
|
|
|
GridstaffWorkInfoPingyinEntity workInfo = new GridstaffWorkInfoPingyinEntity(); |
|
|
|
workInfo.setGridCode(entity.getGridCode()); |
|
|
|
workInfo.setUpdateTime(new Date()); |
|
|
|
workInfo.setUpdateTime(null); |
|
|
|
|
|
|
|
LambdaUpdateWrapper<GridstaffWorkInfoPingyinEntity> workInfoWrapper = new LambdaUpdateWrapper<>(); |
|
|
|
workInfoWrapper.eq(GridstaffWorkInfoPingyinEntity::getGridCode,formDTO.getOldCode()); |
|
|
@ -286,7 +285,7 @@ public class GridInfoPingyinServiceImpl extends BaseServiceImpl<GridInfoPingyinD |
|
|
|
|
|
|
|
EventreportPingyinEntity eventEntity = new EventreportPingyinEntity(); |
|
|
|
eventEntity.setGridCode(entity.getGridCode()); |
|
|
|
eventEntity.setUpdateTime(new Date()); |
|
|
|
eventEntity.setUpdateTime(null); |
|
|
|
|
|
|
|
LambdaUpdateWrapper<EventreportPingyinEntity> eventWrapper = new LambdaUpdateWrapper<>(); |
|
|
|
eventWrapper.eq(EventreportPingyinEntity::getGridCode,formDTO.getOldCode()); |
|
|
|