|
@@ -216,6 +216,38 @@ public class DataListener {
|
|
SpringUtils.getBean(ICenterdataTFarmGreenhouseFilmInfoService.class).save(centerdataTEnvironmentSewageOutlet);
|
|
SpringUtils.getBean(ICenterdataTFarmGreenhouseFilmInfoService.class).save(centerdataTEnvironmentSewageOutlet);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
|
|
+ case DocumentNameConstants.FARM_TRASHCAN:// 垃圾桶
|
|
|
|
+ if (dataBO.getType().equals(BusinessType.DELETE)) {
|
|
|
|
+ SpringUtils.getBean(ICenterdataTFarmTrashCanService.class).deleteAllById(result);
|
|
|
|
+ } else {
|
|
|
|
+ FarmTrashCan farmTrashCan = JSON.parseObject(dataBO.getModelStr(), FarmTrashCan.class);
|
|
|
|
+ SpringUtils.getBean(ICenterdataTFarmTrashCanService.class).save(farmTrashCan);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case DocumentNameConstants.FARM_GARBAGE_TRANSFER:// 垃圾转输站
|
|
|
|
+ if (dataBO.getType().equals(BusinessType.DELETE)) {
|
|
|
|
+ SpringUtils.getBean(ICenterdataTFarmGarbageTransferService.class).deleteAllById(result);
|
|
|
|
+ } else {
|
|
|
|
+ FarmGarbageTransfer farmGarbageTransfer = JSON.parseObject(dataBO.getModelStr(), FarmGarbageTransfer.class);
|
|
|
|
+ SpringUtils.getBean(ICenterdataTFarmGarbageTransferService.class).save(farmGarbageTransfer);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case DocumentNameConstants.FARM_CESSPIT_COLLECT:// 粪污收集点
|
|
|
|
+ if (dataBO.getType().equals(BusinessType.DELETE)) {
|
|
|
|
+ SpringUtils.getBean(ICenterdataTFarmCesspitCollectService.class).deleteAllById(result);
|
|
|
|
+ } else {
|
|
|
|
+ FarmCesspitCollect farmCesspitCollect = JSON.parseObject(dataBO.getModelStr(), FarmCesspitCollect.class);
|
|
|
|
+ SpringUtils.getBean(ICenterdataTFarmCesspitCollectService.class).save(farmCesspitCollect);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case DocumentNameConstants.FARM_BREEDING_FARM:// 养殖场
|
|
|
|
+ if (dataBO.getType().equals(BusinessType.DELETE)) {
|
|
|
|
+ SpringUtils.getBean(ICenterdataTFarmBreedingFarmService.class).deleteAllById(result);
|
|
|
|
+ } else {
|
|
|
|
+ FarmBreedingFarm farmBreedingFarm = JSON.parseObject(dataBO.getModelStr(), FarmBreedingFarm.class);
|
|
|
|
+ SpringUtils.getBean(ICenterdataTFarmBreedingFarmService.class).save(farmBreedingFarm);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
case DocumentNameConstants.FARM_COLLECTIVE_FARMLAND:// 农村集体耕地
|
|
case DocumentNameConstants.FARM_COLLECTIVE_FARMLAND:// 农村集体耕地
|
|
if (dataBO.getType().equals(BusinessType.DELETE)) {
|
|
if (dataBO.getType().equals(BusinessType.DELETE)) {
|
|
SpringUtils.getBean(ICenterdataTFarmCollectiveFarmlandService.class).deleteAllById(result);
|
|
SpringUtils.getBean(ICenterdataTFarmCollectiveFarmlandService.class).deleteAllById(result);
|