Commit 26a9a78c authored by luben's avatar luben

Merge branch 'dev' into 'main'

Dev

See merge request !66
parents b42dd157 8f369fa8
Pipeline #143011 passed with stages
in 3 minutes and 19 seconds
...@@ -148,6 +148,12 @@ public class RegionController extends BaseController { ...@@ -148,6 +148,12 @@ public class RegionController extends BaseController {
@ResponseBody @ResponseBody
public String insert(@RequestBody GridRegion body) { public String insert(@RequestBody GridRegion body) {
try { try {
String level = body.getLevel();
if(level.equals("1")||level.equals("2")){
body.setStatus("1");
}else {
body.setStatus(level);
}
return gridRegionFacadeService.commit(body, "insert"); return gridRegionFacadeService.commit(body, "insert");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
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