Procházet zdrojové kódy

TASK 45751 地块属性和地块经营

master
yangfuda před 1 týdnem
rodič
revize
648cdf5531
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. +6
    -1
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/resource/TResourceOperationController.java

+ 6
- 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/resource/TResourceOperationController.java Zobrazit soubor

@@ -187,7 +187,12 @@ public class TResourceOperationController extends BaseController
if(dept.getOrgCode().length() < 12){
return error("非村、组级行政区划,不允许添加地块!");
}

TResourceLand tResourceLand = tResourceLandService.selectTResourceLandByDkbm(tResourceOperation.getDkbm());
if(tResourceLand != null){
tResourceLand.setDkbm(tResourceOperation.getDkbm());
tResourceLand.setSurveyStatus(tResourceOperation.getSurveyStatus());
tResourceLandService.updateTResourceLand(tResourceLand);
}
tResourceOperation.setImportCode(dept.getImportCode());
return toAjax(tResourceOperationService.insertTResourceOperation(tResourceOperation));
}


Načítá se…
Zrušit
Uložit