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