Ver código fonte

TASK 45751 地块属性和地块经营

master
yangfuda 1 semana atrás
pai
commit
648cdf5531
1 arquivos alterados com 6 adições e 1 exclusões
  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 Ver arquivo

@@ -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));
}


Carregando…
Cancelar
Salvar