+18
@@ -1234,6 +1234,10 @@ public class LayoutSyncController extends OnlBaseAnnotationController implements
|
||||
JSONObject layout = (JSONObject) layoutArray.get(i);
|
||||
syncLayout(param, body, command, layout);
|
||||
|
||||
if (StringUtils.isEmpty(interfaceId)) {
|
||||
isDevMake = isDevMake(layout);
|
||||
}
|
||||
|
||||
if (isDevMake) {
|
||||
String layoutName = (String) layout.get("id");
|
||||
layoutName = layoutName.substring(0,12) + "D" + layoutName.substring(12);
|
||||
@@ -1244,6 +1248,10 @@ public class LayoutSyncController extends OnlBaseAnnotationController implements
|
||||
} else {
|
||||
JSONObject layout = (JSONObject) layoutObject;
|
||||
syncLayout(param, body, command, layout);
|
||||
|
||||
if (StringUtils.isEmpty(interfaceId)) {
|
||||
isDevMake = isDevMake(layout);
|
||||
}
|
||||
|
||||
if (isDevMake) {
|
||||
String layoutName = (String) layout.get("id");
|
||||
@@ -1255,6 +1263,9 @@ public class LayoutSyncController extends OnlBaseAnnotationController implements
|
||||
}
|
||||
|
||||
private boolean isDevMake(String interfaceId) throws Exception {
|
||||
if (StringUtils.isEmpty(interfaceId)) {
|
||||
return false;
|
||||
}
|
||||
//interfaceId 9번째 글자가 D이면 false
|
||||
if ("D".equals(interfaceId.substring(7,8))) {
|
||||
return false;
|
||||
@@ -1268,6 +1279,13 @@ public class LayoutSyncController extends OnlBaseAnnotationController implements
|
||||
return interfaceService.existsInterface(devInterfaceId);
|
||||
}
|
||||
|
||||
private boolean isDevMake(JSONObject layout) throws Exception {
|
||||
String loutName = (String) layout.get("id");
|
||||
String[] parts = loutName.split("_");
|
||||
String interfaceId = parts[1];
|
||||
return isDevMake(interfaceId);
|
||||
}
|
||||
|
||||
private void insertInterfaceDjb(String interfaceId, JSONObject body, HashMap<String, String> param) throws Exception
|
||||
{
|
||||
String bizCode = (String) body.get("bzSystemCode");
|
||||
|
||||
Reference in New Issue
Block a user