|
@ -166,8 +166,8 @@ public class EpidemicPlotCoordinateServiceImpl extends CrudServiceImpl<EpidemicP |
|
|
List<EpidemicPlotCoordinateEntity> lists = epidemicPlotCoordinateDao.selectList(wrapper); |
|
|
List<EpidemicPlotCoordinateEntity> lists = epidemicPlotCoordinateDao.selectList(wrapper); |
|
|
|
|
|
|
|
|
if (lists.isEmpty()) { |
|
|
if (lists.isEmpty()) { |
|
|
int maCode = getMaxCode(); |
|
|
// int maCode = getMaxCode();
|
|
|
dto.setPlotMaCode(maCode); |
|
|
// dto.setPlotMaCode(maCode);
|
|
|
EpidemicPlotCoordinateEntity entity = ConvertUtils.sourceToTarget(dto, EpidemicPlotCoordinateEntity.class); |
|
|
EpidemicPlotCoordinateEntity entity = ConvertUtils.sourceToTarget(dto, EpidemicPlotCoordinateEntity.class); |
|
|
insert(entity); |
|
|
insert(entity); |
|
|
saveOrUpdateRelation(entity.getId(), dto.getGridIds()); |
|
|
saveOrUpdateRelation(entity.getId(), dto.getGridIds()); |
|
|