feat (farm): 物种库,灾害库
- 删除同步
This commit is contained in:
@@ -179,13 +179,14 @@ public class DisasterDataServiceImpl implements DisasterDataService {
|
||||
public void deleteDisasterData(String id) {
|
||||
// 校验存在
|
||||
validateDisasterDataExists(id);
|
||||
// 同步
|
||||
this.syncDeleteDict(id);
|
||||
// 删除
|
||||
DisasterDataDO aDo = new DisasterDataDO();
|
||||
aDo.setId(id);
|
||||
aDo.setDeleted(true);
|
||||
disasterDataMapper.updateById(aDo);
|
||||
// 同步
|
||||
this.syncDeleteDict(id);
|
||||
|
||||
}
|
||||
|
||||
private void syncDeleteDict(String id) {
|
||||
|
||||
@@ -125,10 +125,11 @@ public class SpeciesLibraryServiceImpl implements SpeciesLibraryService {
|
||||
public void deleteSpeciesLibrary(String id) {
|
||||
// 校验存在
|
||||
validateSpeciesLibraryExists(id);
|
||||
// 删除
|
||||
speciesLibraryMapper.deleteById(id);
|
||||
// 同步
|
||||
this.syncDeleteDict(id);
|
||||
// 删除
|
||||
speciesLibraryMapper.deleteById(id);
|
||||
|
||||
}
|
||||
|
||||
private void syncDeleteDict(String id) {
|
||||
|
||||
Reference in New Issue
Block a user