EbPartnerShipPortlet.java 文件源码

java
阅读 15 收藏 0 点赞 0 评论 0

项目:OEPv2 作者:
public void updateEbPartnerShip(ActionRequest actionRequest,
        ActionResponse actionResponse) throws PortletException {
    try {
        ServiceContext serviceContext = ServiceContextThreadLocal.getServiceContext();
        long ebPartnerShipId = ParamUtil.getLong(actionRequest, "ebPartnerShipId");

        String name = ParamUtil.getString(actionRequest, "name");
        String cpaId = ParamUtil.getString(actionRequest, "cpaId");
        String service = ParamUtil.getString(actionRequest, "service");

        EbPartnerShip ebPartnerShip = EbPartnerShipLocalServiceUtil.getEbPartnerShip(ebPartnerShipId);
        if (ebPartnerShip != null) {
            ebPartnerShip = EbPartnerShipLocalServiceUtil.updateEbPartnerShip(ebPartnerShipId, name, cpaId, service, serviceContext);                                       
        } else {
            _log.error("Could not find eb partner ship.");
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号