我必须在服务Java类中执行这种灵活的搜索查询:
select sum({oe:totalPrice})
from {Order as or join CustomerOrderStatus as os on {or:CustomerOrderStatus}={os:pk}
join OrderEntry as oe on {or.pk}={oe.order}}
where {or:versionID} is null and {or:orderType} in (8796093066999)
and {or:company} in (8796093710341)
and {or:pointOfSale} in (8796097413125)
and {oe:ecCode} in ('13','14')
and {or:yearSeason} in (8796093066981)
and {os:code} not in ('CANCELED', 'NOT_APPROVED')
Run Code Online (Sandbox Code Playgroud)
当我在hybris管理控制台中执行此查询时,我正确获取:
1164.00000000
在我的Java服务类中,我写了这个:
private BigDecimal findGroupedOrdersData(String total, String uncDisc, String orderPromo,
Map<String, Object> queryParameters) {
BigDecimal aggregatedValue = new BigDecimal(0);
final StringBuilder queryBuilder = new StringBuilder();
queryBuilder.append("select sum({oe:").append(total).append("})");
queryBuilder.append(
" from …
Run Code Online (Sandbox Code Playgroud) 只是想知道如何在 hybris 中导出用户组的访问权限。搜索了 hybris wiki,但 git 没有帮助...
基本上我想检索数据(例如):
用户组读取创建更改
CronJobGroup + - +
提前致谢,
ant update
构建 Hybris 项目后,我尝试从命令行运行,但它运行更新运行系统、从数据库清除 hMC 配置、创建基本数据和本地化类型(请参阅下图):
有没有办法从命令行运行ant update
命令,以便它只选择“更新运行系统”?
我可以传递什么参数ant update
来只运行“更新运行系统”而不是任何其他选项?
我的 project.properties 中有一个键作为 userKey=value
我想在 java 中使用 configservice 读取 jsp 中的值。有没有可能做到?
我试着用
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<spring:message code="label.username"/>
<spring:message code="label.password"/>
Run Code Online (Sandbox Code Playgroud)
但它失败并出现以下错误:
WARN [hybrisHTTP30] [DefaultCMSComponentRendererRegistry] 处理组件标记时出错。currentComponent [MerchGenericMediaComponentModel (8800615040060@15)] 异常:javax.serv 2017 年 9 月 14 日下午 2:31:16 org.apache.catalina.core.ApplicationDispatcher 调用严重:servlet jsp 的 Servlet.service() 抛出异常 javax.servlet。 jsp.JspTagException:在语言环境“en”的代码“userKey”下找不到消息。在 org.springframework.web.servlet.tags.MessageTag.doEndTag(MessageTag.java:200) 在 org.apache.jsp.WEB_002dINF.views.mobile.cms.th.merchgenericmediacomponent_jsp._jspx_meth_spring_005fmessage_005f0(merch_orgcomponent)at .apache.jsp.WEB_002dINF.views.mobile.cms.th.merchgenericmediacomponent_jsp._jspService(merchgenericmediacomponent_jsp.java:
在 hybris 中创建页面时,我们创建 PageTemplate ,然后创建内容槽。每个内容槽都有与之关联的组件。内容槽映射到 PageTemplate。最后我们将 PageTemplate 映射到 ContentPage。这就是在 hybris 中创建 Page 的方式。
由于我们已经有用于工作的页面模板的内容槽,那么为什么我们有 ContentSlotName 以及我们为什么要使用它?
我们可以避免它创建正常的内容页面和电子邮件页面吗?
与将持久性类型设置为在数据库中持久化的属性的属性相比,动态属性具有非持久性值
SAP Hybris Commerce 允许使用称为 jalo 属性或 jalo-only 属性的非持久性属性。
Jalo 属性已弃用,取而代之的是动态属性。
我仍然看到 Hybris 仍在使用两者。
那么,它们之间有什么区别呢?
每个的目的是什么?
谢谢
我正在运行 Hybris 6.6 并且正在构建一个新的插件,它基本上是一个控制器和相应的 JSP。然而,在运行时,Hybris 没有找到控制器 bean 并在店面文件夹中搜索 JSP(它不存在,因为 JSP 位于店面插件文件夹中)。
我使用 extgen 创建了插件,然后也使用 ant 将其安装在店面中。
脚步:
我已经调试了代码,当 Hybris 尝试通过 getBeanFactory().contains(controller) 查找是否有控制器时,它返回 false。如果我查看 bean 工厂返回的 bean 列表,则控制器的 bean 不在那里。
关于发生了什么的任何线索?我什至尝试在 -web-spring.xml 上显式创建控制器 bean,但没有改变任何东西。
谢谢
我正在运行我的开发人员 Hybris 实例,我收到一条消息,说我的许可证已过期。
根据维基,它说我必须重新初始化数据库才能继续我的工作
*** LICENSE VERIFICATION HAS FAILED! ***
*************************************************************
Your demo/develop license has expired, it is valid only for 30 days. If you're using develop licence you need to reinitialize database to continue your work. *************************************************************
Hybris licence [licence.advancedsecurity.true;licence.clustering.true;licence.date.2013.03.27;licence.email.support@hybris.com;licence.endcustomer=hybris AG;licence.eulaversion=2.0;licence.expiration.;licence.highperformance.true;licence.id=000001-001;licence.name=hybris Demo Licence;licence.version=5.0;]
Shutting down hybris registry..
archiving 1 old GC log files to log\solr\instances\default\archived
archiving 1 console log files to \log\solr\instances\default\archived
Rotating solr logs, keeping a max of 9 generations
Waiting up to 30 to see Solr running …
Run Code Online (Sandbox Code Playgroud) 我只是将我的 Mac OS 更新到 Catalina 版本并且我的 Hybris 服务器停止打开。所以在命令 ./hybrisserver.sh start 我得到这个
MacBook-Pro-Sasha:platform sashayukhimchuk$ ./hybrisserver.sh start 在 Tomcat 上启动 hybrisPlatform... /Users/sashayukhimchuk/hybris/CXCOMM181100P_1-70004085/hybris/bin/platform/tomcat/bin/wrapper388: line1 4614 阵亡:9
"/Users/sashayukhimchuk/hybris/CXCOMM181100P_1-70004085/hybris/bin/platform/tomcat/bin/./wrapper-macosx-universal-64" "/Users/sashayukhimchuk/hybris/CXCOMM181178/platform/hybris / tomcat/conf/wrapper.conf" wrapper.syslog.ident="hybrisPlatform" wrapper.pidfile="/Users/sashayukhimchuk/hybris/CXCOMM181100P_1-70004085/hybris/bin/platform/tomcat/bin/hybrisPlatform.pid" wrapper.daemonize =TRUE wrapper.name="hybrisPlatform" wrapper.displayname="hybrisPlatform on Tomcat" wrapper.statusfile="/Users/sashayukhimchuk/hybris/CXCOMM181100P_1-70004085/hybris/bin/platform/tomcat/bin/hybrisPlatform.status" wrapper. java.statusfile="/Users/sashayukhimchuk/hybris/CXCOMM181100P_1-70004085/hybris/bin/platform/tomcat/bin/hybrisPlatform.java.status" 包装器。script.version=3.5.29 -- 正在等待 Tomcat 上的 hybrisPlatform ...................... 警告:Tomcat 上的 hybrisPlatform 可能无法启动。
hybris ×10
java ×4
add-on ×1
ant ×1
components ×1
deployment ×1
devops ×1
jsp ×1
license-key ×1
spring ×1
spring-mvc ×1
tomcat ×1