|
|
@ -57,7 +57,7 @@ public class KingdeeErpSyncController {
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncUnitInfoFromErp(0, erpSyncInfoVo)));
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncUnitInfoFromErp(0, erpSyncInfoVo)));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
logger.error("同步单位信息错误:" + e.getMessage());
|
|
|
|
logger.error("同步单位信息错误:" + e.getMessage());
|
|
|
|
return R.ok(AjaxResult.error(e.getMessage()));
|
|
|
|
return R.fail(AjaxResult.error(e.getMessage()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -72,7 +72,7 @@ public class KingdeeErpSyncController {
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncSupplierInfoFromErp(0, erpSyncInfoVo)));
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncSupplierInfoFromErp(0, erpSyncInfoVo)));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
logger.error("同步供应商信息错误:" + e.getMessage());
|
|
|
|
logger.error("同步供应商信息错误:" + e.getMessage());
|
|
|
|
return R.ok(AjaxResult.error(e.getMessage()));
|
|
|
|
return R.fail(AjaxResult.error(e.getMessage()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -87,7 +87,7 @@ public class KingdeeErpSyncController {
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncMaterialInfoFromErp(0, erpSyncInfoVo)));
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncMaterialInfoFromErp(0, erpSyncInfoVo)));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
logger.error("同步物料信息错误:" + e.getMessage());
|
|
|
|
logger.error("同步物料信息错误:" + e.getMessage());
|
|
|
|
return R.ok(AjaxResult.error(e.getMessage()));
|
|
|
|
return R.fail(AjaxResult.error(e.getMessage()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -104,7 +104,7 @@ public class KingdeeErpSyncController {
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncProjectInfoFromErp(0, erpSyncInfoVo)));
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncProjectInfoFromErp(0, erpSyncInfoVo)));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
logger.error("同步项目信息错误:" + e.getMessage());
|
|
|
|
logger.error("同步项目信息错误:" + e.getMessage());
|
|
|
|
return R.ok(AjaxResult.error(e.getMessage()));
|
|
|
|
return R.fail(AjaxResult.error(e.getMessage()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -119,7 +119,7 @@ public class KingdeeErpSyncController {
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncSaleOrderFromErp(0, erpSyncInfoVo)));
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncSaleOrderFromErp(0, erpSyncInfoVo)));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
logger.error("同步销售订单信息错误:" + e.getMessage());
|
|
|
|
logger.error("同步销售订单信息错误:" + e.getMessage());
|
|
|
|
return R.ok(AjaxResult.error(e.getMessage()));
|
|
|
|
return R.fail(AjaxResult.error(e.getMessage()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -135,7 +135,7 @@ public class KingdeeErpSyncController {
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncPurchaseOrderFromErp(0, erpSyncInfoVo)));
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncPurchaseOrderFromErp(0, erpSyncInfoVo)));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
logger.error("同步采购订单信息错误:" + e.getMessage());
|
|
|
|
logger.error("同步采购订单信息错误:" + e.getMessage());
|
|
|
|
return R.ok(AjaxResult.error(e.getMessage()));
|
|
|
|
return R.fail(AjaxResult.error(e.getMessage()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -150,7 +150,7 @@ public class KingdeeErpSyncController {
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncPurchaseReceiveBillFromErp(0, erpSyncInfoVo)));
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpSyncService.syncPurchaseReceiveBillFromErp(0, erpSyncInfoVo)));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
logger.error("同步采购收料单信息错误:" + e.getMessage());
|
|
|
|
logger.error("同步采购收料单信息错误:" + e.getMessage());
|
|
|
|
return R.ok(AjaxResult.error(e.getMessage()));
|
|
|
|
return R.fail(AjaxResult.error(e.getMessage()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -168,7 +168,7 @@ public class KingdeeErpSyncController {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpService.singleSavePurchaseRequisition(params)));
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpService.singleSavePurchaseRequisition(params)));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
return R.ok(AjaxResult.error(e.toString()));
|
|
|
|
return R.fail(AjaxResult.error(e.toString()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -186,7 +186,7 @@ public class KingdeeErpSyncController {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpService.savePurchaseStorage(params)));
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpService.savePurchaseStorage(params)));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
return R.ok(AjaxResult.error(e.toString()));
|
|
|
|
return R.fail(AjaxResult.error(e.toString()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -201,7 +201,7 @@ public class KingdeeErpSyncController {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpService.saveOtherOutStorage(params)));
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpService.saveOtherOutStorage(params)));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
return R.ok(AjaxResult.error(e.toString()));
|
|
|
|
return R.fail(AjaxResult.error(e.toString()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -217,7 +217,7 @@ public class KingdeeErpSyncController {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpService.saveOtherInStorage(params)));
|
|
|
|
return R.ok(AjaxResult.success(kingdeeErpService.saveOtherInStorage(params)));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
return R.ok(AjaxResult.error(e.toString()));
|
|
|
|
return R.fail(AjaxResult.error(e.toString()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|