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