Commit 78cf6847 authored by luben's avatar luben

feat 地块

parent 96a9217d
......@@ -1033,6 +1033,20 @@ public class RegionController extends BaseController {
}else {
body.setStatus(level);
}
if(body.getWgType()==null && body.getWgParentId()!=null){
String type = body.getWgParentId().substring(12, 14);
if(type.equals("LY")){
body.setWgType("1");
} else if (type.equals("DL")) {
body.setWgType("4");
} else if (type.equals("JQ")) {
body.setWgType("5");
} else if (type.equals("SC")) {
body.setWgType("7");
} else{
body.setWgType("6");
}
}
body.setPosition(gridRegionMapper.selectMaxPosition()+1);
return gridRegionFacadeService.commit(body, "insert");
} catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment