Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
d0b5a968
提交
d0b5a968
编写于
7月 03, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
cef9606d
变更
131
显示空白字符变更
内嵌
并排
正在显示
131 个修改的文件
包含
3803 行增加
和
1127 行删除
+3803
-1127
data-dictionary.json
app_CRM/public/assets/json/data-dictionary.json
+27
-0
app-actionbar.vue
app_CRM/src/components/app-actionbar/app-actionbar.vue
+9
-2
codelist_en_US.ts
app_CRM/src/locale/lanres/codelist/codelist_en_US.ts
+5
-0
codelist_zh_CN.ts
app_CRM/src/locale/lanres/codelist/codelist_zh_CN.ts
+5
-0
knowledge-article-incident_en_US.ts
...edge-article-incident/knowledge-article-incident_en_US.ts
+1
-0
knowledge-article-incident_zh_CN.ts
...edge-article-incident/knowledge-article-incident_zh_CN.ts
+1
-0
product-association_en_US.ts
...entities/product-association/product-association_en_US.ts
+1
-0
product-association_zh_CN.ts
...entities/product-association/product-association_zh_CN.ts
+1
-0
product-price-level_en_US.ts
...entities/product-price-level/product-price-level_en_US.ts
+1
-0
product-price-level_zh_CN.ts
...entities/product-price-level/product-price-level_zh_CN.ts
+1
-0
codelist.ts
app_CRM/src/mock/codelist/codelist.ts
+27
-0
account-grid-view.html
...M/src/pages/base/account-grid-view/account-grid-view.html
+1
-1
account-inner-pickup-grid-view.html
...nner-pickup-grid-view/account-inner-pickup-grid-view.html
+1
-1
account-pickup-grid-view.html
...se/account-pickup-grid-view/account-pickup-grid-view.html
+1
-1
activity-pointer-by-parent-key.html
...pointer-by-parent-key/activity-pointer-by-parent-key.html
+1
-1
activity-pointer-grid-view.html
...ctivity-pointer-grid-view/activity-pointer-grid-view.html
+1
-1
contact-by-account.html
...src/pages/base/contact-by-account/contact-by-account.html
+1
-1
contact-grid-view.html
...M/src/pages/base/contact-grid-view/contact-grid-view.html
+1
-1
contact-pickup-grid-view.html
...se/contact-pickup-grid-view/contact-pickup-grid-view.html
+1
-1
metric-grid-view.html
...CRM/src/pages/base/metric-grid-view/metric-grid-view.html
+1
-1
metric-pickup-grid-view.html
...base/metric-pickup-grid-view/metric-pickup-grid-view.html
+1
-1
subject-pickup-grid-view.html
...se/subject-pickup-grid-view/subject-pickup-grid-view.html
+1
-1
transaction-currency-pickup-grid-view.html
...ckup-grid-view/transaction-currency-pickup-grid-view.html
+1
-1
uom-pickup-grid-view.html
...pages/base/uom-pickup-grid-view/uom-pickup-grid-view.html
+1
-1
invoice-detail-invoice-pro-grid-view.html
...e-pro-grid-view/invoice-detail-invoice-pro-grid-view.html
+1
-1
invoice-grid-view.html
...rc/pages/finance/invoice-grid-view/invoice-grid-view.html
+1
-1
campaign-activity-by-parent-key.html
...tivity-by-parent-key/campaign-activity-by-parent-key.html
+1
-1
campaign-grid-view.html
...ages/marketing/campaign-grid-view/campaign-grid-view.html
+1
-1
campaign-list-grid-view.html
...ting/campaign-list-grid-view/campaign-list-grid-view.html
+1
-1
campaign-response-by-parent-key.html
...sponse-by-parent-key/campaign-response-by-parent-key.html
+1
-1
ibiz-list-grid-view.html
...es/marketing/ibiz-list-grid-view/ibiz-list-grid-view.html
+1
-1
list-account-by-list.html
.../marketing/list-account-by-list/list-account-by-list.html
+1
-1
list-account-inner.html
...ages/marketing/list-account-inner/list-account-inner.html
+1
-1
list-contact-grid-view.html
...keting/list-contact-grid-view/list-contact-grid-view.html
+1
-1
list-contact-inner.html
...ages/marketing/list-contact-inner/list-contact-inner.html
+1
-1
list-lead-by-list.html
.../pages/marketing/list-lead-by-list/list-lead-by-list.html
+1
-1
price-level-pickup-grid-view.html
...-level-pickup-grid-view/price-level-pickup-grid-view.html
+1
-1
product-association-edit-view-base.tsx
...ociation-edit-view/product-association-edit-view-base.tsx
+1
-0
product-association-grid-view-base.tsx
...ociation-grid-view/product-association-grid-view-base.tsx
+1
-0
product-association-grid-view.html
...-association-grid-view/product-association-grid-view.html
+1
-1
product-grid-view.html
...rc/pages/product/product-grid-view/product-grid-view.html
+1
-1
product-pickup-grid-view.html
...ct/product-pickup-grid-view/product-pickup-grid-view.html
+1
-1
product-price-level-pro-prilv-edit-view-base.tsx
...dit-view/product-price-level-pro-prilv-edit-view-base.tsx
+1
-0
product-price-level-pro-prilv-grid-view-base.tsx
...rid-view/product-price-level-pro-prilv-grid-view-base.tsx
+1
-0
product-price-level-pro-prilv-grid-view.html
...lv-grid-view/product-price-level-pro-prilv-grid-view.html
+1
-1
product-substitute-grid-view.html
...ct-substitute-grid-view/product-substitute-grid-view.html
+1
-1
competitor-grid-view.html
...ages/sales/competitor-grid-view/competitor-grid-view.html
+1
-1
competitor-pickup-grid-view.html
...petitor-pickup-grid-view/competitor-pickup-grid-view.html
+1
-1
competitor-sales-literature-sal-lit-comp-grid-view.html
...w/competitor-sales-literature-sal-lit-comp-grid-view.html
+1
-1
discount-type-pickup-grid-view.html
...type-pickup-grid-view/discount-type-pickup-grid-view.html
+1
-1
goal-child-goal-grid-view.html
.../goal-child-goal-grid-view/goal-child-goal-grid-view.html
+1
-1
goal-grid-view.html
app_CRM/src/pages/sales/goal-grid-view/goal-grid-view.html
+1
-1
goal-pickup-grid-view.html
...es/sales/goal-pickup-grid-view/goal-pickup-grid-view.html
+1
-1
lead-con-lead-grid-view.html
...ales/lead-con-lead-grid-view/lead-con-lead-grid-view.html
+1
-1
lead-grid-view.html
app_CRM/src/pages/sales/lead-grid-view/lead-grid-view.html
+1
-1
lead-pickup-grid-view.html
...es/sales/lead-pickup-grid-view/lead-pickup-grid-view.html
+1
-1
opportunity-competitor-opp-comp-grid-view.html
...-grid-view/opportunity-competitor-opp-comp-grid-view.html
+1
-1
opportunity-con-opp-grid-view.html
...nity-con-opp-grid-view/opportunity-con-opp-grid-view.html
+1
-1
opportunity-grid-view.html
...es/sales/opportunity-grid-view/opportunity-grid-view.html
+1
-1
opportunity-pickup-grid-view.html
...tunity-pickup-grid-view/opportunity-pickup-grid-view.html
+1
-1
opportunity-product-opp-opp-pro-grid-view.html
...-grid-view/opportunity-product-opp-opp-pro-grid-view.html
+1
-1
product-sales-literature-sal-lit-pro-grid-view.html
...-view/product-sales-literature-sal-lit-pro-grid-view.html
+1
-1
quote-detail-quo-detail-grid-view.html
...o-detail-grid-view/quote-detail-quo-detail-grid-view.html
+1
-1
quote-grid-view.html
app_CRM/src/pages/sales/quote-grid-view/quote-grid-view.html
+1
-1
quote-opp-qua-grid-view.html
...ales/quote-opp-qua-grid-view/quote-opp-qua-grid-view.html
+1
-1
sales-literature-grid-view.html
...ales-literature-grid-view/sales-literature-grid-view.html
+1
-1
sales-literature-item-grid-view.html
...ature-item-grid-view/sales-literature-item-grid-view.html
+1
-1
sales-order-detail-soproduct-grid-view.html
...uct-grid-view/sales-order-detail-soproduct-grid-view.html
+1
-1
sales-order-grid-view.html
...es/sales/sales-order-grid-view/sales-order-grid-view.html
+1
-1
entitlement-pickup-grid-view.html
...lement-pickup-grid-view/entitlement-pickup-grid-view.html
+1
-1
incident-child-incident-grid-view.html
...incident-grid-view/incident-child-incident-grid-view.html
+1
-1
incident-grid-view.html
.../pages/service/incident-grid-view/incident-grid-view.html
+1
-1
campaign-service-base.ts
app_CRM/src/service/campaign/campaign-service-base.ts
+41
-41
ibiz-list-service-base.ts
app_CRM/src/service/ibiz-list/ibiz-list-service-base.ts
+82
-82
knowledge-article-incident-service-base.ts
...ticle-incident/knowledge-article-incident-service-base.ts
+1
-1
opportunity-service-base.ts
app_CRM/src/service/opportunity/opportunity-service-base.ts
+231
-231
product-association-service-base.ts
...e/product-association/product-association-service-base.ts
+1
-1
product-price-level-service-base.ts
...e/product-price-level/product-price-level-service-base.ts
+1
-1
product-service-base.ts
app_CRM/src/service/product/product-service-base.ts
+52
-52
sales-literature-service-base.ts
...service/sales-literature/sales-literature-service-base.ts
+47
-47
VueLifeCycleProcessing.ts
app_CRM/src/studio-core/decorators/VueLifeCycleProcessing.ts
+57
-3
index.ts
app_CRM/src/studio-core/index.ts
+2
-0
GridViewBase.tsx
app_CRM/src/studio-core/view/GridViewBase.tsx
+9
-0
MDViewBase.tsx
app_CRM/src/studio-core/view/MDViewBase.tsx
+0
-10
PickupGridViewBase.tsx
app_CRM/src/studio-core/view/PickupGridViewBase.tsx
+10
-0
EditFormControlBase.tsx
app_CRM/src/studio-core/widgets/EditFormControlBase.tsx
+3
-5
main-form-base.tsx
.../widgets/product-association/main-form/main-form-base.tsx
+3
-0
main-form-model.ts
.../widgets/product-association/main-form/main-form-model.ts
+5
-0
main-grid-model.ts
.../widgets/product-association/main-grid/main-grid-model.ts
+5
-0
main-grid-model.ts
.../widgets/product-price-level/main-grid/main-grid-model.ts
+31
-26
pro-prilv-form-base.tsx
...roduct-price-level/pro-prilv-form/pro-prilv-form-base.tsx
+3
-0
pro-prilv-form-model.ts
...roduct-price-level/pro-prilv-form/pro-prilv-form-model.ts
+5
-0
AuditSearchContext.java
.../businesscentral/core/base/filter/AuditSearchContext.java
+3
-0
KnowledgeArticleViewsSearchContext.java
.../core/base/filter/KnowledgeArticleViewsSearchContext.java
+3
-0
SiteMapSearchContext.java
...usinesscentral/core/base/filter/SiteMapSearchContext.java
+3
-0
SlaItemSearchContext.java
...usinesscentral/core/base/filter/SlaItemSearchContext.java
+3
-0
AnnualFiscalCalendarSearchContext.java
...ore/finance/filter/AnnualFiscalCalendarSearchContext.java
+3
-0
FixedMonthlyFiscalCalendarSearchContext.java
...nance/filter/FixedMonthlyFiscalCalendarSearchContext.java
+3
-0
MonthlyFiscalCalendarSearchContext.java
...re/finance/filter/MonthlyFiscalCalendarSearchContext.java
+3
-0
QuarterlyFiscalCalendarSearchContext.java
.../finance/filter/QuarterlyFiscalCalendarSearchContext.java
+3
-0
SemiannualFiscalCalendarSearchContext.java
...finance/filter/SemiannualFiscalCalendarSearchContext.java
+3
-0
ProductAssociationSearchContext.java
.../core/product/filter/ProductAssociationSearchContext.java
+3
-0
ProductPriceLevelSearchContext.java
...l/core/product/filter/ProductPriceLevelSearchContext.java
+3
-0
BulkDeleteFailureSearchContext.java
...l/core/runtime/filter/BulkDeleteFailureSearchContext.java
+3
-0
QueueItemSearchContext.java
...sscentral/core/runtime/filter/QueueItemSearchContext.java
+3
-0
KnowledgeArticleIncidentSearchContext.java
...service/filter/KnowledgeArticleIncidentSearchContext.java
+3
-0
WebSite.java
.../ibizlab/businesscentral/core/website/domain/WebSite.java
+105
-0
WebSiteChannel.java
...b/businesscentral/core/website/domain/WebSiteChannel.java
+128
-0
WebSiteContent.java
...b/businesscentral/core/website/domain/WebSiteContent.java
+151
-0
WebSiteResource.java
.../businesscentral/core/website/domain/WebSiteResource.java
+128
-0
WebSiteChannelSearchContext.java
...tral/core/website/filter/WebSiteChannelSearchContext.java
+61
-0
WebSiteContentSearchContext.java
...tral/core/website/filter/WebSiteContentSearchContext.java
+68
-0
WebSiteResourceSearchContext.java
...ral/core/website/filter/WebSiteResourceSearchContext.java
+61
-0
WebSiteSearchContext.java
...nesscentral/core/website/filter/WebSiteSearchContext.java
+54
-0
WebSiteChannelMapper.java
...nesscentral/core/website/mapper/WebSiteChannelMapper.java
+67
-0
WebSiteContentMapper.java
...nesscentral/core/website/mapper/WebSiteContentMapper.java
+69
-0
WebSiteMapper.java
...ab/businesscentral/core/website/mapper/WebSiteMapper.java
+65
-0
WebSiteResourceMapper.java
...esscentral/core/website/mapper/WebSiteResourceMapper.java
+67
-0
IWebSiteChannelService.java
...scentral/core/website/service/IWebSiteChannelService.java
+63
-0
IWebSiteContentService.java
...scentral/core/website/service/IWebSiteContentService.java
+65
-0
IWebSiteResourceService.java
...central/core/website/service/IWebSiteResourceService.java
+63
-0
IWebSiteService.java
...businesscentral/core/website/service/IWebSiteService.java
+61
-0
WebSiteChannelServiceImpl.java
.../core/website/service/impl/WebSiteChannelServiceImpl.java
+222
-0
WebSiteContentServiceImpl.java
.../core/website/service/impl/WebSiteContentServiceImpl.java
+232
-0
WebSiteResourceServiceImpl.java
...core/website/service/impl/WebSiteResourceServiceImpl.java
+219
-0
WebSiteServiceImpl.java
...central/core/website/service/impl/WebSiteServiceImpl.java
+215
-0
h2_table.xml
...esscentral-core/src/main/resources/liquibase/h2_table.xml
+672
-568
WebSiteMapper.xml
...c/main/resources/mapper/website/website/WebSiteMapper.xml
+39
-0
WebSiteChannelMapper.xml
...es/mapper/website/websitechannel/WebSiteChannelMapper.xml
+49
-0
WebSiteContentMapper.xml
...es/mapper/website/websitecontent/WebSiteContentMapper.xml
+59
-0
WebSiteResourceMapper.xml
.../mapper/website/websiteresource/WebSiteResourceMapper.xml
+49
-0
未找到文件。
app_CRM/public/assets/json/data-dictionary.json
浏览文件 @
d0b5a968
...
...
@@ -3408,6 +3408,33 @@
}
]
},
{
"srfkey"
:
"Knowledgearticleincident__StateCode"
,
"emptytext"
:
"未定义"
,
"codelisttype"
:
"static"
,
"items"
:
[
{
"id"
:
"1"
,
"label"
:
"停用"
,
"text"
:
"停用"
,
"data"
:
""
,
"codename"
:
"Item_1"
,
"value"
:
"1"
,
"disabled"
:
false
}
,
{
"id"
:
"0"
,
"label"
:
"有效"
,
"text"
:
"有效"
,
"data"
:
""
,
"codename"
:
"Item_0"
,
"value"
:
"0"
,
"disabled"
:
false
}
]
},
{
"srfkey"
:
"Goal__FiscalPeriod"
,
"emptytext"
:
"未定义"
,
...
...
app_CRM/src/components/app-actionbar/app-actionbar.vue
浏览文件 @
d0b5a968
...
...
@@ -6,9 +6,15 @@
:count=
"item.counterService.counterData[item.counterId]"
type=
"info"
>
<i-button
type=
"text"
ghost
@
click=
"handleClick(item.viewlogicname)"
>
{{
item
.
actionName
}}
</i-button>
<i-button
type=
"text"
ghost
@
click=
"handleClick(item.viewlogicname)"
>
<i
v-if=
"item.iconcls != ''"
:class=
"item.iconcls"
/>
{{
item
.
text
}}
</i-button>
</Badge>
<i-button
v-else
type=
"text"
ghost
@
click=
"handleClick(item.viewlogicname)"
>
{{
item
.
actionName
}}
</i-button>
<i-button
v-else
type=
"text"
ghost
@
click=
"handleClick(item.viewlogicname)"
>
<i
v-if=
"item.iconcls != ''"
:class=
"item.iconcls"
/>
{{
item
.
text
}}
</i-button>
</div>
</div>
</
template
>
...
...
@@ -33,6 +39,7 @@ export default class AppActionBar extends Vue {
* @memberof AppActionBar
*/
public
handleClick
(
$event
:
any
)
{
console
.
log
(
this
.
items
);
this
.
$emit
(
"itemClick"
,
$event
);
}
}
...
...
app_CRM/src/locale/lanres/codelist/codelist_en_US.ts
浏览文件 @
d0b5a968
...
...
@@ -441,6 +441,11 @@ export default {
"2"
:
"难题"
,
"empty"
:
""
},
Knowledgearticleincident__StateCode
:
{
"1"
:
"停用"
,
"0"
:
"有效"
,
"empty"
:
""
},
Goal__FiscalPeriod
:
{
"1"
:
"1 季度"
,
"2"
:
"2 季度"
,
...
...
app_CRM/src/locale/lanres/codelist/codelist_zh_CN.ts
浏览文件 @
d0b5a968
...
...
@@ -441,6 +441,11 @@ export default {
"2"
:
"难题"
,
"empty"
:
""
,
},
Knowledgearticleincident__StateCode
:
{
"1"
:
"停用"
,
"0"
:
"有效"
,
"empty"
:
""
,
},
Goal__FiscalPeriod
:
{
"1"
:
"1 季度"
,
"2"
:
"2 季度"
,
...
...
app_CRM/src/locale/lanres/entities/knowledge-article-incident/knowledge-article-incident_en_US.ts
浏览文件 @
d0b5a968
...
...
@@ -41,6 +41,7 @@ export default {
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"KnowledgeArticle 事件"
,
srfmajortext
:
"状态"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
...
...
app_CRM/src/locale/lanres/entities/knowledge-article-incident/knowledge-article-incident_zh_CN.ts
浏览文件 @
d0b5a968
...
...
@@ -40,6 +40,7 @@ export default {
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"KnowledgeArticle 事件"
,
srfmajortext
:
"状态"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
...
...
app_CRM/src/locale/lanres/entities/product-association/product-association_en_US.ts
浏览文件 @
d0b5a968
...
...
@@ -44,6 +44,7 @@ export default {
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"产品关联 ID"
,
srfmajortext
:
"产品名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
...
...
app_CRM/src/locale/lanres/entities/product-association/product-association_zh_CN.ts
浏览文件 @
d0b5a968
...
...
@@ -43,6 +43,7 @@ export default {
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"产品关联 ID"
,
srfmajortext
:
"产品名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
...
...
app_CRM/src/locale/lanres/entities/product-price-level/product-price-level_en_US.ts
浏览文件 @
d0b5a968
...
...
@@ -56,6 +56,7 @@ export default {
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"产品价目表"
,
srfmajortext
:
"产品名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
...
...
app_CRM/src/locale/lanres/entities/product-price-level/product-price-level_zh_CN.ts
浏览文件 @
d0b5a968
...
...
@@ -55,6 +55,7 @@ export default {
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"产品价目表"
,
srfmajortext
:
"产品名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
...
...
app_CRM/src/mock/codelist/codelist.ts
浏览文件 @
d0b5a968
...
...
@@ -3416,6 +3416,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey
:
"Knowledgearticleincident__StateCode"
,
emptytext
:
"未定义"
,
"codelisttype"
:
"static"
,
items
:
[
{
id
:
"1"
,
label
:
"停用"
,
text
:
"停用"
,
"data"
:
""
,
"codename"
:
"Item_1"
,
value
:
"1"
,
disabled
:
false
,
},
{
id
:
"0"
,
label
:
"有效"
,
text
:
"有效"
,
"data"
:
""
,
"codename"
:
"Item_0"
,
value
:
"0"
,
disabled
:
false
,
},
]
},
{
srfkey
:
"Goal__FiscalPeriod"
,
emptytext
:
"未定义"
,
...
...
app_CRM/src/pages/base/account-grid-view/account-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/base/account-inner-pickup-grid-view/account-inner-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -3,7 +3,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/base/account-pickup-grid-view/account-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/base/activity-pointer-by-parent-key/activity-pointer-by-parent-key.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/base/activity-pointer-grid-view/activity-pointer-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -30,7 +30,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/base/contact-by-account/contact-by-account.html
浏览文件 @
d0b5a968
...
...
@@ -3,7 +3,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/base/contact-grid-view/contact-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/base/contact-pickup-grid-view/contact-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/base/metric-grid-view/metric-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/base/metric-pickup-grid-view/metric-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/base/subject-pickup-grid-view/subject-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/base/transaction-currency-pickup-grid-view/transaction-currency-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/base/uom-pickup-grid-view/uom-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/finance/invoice-detail-invoice-pro-grid-view/invoice-detail-invoice-pro-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/finance/invoice-grid-view/invoice-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/marketing/campaign-activity-by-parent-key/campaign-activity-by-parent-key.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/marketing/campaign-grid-view/campaign-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/marketing/campaign-list-grid-view/campaign-list-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/marketing/campaign-response-by-parent-key/campaign-response-by-parent-key.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/marketing/ibiz-list-grid-view/ibiz-list-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/marketing/list-account-by-list/list-account-by-list.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/marketing/list-account-inner/list-account-inner.html
浏览文件 @
d0b5a968
...
...
@@ -6,7 +6,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/marketing/list-contact-grid-view/list-contact-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/marketing/list-contact-inner/list-contact-inner.html
浏览文件 @
d0b5a968
...
...
@@ -5,7 +5,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/marketing/list-lead-by-list/list-lead-by-list.html
浏览文件 @
d0b5a968
...
...
@@ -6,7 +6,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/product/price-level-pickup-grid-view/price-level-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/product/product-association-edit-view/product-association-edit-view-base.tsx
浏览文件 @
d0b5a968
...
...
@@ -102,6 +102,7 @@ export class ProductAssociationEditViewBase extends EditViewBase {
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'productassociation'
,
majorPSDEField
:
'productname'
,
isLoadDefault
:
true
,
});
}
...
...
app_CRM/src/pages/product/product-association-grid-view/product-association-grid-view-base.tsx
浏览文件 @
d0b5a968
...
...
@@ -122,6 +122,7 @@ export class ProductAssociationGridViewBase extends GridViewBase {
grid
:
this
.
$refs
.
grid
,
searchform
:
this
.
$refs
.
searchform
,
keyPSDEField
:
'productassociation'
,
majorPSDEField
:
'productname'
,
isLoadDefault
:
true
,
});
}
...
...
app_CRM/src/pages/product/product-association-grid-view/product-association-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/product/product-grid-view/product-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/product/product-pickup-grid-view/product-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/product/product-price-level-pro-prilv-edit-view/product-price-level-pro-prilv-edit-view-base.tsx
浏览文件 @
d0b5a968
...
...
@@ -102,6 +102,7 @@ export class ProductPriceLevelProPrilvEditViewBase extends EditViewBase {
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'productpricelevel'
,
majorPSDEField
:
'productname'
,
isLoadDefault
:
true
,
});
}
...
...
app_CRM/src/pages/product/product-price-level-pro-prilv-grid-view/product-price-level-pro-prilv-grid-view-base.tsx
浏览文件 @
d0b5a968
...
...
@@ -122,6 +122,7 @@ export class ProductPriceLevelProPrilvGridViewBase extends GridViewBase {
grid
:
this
.
$refs
.
grid
,
searchform
:
this
.
$refs
.
searchform
,
keyPSDEField
:
'productpricelevel'
,
majorPSDEField
:
'productname'
,
isLoadDefault
:
true
,
});
}
...
...
app_CRM/src/pages/product/product-price-level-pro-prilv-grid-view/product-price-level-pro-prilv-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/product/product-substitute-grid-view/product-substitute-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/competitor-grid-view/competitor-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/competitor-pickup-grid-view/competitor-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/sales/competitor-sales-literature-sal-lit-comp-grid-view/competitor-sales-literature-sal-lit-comp-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/discount-type-pickup-grid-view/discount-type-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/sales/goal-child-goal-grid-view/goal-child-goal-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/goal-grid-view/goal-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/goal-pickup-grid-view/goal-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/sales/lead-con-lead-grid-view/lead-con-lead-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/lead-grid-view/lead-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/lead-pickup-grid-view/lead-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/sales/opportunity-competitor-opp-comp-grid-view/opportunity-competitor-opp-comp-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/opportunity-con-opp-grid-view/opportunity-con-opp-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/opportunity-grid-view/opportunity-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/opportunity-pickup-grid-view/opportunity-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/sales/opportunity-product-opp-opp-pro-grid-view/opportunity-product-opp-opp-pro-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/product-sales-literature-sal-lit-pro-grid-view/product-sales-literature-sal-lit-pro-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/quote-detail-quo-detail-grid-view/quote-detail-quo-detail-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/quote-grid-view/quote-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/quote-opp-qua-grid-view/quote-opp-qua-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/sales-literature-grid-view/sales-literature-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/sales-literature-item-grid-view/sales-literature-item-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/sales-order-detail-soproduct-grid-view/sales-order-detail-soproduct-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/sales/sales-order-grid-view/sales-order-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/service/entitlement-pickup-grid-view/entitlement-pickup-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -21,7 +21,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
...
...
app_CRM/src/pages/service/incident-child-incident-grid-view/incident-child-incident-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -24,7 +24,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/pages/service/incident-grid-view/incident-grid-view.html
浏览文件 @
d0b5a968
...
...
@@ -27,7 +27,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:isSingleSelect=
"is
Grid
SingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
...
...
app_CRM/src/service/campaign/campaign-service-base.ts
浏览文件 @
d0b5a968
...
...
@@ -62,11 +62,11 @@ export default class CampaignServiceBase extends EntityService {
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
campaign
list
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
list
s'
),
'undefined'
)){
campaign
listsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaign
listsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaign
list
sData
.
forEach
((
item
:
any
)
=>
{
let
campaign
campaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
campaign
s'
),
'undefined'
)){
campaign
campaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaign
campaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaign
campaign
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -76,12 +76,12 @@ export default class CampaignServiceBase extends EntityService {
});
}
}
masterData
.
campaign
lists
=
campaignlist
sData
;
let
campaign
campaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
campaign
s'
),
'undefined'
)){
campaign
campaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaign
campaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaign
campaign
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
campaign
campaigns
=
campaigncampaign
sData
;
let
campaign
list
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
list
s'
),
'undefined'
)){
campaign
listsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaign
listsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaign
list
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -91,7 +91,7 @@ export default class CampaignServiceBase extends EntityService {
});
}
}
masterData
.
campaign
campaigns
=
campaigncampaign
sData
;
masterData
.
campaign
lists
=
campaignlist
sData
;
let
leadsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
)
as
any
);
...
...
@@ -116,8 +116,8 @@ export default class CampaignServiceBase extends EntityService {
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/campaigns`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
}
...
...
@@ -133,11 +133,11 @@ export default class CampaignServiceBase extends EntityService {
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
campaign
list
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
list
s'
),
'undefined'
)){
campaign
listsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaign
listsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaign
list
sData
.
forEach
((
item
:
any
)
=>
{
let
campaign
campaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
campaign
s'
),
'undefined'
)){
campaign
campaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaign
campaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaign
campaign
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -147,12 +147,12 @@ export default class CampaignServiceBase extends EntityService {
});
}
}
masterData
.
campaign
lists
=
campaignlist
sData
;
let
campaign
campaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
campaign
s'
),
'undefined'
)){
campaign
campaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaign
campaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaign
campaign
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
campaign
campaigns
=
campaigncampaign
sData
;
let
campaign
list
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
list
s'
),
'undefined'
)){
campaign
listsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaign
listsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaign
list
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -162,7 +162,7 @@ export default class CampaignServiceBase extends EntityService {
});
}
}
masterData
.
campaign
campaigns
=
campaigncampaign
sData
;
masterData
.
campaign
lists
=
campaignlist
sData
;
let
leadsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
)
as
any
);
...
...
@@ -180,8 +180,8 @@ export default class CampaignServiceBase extends EntityService {
masterData
.
leads
=
leadsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/campaigns/
${
context
.
campaign
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
}
...
...
@@ -210,8 +210,8 @@ export default class CampaignServiceBase extends EntityService {
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/campaigns/
${
context
.
campaign
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
}
...
...
@@ -228,8 +228,8 @@ export default class CampaignServiceBase extends EntityService {
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/campaigns/getdraft`
,
isloading
);
res
.
data
.
campaign
=
data
.
campaign
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
}
...
...
@@ -258,11 +258,11 @@ export default class CampaignServiceBase extends EntityService {
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
campaign
list
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
list
s'
),
'undefined'
)){
campaign
listsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaign
listsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaign
list
sData
.
forEach
((
item
:
any
)
=>
{
let
campaign
campaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
campaign
s'
),
'undefined'
)){
campaign
campaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaign
campaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaign
campaign
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -272,12 +272,12 @@ export default class CampaignServiceBase extends EntityService {
});
}
}
masterData
.
campaign
lists
=
campaignlist
sData
;
let
campaign
campaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
campaign
s'
),
'undefined'
)){
campaign
campaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaign
campaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaign
campaign
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
campaign
campaigns
=
campaigncampaign
sData
;
let
campaign
list
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
list
s'
),
'undefined'
)){
campaign
listsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaign
listsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaign
list
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -287,7 +287,7 @@ export default class CampaignServiceBase extends EntityService {
});
}
}
masterData
.
campaign
campaigns
=
campaigncampaign
sData
;
masterData
.
campaign
lists
=
campaignlist
sData
;
let
leadsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
)
as
any
);
...
...
@@ -305,8 +305,8 @@ export default class CampaignServiceBase extends EntityService {
masterData
.
leads
=
leadsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/campaigns/
${
context
.
campaign
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
}
...
...
app_CRM/src/service/ibiz-list/ibiz-list-service-base.ts
浏览文件 @
d0b5a968
...
...
@@ -62,11 +62,11 @@ export default class IBizListServiceBase extends EntityService {
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
campaignlist
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaignlist
s'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaignlist
sData
.
forEach
((
item
:
any
)
=>
{
let
listlead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listlead
s'
),
'undefined'
)){
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listlead
s'
)
as
any
);
if
(
listleadsData
&&
listleadsData
.
length
&&
listlead
sData
.
length
>
0
){
listlead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -76,12 +76,12 @@ export default class IBizListServiceBase extends EntityService {
});
}
}
masterData
.
campaignlists
=
campaignlist
sData
;
let
list
accoun
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
accoun
ts'
),
'undefined'
)){
list
accountsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccoun
ts'
)
as
any
);
if
(
list
accountsData
&&
listaccountsData
.
length
&&
listaccoun
tsData
.
length
>
0
){
list
accoun
tsData
.
forEach
((
item
:
any
)
=>
{
masterData
.
listleads
=
listlead
sData
;
let
list
contac
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
contac
ts'
),
'undefined'
)){
list
contactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontac
ts'
)
as
any
);
if
(
list
contactsData
&&
listcontactsData
.
length
&&
listcontac
tsData
.
length
>
0
){
list
contac
tsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -91,12 +91,12 @@ export default class IBizListServiceBase extends EntityService {
});
}
}
masterData
.
list
accounts
=
listaccoun
tsData
;
let
listlead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listlead
s'
),
'undefined'
)){
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listlead
s'
)
as
any
);
if
(
listleadsData
&&
listleadsData
.
length
&&
listlead
sData
.
length
>
0
){
listlead
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
list
contacts
=
listcontac
tsData
;
let
campaignlist
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaignlist
s'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaignlist
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -106,12 +106,12 @@ export default class IBizListServiceBase extends EntityService {
});
}
}
masterData
.
listleads
=
listlead
sData
;
let
list
contac
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
contac
ts'
),
'undefined'
)){
list
contactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontac
ts'
)
as
any
);
if
(
list
contactsData
&&
listcontactsData
.
length
&&
listcontac
tsData
.
length
>
0
){
list
contac
tsData
.
forEach
((
item
:
any
)
=>
{
masterData
.
campaignlists
=
campaignlist
sData
;
let
list
accoun
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
accoun
ts'
),
'undefined'
)){
list
accountsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccoun
ts'
)
as
any
);
if
(
list
accountsData
&&
listaccountsData
.
length
&&
listaccoun
tsData
.
length
>
0
){
list
accoun
tsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -121,7 +121,7 @@ export default class IBizListServiceBase extends EntityService {
});
}
}
masterData
.
list
contacts
=
listcontac
tsData
;
masterData
.
list
accounts
=
listaccoun
tsData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -131,10 +131,10 @@ export default class IBizListServiceBase extends EntityService {
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizlists`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
return
res
;
}
...
...
@@ -149,11 +149,11 @@ export default class IBizListServiceBase extends EntityService {
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
campaignlist
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaignlist
s'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaignlist
sData
.
forEach
((
item
:
any
)
=>
{
let
listlead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listlead
s'
),
'undefined'
)){
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listlead
s'
)
as
any
);
if
(
listleadsData
&&
listleadsData
.
length
&&
listlead
sData
.
length
>
0
){
listlead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -163,12 +163,12 @@ export default class IBizListServiceBase extends EntityService {
});
}
}
masterData
.
campaignlists
=
campaignlist
sData
;
let
list
accoun
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
accoun
ts'
),
'undefined'
)){
list
accountsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccoun
ts'
)
as
any
);
if
(
list
accountsData
&&
listaccountsData
.
length
&&
listaccoun
tsData
.
length
>
0
){
list
accoun
tsData
.
forEach
((
item
:
any
)
=>
{
masterData
.
listleads
=
listlead
sData
;
let
list
contac
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
contac
ts'
),
'undefined'
)){
list
contactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontac
ts'
)
as
any
);
if
(
list
contactsData
&&
listcontactsData
.
length
&&
listcontac
tsData
.
length
>
0
){
list
contac
tsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -178,12 +178,12 @@ export default class IBizListServiceBase extends EntityService {
});
}
}
masterData
.
list
accounts
=
listaccoun
tsData
;
let
listlead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listlead
s'
),
'undefined'
)){
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listlead
s'
)
as
any
);
if
(
listleadsData
&&
listleadsData
.
length
&&
listlead
sData
.
length
>
0
){
listlead
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
list
contacts
=
listcontac
tsData
;
let
campaignlist
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaignlist
s'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaignlist
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -193,12 +193,12 @@ export default class IBizListServiceBase extends EntityService {
});
}
}
masterData
.
listleads
=
listlead
sData
;
let
list
contac
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
contac
ts'
),
'undefined'
)){
list
contactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontac
ts'
)
as
any
);
if
(
list
contactsData
&&
listcontactsData
.
length
&&
listcontac
tsData
.
length
>
0
){
list
contac
tsData
.
forEach
((
item
:
any
)
=>
{
masterData
.
campaignlists
=
campaignlist
sData
;
let
list
accoun
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
accoun
ts'
),
'undefined'
)){
list
accountsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccoun
ts'
)
as
any
);
if
(
list
accountsData
&&
listaccountsData
.
length
&&
listaccoun
tsData
.
length
>
0
){
list
accoun
tsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -208,13 +208,13 @@ export default class IBizListServiceBase extends EntityService {
});
}
}
masterData
.
list
contacts
=
listcontac
tsData
;
masterData
.
list
accounts
=
listaccoun
tsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/ibizlists/
${
context
.
ibizlist
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
return
res
;
}
...
...
@@ -242,10 +242,10 @@ export default class IBizListServiceBase extends EntityService {
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizlists/
${
context
.
ibizlist
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
return
res
;
}
...
...
@@ -261,10 +261,10 @@ export default class IBizListServiceBase extends EntityService {
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizlists/getdraft`
,
isloading
);
res
.
data
.
ibizlist
=
data
.
ibizlist
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
return
res
;
}
...
...
@@ -292,11 +292,11 @@ export default class IBizListServiceBase extends EntityService {
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
campaignlist
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaignlist
s'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaignlist
sData
.
forEach
((
item
:
any
)
=>
{
let
listlead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listlead
s'
),
'undefined'
)){
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listlead
s'
)
as
any
);
if
(
listleadsData
&&
listleadsData
.
length
&&
listlead
sData
.
length
>
0
){
listlead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -306,12 +306,12 @@ export default class IBizListServiceBase extends EntityService {
});
}
}
masterData
.
campaignlists
=
campaignlist
sData
;
let
list
accoun
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
accoun
ts'
),
'undefined'
)){
list
accountsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccoun
ts'
)
as
any
);
if
(
list
accountsData
&&
listaccountsData
.
length
&&
listaccoun
tsData
.
length
>
0
){
list
accoun
tsData
.
forEach
((
item
:
any
)
=>
{
masterData
.
listleads
=
listlead
sData
;
let
list
contac
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
contac
ts'
),
'undefined'
)){
list
contactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontac
ts'
)
as
any
);
if
(
list
contactsData
&&
listcontactsData
.
length
&&
listcontac
tsData
.
length
>
0
){
list
contac
tsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -321,12 +321,12 @@ export default class IBizListServiceBase extends EntityService {
});
}
}
masterData
.
list
accounts
=
listaccoun
tsData
;
let
listlead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listlead
s'
),
'undefined'
)){
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listlead
s'
)
as
any
);
if
(
listleadsData
&&
listleadsData
.
length
&&
listlead
sData
.
length
>
0
){
listlead
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
list
contacts
=
listcontac
tsData
;
let
campaignlist
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaignlist
s'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaignlist
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -336,12 +336,12 @@ export default class IBizListServiceBase extends EntityService {
});
}
}
masterData
.
listleads
=
listlead
sData
;
let
list
contac
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
contac
ts'
),
'undefined'
)){
list
contactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontac
ts'
)
as
any
);
if
(
list
contactsData
&&
listcontactsData
.
length
&&
listcontac
tsData
.
length
>
0
){
list
contac
tsData
.
forEach
((
item
:
any
)
=>
{
masterData
.
campaignlists
=
campaignlist
sData
;
let
list
accoun
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
accoun
ts'
),
'undefined'
)){
list
accountsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccoun
ts'
)
as
any
);
if
(
list
accountsData
&&
listaccountsData
.
length
&&
listaccoun
tsData
.
length
>
0
){
list
accoun
tsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
...
...
@@ -351,13 +351,13 @@ export default class IBizListServiceBase extends EntityService {
});
}
}
masterData
.
list
contacts
=
listcontac
tsData
;
masterData
.
list
accounts
=
listaccoun
tsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizlists/
${
context
.
ibizlist
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
return
res
;
}
...
...
app_CRM/src/service/knowledge-article-incident/knowledge-article-incident-service-base.ts
浏览文件 @
d0b5a968
...
...
@@ -31,7 +31,7 @@ export default class KnowledgeArticleIncidentServiceBase extends EntityService {
this
.
APPLYDEKEY
=
'knowledgearticleincident'
;
this
.
APPDEKEY
=
'knowledgearticleincidentid'
;
this
.
APPDENAME
=
'knowledgearticleincidents'
;
this
.
APPDETEXT
=
''
;
this
.
APPDETEXT
=
'
statecode
'
;
this
.
APPNAME
=
'crm'
;
this
.
SYSTEMNAME
=
'ibizbusinesscentral'
;
}
...
...
app_CRM/src/service/opportunity/opportunity-service-base.ts
浏览文件 @
d0b5a968
...
...
@@ -84,36 +84,36 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -124,8 +124,8 @@ export default class OpportunityServiceBase extends EntityService {
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
true
){
...
...
@@ -145,36 +145,36 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -185,8 +185,8 @@ export default class OpportunityServiceBase extends EntityService {
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
let
masterData
:
any
=
{};
...
...
@@ -205,36 +205,36 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -245,8 +245,8 @@ export default class OpportunityServiceBase extends EntityService {
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/opportunities`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
...
...
@@ -277,41 +277,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
...
...
@@ -331,41 +331,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
let
masterData
:
any
=
{};
...
...
@@ -384,41 +384,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
...
...
@@ -454,21 +454,21 @@ export default class OpportunityServiceBase extends EntityService {
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/opportunities/
${
context
.
opportunity
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
...
...
@@ -486,23 +486,23 @@ export default class OpportunityServiceBase extends EntityService {
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/getdraft`
,
isloading
);
res
.
data
.
opportunity
=
data
.
opportunity
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/
${
context
.
contact
}
/opportunities/getdraft`
,
isloading
);
res
.
data
.
opportunity
=
data
.
opportunity
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/opportunities/getdraft`
,
isloading
);
res
.
data
.
opportunity
=
data
.
opportunity
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
...
...
@@ -533,41 +533,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
...
...
@@ -587,41 +587,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
...
...
@@ -654,41 +654,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
...
...
@@ -708,41 +708,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
...
...
@@ -775,41 +775,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
...
...
@@ -829,41 +829,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
let
masterData
:
any
=
{};
...
...
@@ -882,41 +882,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
...
...
@@ -947,41 +947,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
...
...
@@ -1001,41 +1001,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
quotes
=
quote
sData
;
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
...
...
app_CRM/src/service/product-association/product-association-service-base.ts
浏览文件 @
d0b5a968
...
...
@@ -31,7 +31,7 @@ export default class ProductAssociationServiceBase extends EntityService {
this
.
APPLYDEKEY
=
'productassociation'
;
this
.
APPDEKEY
=
'productassociationid'
;
this
.
APPDENAME
=
'productassociations'
;
this
.
APPDETEXT
=
''
;
this
.
APPDETEXT
=
'
productname
'
;
this
.
APPNAME
=
'crm'
;
this
.
SYSTEMNAME
=
'ibizbusinesscentral'
;
}
...
...
app_CRM/src/service/product-price-level/product-price-level-service-base.ts
浏览文件 @
d0b5a968
...
...
@@ -31,7 +31,7 @@ export default class ProductPriceLevelServiceBase extends EntityService {
this
.
APPLYDEKEY
=
'productpricelevel'
;
this
.
APPDEKEY
=
'productpricelevelid'
;
this
.
APPDENAME
=
'productpricelevels'
;
this
.
APPDETEXT
=
''
;
this
.
APPDETEXT
=
'
productname
'
;
this
.
APPNAME
=
'crm'
;
this
.
SYSTEMNAME
=
'ibizbusinesscentral'
;
}
...
...
app_CRM/src/service/product/product-service-base.ts
浏览文件 @
d0b5a968
...
...
@@ -62,21 +62,21 @@ export default class ProductServiceBase extends EntityService {
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
product
substitute
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
substitute
s'
),
'undefined'
)){
product
substitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitute
s'
)
as
any
);
if
(
product
substitutesData
&&
productsubstitutesData
.
length
&&
productsubstitute
sData
.
length
>
0
){
product
substitute
sData
.
forEach
((
item
:
any
)
=>
{
let
product
association
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
association
s'
),
'undefined'
)){
product
associationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productassociation
s'
)
as
any
);
if
(
product
associationsData
&&
productassociationsData
.
length
&&
productassociation
sData
.
length
>
0
){
product
association
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
product
substitute
id
=
null
;
item
.
product
association
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
product
substitutes
=
productsubstitute
sData
;
masterData
.
product
associations
=
productassociation
sData
;
let
productpricelevelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
),
'undefined'
)){
productpricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
)
as
any
);
...
...
@@ -92,21 +92,21 @@ export default class ProductServiceBase extends EntityService {
}
}
masterData
.
productpricelevels
=
productpricelevelsData
;
let
product
association
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
association
s'
),
'undefined'
)){
product
associationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productassociation
s'
)
as
any
);
if
(
product
associationsData
&&
productassociationsData
.
length
&&
productassociation
sData
.
length
>
0
){
product
association
sData
.
forEach
((
item
:
any
)
=>
{
let
product
substitute
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
substitute
s'
),
'undefined'
)){
product
substitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitute
s'
)
as
any
);
if
(
product
substitutesData
&&
productsubstitutesData
.
length
&&
productsubstitute
sData
.
length
>
0
){
product
substitute
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
product
association
id
=
null
;
item
.
product
substitute
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
product
associations
=
productassociation
sData
;
masterData
.
product
substitutes
=
productsubstitute
sData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -116,9 +116,9 @@ export default class ProductServiceBase extends EntityService {
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/products`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
return
res
;
}
...
...
@@ -133,21 +133,21 @@ export default class ProductServiceBase extends EntityService {
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
product
substitute
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
substitute
s'
),
'undefined'
)){
product
substitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitute
s'
)
as
any
);
if
(
product
substitutesData
&&
productsubstitutesData
.
length
&&
productsubstitute
sData
.
length
>
0
){
product
substitute
sData
.
forEach
((
item
:
any
)
=>
{
let
product
association
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
association
s'
),
'undefined'
)){
product
associationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productassociation
s'
)
as
any
);
if
(
product
associationsData
&&
productassociationsData
.
length
&&
productassociation
sData
.
length
>
0
){
product
association
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
product
substitute
id
=
null
;
item
.
product
association
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
product
substitutes
=
productsubstitute
sData
;
masterData
.
product
associations
=
productassociation
sData
;
let
productpricelevelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
),
'undefined'
)){
productpricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
)
as
any
);
...
...
@@ -163,26 +163,26 @@ export default class ProductServiceBase extends EntityService {
}
}
masterData
.
productpricelevels
=
productpricelevelsData
;
let
product
association
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
association
s'
),
'undefined'
)){
product
associationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productassociation
s'
)
as
any
);
if
(
product
associationsData
&&
productassociationsData
.
length
&&
productassociation
sData
.
length
>
0
){
product
association
sData
.
forEach
((
item
:
any
)
=>
{
let
product
substitute
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
substitute
s'
),
'undefined'
)){
product
substitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitute
s'
)
as
any
);
if
(
product
substitutesData
&&
productsubstitutesData
.
length
&&
productsubstitute
sData
.
length
>
0
){
product
substitute
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
product
association
id
=
null
;
item
.
product
substitute
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
product
associations
=
productassociation
sData
;
masterData
.
product
substitutes
=
productsubstitute
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/products/
${
context
.
product
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
return
res
;
}
...
...
@@ -210,9 +210,9 @@ export default class ProductServiceBase extends EntityService {
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/products/
${
context
.
product
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
return
res
;
}
...
...
@@ -228,9 +228,9 @@ export default class ProductServiceBase extends EntityService {
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/products/getdraft`
,
isloading
);
res
.
data
.
product
=
data
.
product
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
return
res
;
}
...
...
@@ -258,21 +258,21 @@ export default class ProductServiceBase extends EntityService {
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
product
substitute
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
substitute
s'
),
'undefined'
)){
product
substitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitute
s'
)
as
any
);
if
(
product
substitutesData
&&
productsubstitutesData
.
length
&&
productsubstitute
sData
.
length
>
0
){
product
substitute
sData
.
forEach
((
item
:
any
)
=>
{
let
product
association
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
association
s'
),
'undefined'
)){
product
associationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productassociation
s'
)
as
any
);
if
(
product
associationsData
&&
productassociationsData
.
length
&&
productassociation
sData
.
length
>
0
){
product
association
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
product
substitute
id
=
null
;
item
.
product
association
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
product
substitutes
=
productsubstitute
sData
;
masterData
.
product
associations
=
productassociation
sData
;
let
productpricelevelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
),
'undefined'
)){
productpricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
)
as
any
);
...
...
@@ -288,26 +288,26 @@ export default class ProductServiceBase extends EntityService {
}
}
masterData
.
productpricelevels
=
productpricelevelsData
;
let
product
association
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
association
s'
),
'undefined'
)){
product
associationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productassociation
s'
)
as
any
);
if
(
product
associationsData
&&
productassociationsData
.
length
&&
productassociation
sData
.
length
>
0
){
product
association
sData
.
forEach
((
item
:
any
)
=>
{
let
product
substitute
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
substitute
s'
),
'undefined'
)){
product
substitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitute
s'
)
as
any
);
if
(
product
substitutesData
&&
productsubstitutesData
.
length
&&
productsubstitute
sData
.
length
>
0
){
product
substitute
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
product
association
id
=
null
;
item
.
product
substitute
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
product
associations
=
productassociation
sData
;
masterData
.
product
substitutes
=
productsubstitute
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/products/
${
context
.
product
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
return
res
;
}
...
...
app_CRM/src/service/sales-literature/sales-literature-service-base.ts
浏览文件 @
d0b5a968
...
...
@@ -77,36 +77,36 @@ export default class SalesLiteratureServiceBase extends EntityService {
}
}
masterData
.
competitorsalesliteratures
=
competitorsalesliteraturesData
;
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
let
productsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
productsalesliterature
s'
),
'undefined'
)){
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliterature
s'
)
as
any
);
if
(
productsalesliteraturesData
&&
productsalesliteraturesData
.
length
&&
productsalesliterature
sData
.
length
>
0
){
productsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
salesliteratureitem
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
let
productsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
productsalesliterature
s'
),
'undefined'
)){
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliterature
s'
)
as
any
);
if
(
productsalesliteraturesData
&&
productsalesliteraturesData
.
length
&&
productsalesliterature
sData
.
length
>
0
){
productsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
productsalesliteratures
=
productsalesliterature
sData
;
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
salesliteratureitem
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
productsalesliteratures
=
productsalesliterature
sData
;
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -117,8 +117,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/salesliteratures`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
}
...
...
@@ -148,41 +148,41 @@ export default class SalesLiteratureServiceBase extends EntityService {
}
}
masterData
.
competitorsalesliteratures
=
competitorsalesliteraturesData
;
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
let
productsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
productsalesliterature
s'
),
'undefined'
)){
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliterature
s'
)
as
any
);
if
(
productsalesliteraturesData
&&
productsalesliteraturesData
.
length
&&
productsalesliterature
sData
.
length
>
0
){
productsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
salesliteratureitem
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
let
productsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
productsalesliterature
s'
),
'undefined'
)){
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliterature
s'
)
as
any
);
if
(
productsalesliteraturesData
&&
productsalesliteraturesData
.
length
&&
productsalesliterature
sData
.
length
>
0
){
productsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
productsalesliteratures
=
productsalesliterature
sData
;
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
salesliteratureitem
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
productsalesliteratures
=
productsalesliterature
sData
;
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/salesliteratures/
${
context
.
salesliterature
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
}
...
...
@@ -211,8 +211,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/salesliteratures/
${
context
.
salesliterature
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
}
...
...
@@ -229,8 +229,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/salesliteratures/getdraft`
,
isloading
);
res
.
data
.
salesliterature
=
data
.
salesliterature
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
}
...
...
@@ -273,41 +273,41 @@ export default class SalesLiteratureServiceBase extends EntityService {
}
}
masterData
.
competitorsalesliteratures
=
competitorsalesliteraturesData
;
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
let
productsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
productsalesliterature
s'
),
'undefined'
)){
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliterature
s'
)
as
any
);
if
(
productsalesliteraturesData
&&
productsalesliteraturesData
.
length
&&
productsalesliterature
sData
.
length
>
0
){
productsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
salesliteratureitem
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
let
productsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
productsalesliterature
s'
),
'undefined'
)){
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliterature
s'
)
as
any
);
if
(
productsalesliteraturesData
&&
productsalesliteraturesData
.
length
&&
productsalesliterature
sData
.
length
>
0
){
productsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
productsalesliteratures
=
productsalesliterature
sData
;
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
salesliteratureitem
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
productsalesliteratures
=
productsalesliterature
sData
;
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/salesliteratures/
${
context
.
salesliterature
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
}
...
...
app_CRM/src/studio-core/decorators/VueLifeCycleProcessing.ts
浏览文件 @
d0b5a968
import
{
PropOptions
}
from
'vue'
;
import
{
Constructor
}
from
'vue/types/options'
;
/**
* Vue多层继承生命周期处理装饰器
*
...
...
@@ -13,12 +16,12 @@ export function VueLifeCycleProcessing(params?: any): any {
// 原型
const
p
=
constructor
.
prototype
;
// 方法名数组
const
methodNames
:
string
[]
=
[
'beforeCreate'
,
'
created'
,
'
beforeMount'
,
'mounted'
,
'beforeUpdate'
,
'updated'
,
'activated'
,
'deactivated'
,
'beforeDestroy'
,
'destroyed'
,
'errorCaptured'
];
const
methodNames
:
string
[]
=
[
'beforeCreate'
,
'beforeMount'
,
'mounted'
,
'beforeUpdate'
,
'updated'
,
'activated'
,
'deactivated'
,
'beforeDestroy'
,
'destroyed'
,
'errorCaptured'
];
methodNames
.
forEach
((
name
:
string
)
=>
{
if
(
!
p
.
hasOwnProperty
(
name
)
&&
p
[
name
])
{
p
[
name
]
=
function
()
{
if
(
this
[
name
])
{
this
[
name
]
(
);
this
[
name
]
.
apply
(
this
,
arguments
);
}
}
}
...
...
@@ -30,6 +33,31 @@ export function VueLifeCycleProcessing(params?: any): any {
}
}
}
// 替换原生Prop注解
// if (p.___vuePropArr && p.___vuePropArr.length > 0) {
// const arr: any[] = JSON.parse(JSON.stringify(p.___vuePropArr));
// delete p.___vuePropArr;
// const fun = p['beforeCreate'];
// p['beforeCreate'] = function() {
// const props = this.$options.props || {};
// arr.forEach((item: any) => {
// props[item.key] = item.params || {};
// });
// console.log(props);
// this.$options.props = props;
// if (fun) {
// fun.apply(this, arguments);
// }
// }
// } else if (!p.hasOwnProperty('beforeCreate') && p['beforeCreate']) {
// p['beforeCreate'] = function () {
// if (this['beforeCreate']) {
// this['beforeCreate'].apply(this, arguments);
// }
// }
// }
// 替换原生Watch注解
if
(
p
.
___vueWatchArr
&&
p
.
___vueWatchArr
.
length
>
0
)
{
const
arr
:
any
[]
=
JSON
.
parse
(
JSON
.
stringify
(
p
.
___vueWatchArr
));
...
...
@@ -45,6 +73,12 @@ export function VueLifeCycleProcessing(params?: any): any {
fun
.
apply
(
this
,
arguments
);
}
}
}
else
if
(
!
p
.
hasOwnProperty
(
'created'
)
&&
p
[
'created'
])
{
p
[
'created'
]
=
function
()
{
if
(
this
[
'created'
])
{
this
[
'created'
].
apply
(
this
,
arguments
);
}
}
}
}
}
...
...
@@ -69,3 +103,23 @@ export function Watch(key: string, params?: { deep?: boolean, immediate?: boolea
});
};
}
/**
* 企划Vue自身Prop注解,实现在继承时不出问题
*
* @export
* @param {string} key 输入属性key
* @param {(PropOptions | Constructor[] | Constructor)} [options] 参数
* @returns {*}
*/
// export function Prop(options?: PropOptions | Constructor[] | Constructor): any {
// return function (p: any, key: any) {
// if (!p.___vuePropArr) {
// p.___vuePropArr = [];
// }
// p.___vuePropArr.push({
// key,
// options
// });
// };
// }
\ No newline at end of file
app_CRM/src/studio-core/index.ts
浏览文件 @
d0b5a968
...
...
@@ -69,6 +69,7 @@ import { UserInfo } from './components/user-info/user-info';
import
{
StudioViewStyle2
}
from
'./components/studio-view-style2/studio-view-style2'
;
import
{
StudioView
}
from
'./components/studio-view/studio-view'
;
import
{
StudioEmbedView
}
from
'./components/studio-embed-view/studio-embed-view'
;
import
{
StudioEmbedViewStyle2
}
from
'./components/studio-embed-view-style2/studio-embed-view-style2'
;
import
{
ViewToolbar
}
from
'./components/view-toolbar/view-toolbar'
;
import
{
ViewConfigActions
}
from
'./components/view-config-actions/view-config-actions'
;
import
HtmlContainer
from
'./components/html-container/html-container.vue'
;
...
...
@@ -103,6 +104,7 @@ export const StudioCore = {
v
.
component
(
'studio-view-style2'
,
StudioViewStyle2
);
v
.
component
(
'studio-view'
,
StudioView
);
v
.
component
(
'studio-embed-view'
,
StudioEmbedView
);
v
.
component
(
'studio-embed-view-style2'
,
StudioEmbedViewStyle2
);
v
.
component
(
'view-toolbar'
,
ViewToolbar
);
v
.
component
(
'view-config-actions'
,
ViewConfigActions
);
v
.
component
(
'html-container'
,
HtmlContainer
);
...
...
app_CRM/src/studio-core/view/GridViewBase.tsx
浏览文件 @
d0b5a968
...
...
@@ -22,6 +22,15 @@ export class GridViewBase extends MDViewBase {
*/
protected
gridRowActiveMode
:
0
|
1
|
2
=
2
;
/**
* 是否单选
*
* @readonly
* @type {boolean}
* @memberof GridViewBase
*/
protected
isGridSingleSelect
:
boolean
=
false
;
/**
* 刷新数据
*
...
...
app_CRM/src/studio-core/view/MDViewBase.tsx
浏览文件 @
d0b5a968
...
...
@@ -29,16 +29,6 @@ export class MDViewBase extends ViewBase {
@
Prop
({
default
:
false
})
protected
isformDruipart
?:
boolean
;
/**
* 是否单选
*
* @readonly
* @type {boolean}
* @memberof MDViewBase
*/
@
Prop
({
default
:
false
})
protected
isSingleSelect
!
:
boolean
;
/**
* 是否展开搜索表单
*
...
...
app_CRM/src/studio-core/view/PickupGridViewBase.tsx
浏览文件 @
d0b5a968
...
...
@@ -19,4 +19,14 @@ export class PickupGridViewBase extends GridView9Base {
@
Prop
()
public
selectedData
?:
string
;
/**
* 是否单选
*
* @readonly
* @type {boolean}
* @memberof MDViewBase
*/
@
Prop
({
default
:
false
})
protected
isSingleSelect
!
:
boolean
;
}
\ No newline at end of file
app_CRM/src/studio-core/widgets/EditFormControlBase.tsx
浏览文件 @
d0b5a968
...
...
@@ -165,12 +165,10 @@ export class EditFormControlBase extends FormControlBase {
* @memberof EditFormControlBase
*/
public
onFormLoad
(
data
:
any
=
{},
action
:
string
):
void
{
if
(
Object
.
is
(
action
,
"save"
)
||
Object
.
is
(
action
,
"autoSave"
)
||
Object
.
is
(
action
,
"submit"
))
{
// 更新context的实体主键
if
(
data
[
this
.
appDeName
])
{
Object
.
assign
(
this
.
context
,
{
[
this
.
appDeName
]:
data
[
this
.
appDeName
]
})
}
}
this
.
setFormEnableCond
(
data
);
this
.
fillForm
(
data
,
action
);
this
.
oldData
=
{};
...
...
app_CRM/src/widgets/product-association/main-form/main-form-base.tsx
浏览文件 @
d0b5a968
...
...
@@ -50,6 +50,7 @@ export class MainEditFormBase extends EditFormControlBase {
srfupdatedate
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
srftempmode
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
...
...
@@ -94,6 +95,8 @@ export class MainEditFormBase extends EditFormControlBase {
srfkey
:
new
FormItemModel
({
caption
:
'产品关联 ID'
,
detailType
:
'FORMITEM'
,
name
:
'srfkey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
1
}),
srfmajortext
:
new
FormItemModel
({
caption
:
'产品名称'
,
detailType
:
'FORMITEM'
,
name
:
'srfmajortext'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
srftempmode
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srftempmode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
srfuf
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfuf'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
...
...
app_CRM/src/widgets/product-association/main-form/main-form-model.ts
浏览文件 @
d0b5a968
...
...
@@ -38,6 +38,11 @@ export default class MainModel {
prop
:
'productassociationid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'productname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'srftempmode'
,
},
...
...
app_CRM/src/widgets/product-association/main-grid/main-grid-model.ts
浏览文件 @
d0b5a968
...
...
@@ -61,6 +61,11 @@ export default class MainModel {
prop
:
'uomname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'srfmajortext'
,
prop
:
'productname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'srfdataaccaction'
,
prop
:
'productassociationid'
,
...
...
app_CRM/src/widgets/product-price-level/main-grid/main-grid-model.ts
浏览文件 @
d0b5a968
...
...
@@ -26,29 +26,19 @@ export default class MainModel {
]
}
else
{
return
[
{
name
:
'amount'
,
prop
:
'amount'
,
dataType
:
'BIGDECIMAL'
,
},
{
name
:
'pricingmethodcode'
,
prop
:
'pricingmethodcode'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'uomscheduleid'
,
prop
:
'uomscheduleid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'pricelevelname'
,
prop
:
'pricelevelname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'
product
id'
,
prop
:
'
product
id'
,
name
:
'
uomschedule
id'
,
prop
:
'
uomschedule
id'
,
dataType
:
'PICKUP'
,
},
{
...
...
@@ -56,25 +46,20 @@ export default class MainModel {
prop
:
'transactioncurrencyid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'uomid'
,
prop
:
'uomid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'uomname'
,
prop
:
'uomname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'
discounttypeid
'
,
prop
:
'
discounttypeid
'
,
dataType
:
'PICKUP'
,
name
:
'
srfmajortext
'
,
prop
:
'
productname
'
,
dataType
:
'PICKUP
TEXT
'
,
},
{
name
:
'
pricelevelid
'
,
prop
:
'pricelevelid'
,
dataType
:
'
PICKUP
'
,
name
:
'
srfkey
'
,
prop
:
'pr
oductpr
icelevelid'
,
dataType
:
'
GUID
'
,
},
{
name
:
'srfdataaccaction'
,
...
...
@@ -82,9 +67,29 @@ export default class MainModel {
dataType
:
'GUID'
,
},
{
name
:
'srfkey'
,
prop
:
'productpricelevelid'
,
dataType
:
'GUID'
,
name
:
'amount'
,
prop
:
'amount'
,
dataType
:
'BIGDECIMAL'
,
},
{
name
:
'productid'
,
prop
:
'productid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'uomid'
,
prop
:
'uomid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'discounttypeid'
,
prop
:
'discounttypeid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'pricelevelid'
,
prop
:
'pricelevelid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'productpricelevel'
,
...
...
app_CRM/src/widgets/product-price-level/pro-prilv-form/pro-prilv-form-base.tsx
浏览文件 @
d0b5a968
...
...
@@ -50,6 +50,7 @@ export class ProPrilvEditFormBase extends EditFormControlBase {
srfupdatedate
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
srftempmode
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
...
...
@@ -109,6 +110,8 @@ export class ProPrilvEditFormBase extends EditFormControlBase {
srfkey
:
new
FormItemModel
({
caption
:
'产品价目表'
,
detailType
:
'FORMITEM'
,
name
:
'srfkey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
1
}),
srfmajortext
:
new
FormItemModel
({
caption
:
'产品名称'
,
detailType
:
'FORMITEM'
,
name
:
'srfmajortext'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
srftempmode
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srftempmode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
srfuf
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfuf'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
...
...
app_CRM/src/widgets/product-price-level/pro-prilv-form/pro-prilv-form-model.ts
浏览文件 @
d0b5a968
...
...
@@ -38,6 +38,11 @@ export default class ProPrilvModel {
prop
:
'productpricelevelid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'productname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'srftempmode'
,
},
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/base/filter/AuditSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -49,6 +49,9 @@ public class AuditSearchContext extends QueryWrapperContext<Audit> {
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"action"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/base/filter/KnowledgeArticleViewsSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -63,6 +63,9 @@ public class KnowledgeArticleViewsSearchContext extends QueryWrapperContext<Know
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"statecode"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/base/filter/SiteMapSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -42,6 +42,9 @@ public class SiteMapSearchContext extends QueryWrapperContext<SiteMap> {
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"sitemapname"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/base/filter/SlaItemSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -49,6 +49,9 @@ public class SlaItemSearchContext extends QueryWrapperContext<SlaItem> {
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"name"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/finance/filter/AnnualFiscalCalendarSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -42,6 +42,9 @@ public class AnnualFiscalCalendarSearchContext extends QueryWrapperContext<Annua
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"salespersonidyominame"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/finance/filter/FixedMonthlyFiscalCalendarSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -42,6 +42,9 @@ public class FixedMonthlyFiscalCalendarSearchContext extends QueryWrapperContext
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"salespersonidyominame"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/finance/filter/MonthlyFiscalCalendarSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -42,6 +42,9 @@ public class MonthlyFiscalCalendarSearchContext extends QueryWrapperContext<Mont
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"salespersonidyominame"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/finance/filter/QuarterlyFiscalCalendarSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -42,6 +42,9 @@ public class QuarterlyFiscalCalendarSearchContext extends QueryWrapperContext<Qu
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"salespersonidyominame"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/finance/filter/SemiannualFiscalCalendarSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -42,6 +42,9 @@ public class SemiannualFiscalCalendarSearchContext extends QueryWrapperContext<S
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"salespersonidyominame"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/product/filter/ProductAssociationSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -147,6 +147,9 @@ public class ProductAssociationSearchContext extends QueryWrapperContext<Product
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"productname"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/product/filter/ProductPriceLevelSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -189,6 +189,9 @@ public class ProductPriceLevelSearchContext extends QueryWrapperContext<ProductP
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"productname"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/runtime/filter/BulkDeleteFailureSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -35,6 +35,9 @@ public class BulkDeleteFailureSearchContext extends QueryWrapperContext<BulkDele
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"errornumber"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/runtime/filter/QueueItemSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -70,6 +70,9 @@ public class QueueItemSearchContext extends QueryWrapperContext<QueueItem> {
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"queueitemid"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/service/filter/KnowledgeArticleIncidentSearchContext.java
浏览文件 @
d0b5a968
...
...
@@ -98,6 +98,9 @@ public class KnowledgeArticleIncidentSearchContext extends QueryWrapperContext<K
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"statecode"
,
query
)
);
}
}
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/domain/WebSite.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
import
cn.ibizlab.businesscentral.util.domain.EntityBase
;
import
cn.ibizlab.businesscentral.util.annotation.DEField
;
import
cn.ibizlab.businesscentral.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.businesscentral.util.enums.DEFieldDefaultValueType
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.businesscentral.util.domain.EntityMP
;
/**
* 实体[网站]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"WEBSITE"
,
resultMap
=
"WebSiteResultMap"
)
public
class
WebSite
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 实体名称
*/
@TableField
(
value
=
"websitename"
)
@JSONField
(
name
=
"websitename"
)
@JsonProperty
(
"websitename"
)
private
String
websitename
;
/**
* 实体标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"websiteid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"websiteid"
)
@JsonProperty
(
"websiteid"
)
private
String
websiteid
;
/**
* 更新人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEMAN
)
@TableField
(
value
=
"updateman"
)
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
private
String
updateman
;
/**
* 建立时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEDATE
)
@TableField
(
value
=
"createdate"
,
fill
=
FieldFill
.
INSERT
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"createdate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 建立人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEMAN
)
@TableField
(
value
=
"createman"
,
fill
=
FieldFill
.
INSERT
)
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 更新时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEDATE
)
@TableField
(
value
=
"updatedate"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 设置 [实体名称]
*/
public
void
setWebsitename
(
String
websitename
){
this
.
websitename
=
websitename
;
this
.
modify
(
"websitename"
,
websitename
);
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/domain/WebSiteChannel.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
import
cn.ibizlab.businesscentral.util.domain.EntityBase
;
import
cn.ibizlab.businesscentral.util.annotation.DEField
;
import
cn.ibizlab.businesscentral.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.businesscentral.util.enums.DEFieldDefaultValueType
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.businesscentral.util.domain.EntityMP
;
/**
* 实体[网站频道]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"WEBSITECHANNEL"
,
resultMap
=
"WebSiteChannelResultMap"
)
public
class
WebSiteChannel
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 频道标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"websitechannelid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"websitechannelid"
)
@JsonProperty
(
"websitechannelid"
)
private
String
websitechannelid
;
/**
* 建立人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEMAN
)
@TableField
(
value
=
"createman"
,
fill
=
FieldFill
.
INSERT
)
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 频道名称
*/
@TableField
(
value
=
"websitechannelname"
)
@JSONField
(
name
=
"websitechannelname"
)
@JsonProperty
(
"websitechannelname"
)
private
String
websitechannelname
;
/**
* 更新时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEDATE
)
@TableField
(
value
=
"updatedate"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 建立时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEDATE
)
@TableField
(
value
=
"createdate"
,
fill
=
FieldFill
.
INSERT
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"createdate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 更新人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEMAN
)
@TableField
(
value
=
"updateman"
)
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
private
String
updateman
;
/**
* 网站标识
*/
@TableField
(
value
=
"websiteid"
)
@JSONField
(
name
=
"websiteid"
)
@JsonProperty
(
"websiteid"
)
private
String
websiteid
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
domain
.
WebSite
website
;
/**
* 设置 [频道名称]
*/
public
void
setWebsitechannelname
(
String
websitechannelname
){
this
.
websitechannelname
=
websitechannelname
;
this
.
modify
(
"websitechannelname"
,
websitechannelname
);
}
/**
* 设置 [网站标识]
*/
public
void
setWebsiteid
(
String
websiteid
){
this
.
websiteid
=
websiteid
;
this
.
modify
(
"websiteid"
,
websiteid
);
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/domain/WebSiteContent.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
import
cn.ibizlab.businesscentral.util.domain.EntityBase
;
import
cn.ibizlab.businesscentral.util.annotation.DEField
;
import
cn.ibizlab.businesscentral.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.businesscentral.util.enums.DEFieldDefaultValueType
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.businesscentral.util.domain.EntityMP
;
/**
* 实体[网站内容]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"WEBSITECONTENT"
,
resultMap
=
"WebSiteContentResultMap"
)
public
class
WebSiteContent
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 内容标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"websitecontentid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"websitecontentid"
)
@JsonProperty
(
"websitecontentid"
)
private
String
websitecontentid
;
/**
* 建立人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEMAN
)
@TableField
(
value
=
"createman"
,
fill
=
FieldFill
.
INSERT
)
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 内容名称
*/
@TableField
(
value
=
"websitecontentname"
)
@JSONField
(
name
=
"websitecontentname"
)
@JsonProperty
(
"websitecontentname"
)
private
String
websitecontentname
;
/**
* 建立时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEDATE
)
@TableField
(
value
=
"createdate"
,
fill
=
FieldFill
.
INSERT
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"createdate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 更新时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEDATE
)
@TableField
(
value
=
"updatedate"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 更新人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEMAN
)
@TableField
(
value
=
"updateman"
)
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
private
String
updateman
;
/**
* 网站标识
*/
@TableField
(
value
=
"websiteid"
)
@JSONField
(
name
=
"websiteid"
)
@JsonProperty
(
"websiteid"
)
private
String
websiteid
;
/**
* 频道标识
*/
@TableField
(
value
=
"websitechannelid"
)
@JSONField
(
name
=
"websitechannelid"
)
@JsonProperty
(
"websitechannelid"
)
private
String
websitechannelid
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
domain
.
WebSiteChannel
websitechannel
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
domain
.
WebSite
website
;
/**
* 设置 [内容名称]
*/
public
void
setWebsitecontentname
(
String
websitecontentname
){
this
.
websitecontentname
=
websitecontentname
;
this
.
modify
(
"websitecontentname"
,
websitecontentname
);
}
/**
* 设置 [网站标识]
*/
public
void
setWebsiteid
(
String
websiteid
){
this
.
websiteid
=
websiteid
;
this
.
modify
(
"websiteid"
,
websiteid
);
}
/**
* 设置 [频道标识]
*/
public
void
setWebsitechannelid
(
String
websitechannelid
){
this
.
websitechannelid
=
websitechannelid
;
this
.
modify
(
"websitechannelid"
,
websitechannelid
);
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/domain/WebSiteResource.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
import
cn.ibizlab.businesscentral.util.domain.EntityBase
;
import
cn.ibizlab.businesscentral.util.annotation.DEField
;
import
cn.ibizlab.businesscentral.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.businesscentral.util.enums.DEFieldDefaultValueType
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.businesscentral.util.domain.EntityMP
;
/**
* 实体[网站资源]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"WEBSITERESOURCE"
,
resultMap
=
"WebSiteResourceResultMap"
)
public
class
WebSiteResource
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 网站资源标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"websiteresourceid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"websiteresourceid"
)
@JsonProperty
(
"websiteresourceid"
)
private
String
websiteresourceid
;
/**
* 网站资源名称
*/
@TableField
(
value
=
"websiteresourcename"
)
@JSONField
(
name
=
"websiteresourcename"
)
@JsonProperty
(
"websiteresourcename"
)
private
String
websiteresourcename
;
/**
* 建立人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEMAN
)
@TableField
(
value
=
"createman"
,
fill
=
FieldFill
.
INSERT
)
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 建立时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEDATE
)
@TableField
(
value
=
"createdate"
,
fill
=
FieldFill
.
INSERT
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"createdate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 更新人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEMAN
)
@TableField
(
value
=
"updateman"
)
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
private
String
updateman
;
/**
* 更新时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEDATE
)
@TableField
(
value
=
"updatedate"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 网站标识
*/
@TableField
(
value
=
"websiteid"
)
@JSONField
(
name
=
"websiteid"
)
@JsonProperty
(
"websiteid"
)
private
String
websiteid
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
domain
.
WebSite
website
;
/**
* 设置 [网站资源名称]
*/
public
void
setWebsiteresourcename
(
String
websiteresourcename
){
this
.
websiteresourcename
=
websiteresourcename
;
this
.
modify
(
"websiteresourcename"
,
websiteresourcename
);
}
/**
* 设置 [网站标识]
*/
public
void
setWebsiteid
(
String
websiteid
){
this
.
websiteid
=
websiteid
;
this
.
modify
(
"websiteid"
,
websiteid
);
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/filter/WebSiteChannelSearchContext.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
filter
;
import
java.math.BigDecimal
;
import
java.math.BigInteger
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.*
;
import
lombok.extern.slf4j.Slf4j
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
cn.ibizlab.businesscentral.util.filter.QueryWrapperContext
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSiteChannel
;
/**
* 关系型数据实体[WebSiteChannel] 查询条件对象
*/
@Slf4j
@Data
public
class
WebSiteChannelSearchContext
extends
QueryWrapperContext
<
WebSiteChannel
>
{
private
String
n_websitechannelname_like
;
//[频道名称]
public
void
setN_websitechannelname_like
(
String
n_websitechannelname_like
)
{
this
.
n_websitechannelname_like
=
n_websitechannelname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_websitechannelname_like
)){
this
.
getSearchCond
().
like
(
"websitechannelname"
,
n_websitechannelname_like
);
}
}
private
String
n_websiteid_eq
;
//[网站标识]
public
void
setN_websiteid_eq
(
String
n_websiteid_eq
)
{
this
.
n_websiteid_eq
=
n_websiteid_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_websiteid_eq
)){
this
.
getSearchCond
().
eq
(
"websiteid"
,
n_websiteid_eq
);
}
}
/**
* 启用快速搜索
*/
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"websitechannelname"
,
query
)
);
}
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/filter/WebSiteContentSearchContext.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
filter
;
import
java.math.BigDecimal
;
import
java.math.BigInteger
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.*
;
import
lombok.extern.slf4j.Slf4j
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
cn.ibizlab.businesscentral.util.filter.QueryWrapperContext
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSiteContent
;
/**
* 关系型数据实体[WebSiteContent] 查询条件对象
*/
@Slf4j
@Data
public
class
WebSiteContentSearchContext
extends
QueryWrapperContext
<
WebSiteContent
>
{
private
String
n_websitecontentname_like
;
//[内容名称]
public
void
setN_websitecontentname_like
(
String
n_websitecontentname_like
)
{
this
.
n_websitecontentname_like
=
n_websitecontentname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_websitecontentname_like
)){
this
.
getSearchCond
().
like
(
"websitecontentname"
,
n_websitecontentname_like
);
}
}
private
String
n_websiteid_eq
;
//[网站标识]
public
void
setN_websiteid_eq
(
String
n_websiteid_eq
)
{
this
.
n_websiteid_eq
=
n_websiteid_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_websiteid_eq
)){
this
.
getSearchCond
().
eq
(
"websiteid"
,
n_websiteid_eq
);
}
}
private
String
n_websitechannelid_eq
;
//[频道标识]
public
void
setN_websitechannelid_eq
(
String
n_websitechannelid_eq
)
{
this
.
n_websitechannelid_eq
=
n_websitechannelid_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_websitechannelid_eq
)){
this
.
getSearchCond
().
eq
(
"websitechannelid"
,
n_websitechannelid_eq
);
}
}
/**
* 启用快速搜索
*/
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"websitecontentname"
,
query
)
);
}
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/filter/WebSiteResourceSearchContext.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
filter
;
import
java.math.BigDecimal
;
import
java.math.BigInteger
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.*
;
import
lombok.extern.slf4j.Slf4j
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
cn.ibizlab.businesscentral.util.filter.QueryWrapperContext
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSiteResource
;
/**
* 关系型数据实体[WebSiteResource] 查询条件对象
*/
@Slf4j
@Data
public
class
WebSiteResourceSearchContext
extends
QueryWrapperContext
<
WebSiteResource
>
{
private
String
n_websiteresourcename_like
;
//[网站资源名称]
public
void
setN_websiteresourcename_like
(
String
n_websiteresourcename_like
)
{
this
.
n_websiteresourcename_like
=
n_websiteresourcename_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_websiteresourcename_like
)){
this
.
getSearchCond
().
like
(
"websiteresourcename"
,
n_websiteresourcename_like
);
}
}
private
String
n_websiteid_eq
;
//[网站标识]
public
void
setN_websiteid_eq
(
String
n_websiteid_eq
)
{
this
.
n_websiteid_eq
=
n_websiteid_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_websiteid_eq
)){
this
.
getSearchCond
().
eq
(
"websiteid"
,
n_websiteid_eq
);
}
}
/**
* 启用快速搜索
*/
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"websiteresourcename"
,
query
)
);
}
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/filter/WebSiteSearchContext.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
filter
;
import
java.math.BigDecimal
;
import
java.math.BigInteger
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.*
;
import
lombok.extern.slf4j.Slf4j
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
cn.ibizlab.businesscentral.util.filter.QueryWrapperContext
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSite
;
/**
* 关系型数据实体[WebSite] 查询条件对象
*/
@Slf4j
@Data
public
class
WebSiteSearchContext
extends
QueryWrapperContext
<
WebSite
>
{
private
String
n_websitename_like
;
//[实体名称]
public
void
setN_websitename_like
(
String
n_websitename_like
)
{
this
.
n_websitename_like
=
n_websitename_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_websitename_like
)){
this
.
getSearchCond
().
like
(
"websitename"
,
n_websitename_like
);
}
}
/**
* 启用快速搜索
*/
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"websitename"
,
query
)
);
}
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/mapper/WebSiteChannelMapper.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.*
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
java.util.HashMap
;
import
org.apache.ibatis.annotations.Select
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSiteChannel
;
import
cn.ibizlab.businesscentral.core.website.filter.WebSiteChannelSearchContext
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.alibaba.fastjson.JSONObject
;
public
interface
WebSiteChannelMapper
extends
BaseMapper
<
WebSiteChannel
>{
Page
<
WebSiteChannel
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
WebSiteChannelSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
WebSiteChannel
>
wrapper
)
;
@Override
WebSiteChannel
selectById
(
Serializable
id
);
@Override
int
insert
(
WebSiteChannel
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
WebSiteChannel
entity
);
@Override
int
update
(
@Param
(
Constants
.
ENTITY
)
WebSiteChannel
entity
,
@Param
(
"ew"
)
Wrapper
<
WebSiteChannel
>
updateWrapper
);
@Override
int
deleteById
(
Serializable
id
);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select
(
"${sql}"
)
List
<
JSONObject
>
selectBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update
(
"${sql}"
)
boolean
updateBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert
(
"${sql}"
)
boolean
insertBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
List
<
WebSiteChannel
>
selectByWebsiteid
(
@Param
(
"websiteid"
)
Serializable
websiteid
)
;
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/mapper/WebSiteContentMapper.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.*
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
java.util.HashMap
;
import
org.apache.ibatis.annotations.Select
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSiteContent
;
import
cn.ibizlab.businesscentral.core.website.filter.WebSiteContentSearchContext
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.alibaba.fastjson.JSONObject
;
public
interface
WebSiteContentMapper
extends
BaseMapper
<
WebSiteContent
>{
Page
<
WebSiteContent
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
WebSiteContentSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
WebSiteContent
>
wrapper
)
;
@Override
WebSiteContent
selectById
(
Serializable
id
);
@Override
int
insert
(
WebSiteContent
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
WebSiteContent
entity
);
@Override
int
update
(
@Param
(
Constants
.
ENTITY
)
WebSiteContent
entity
,
@Param
(
"ew"
)
Wrapper
<
WebSiteContent
>
updateWrapper
);
@Override
int
deleteById
(
Serializable
id
);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select
(
"${sql}"
)
List
<
JSONObject
>
selectBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update
(
"${sql}"
)
boolean
updateBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert
(
"${sql}"
)
boolean
insertBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
List
<
WebSiteContent
>
selectByWebsitechannelid
(
@Param
(
"websitechannelid"
)
Serializable
websitechannelid
)
;
List
<
WebSiteContent
>
selectByWebsiteid
(
@Param
(
"websiteid"
)
Serializable
websiteid
)
;
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/mapper/WebSiteMapper.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.*
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
java.util.HashMap
;
import
org.apache.ibatis.annotations.Select
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSite
;
import
cn.ibizlab.businesscentral.core.website.filter.WebSiteSearchContext
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.alibaba.fastjson.JSONObject
;
public
interface
WebSiteMapper
extends
BaseMapper
<
WebSite
>{
Page
<
WebSite
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
WebSiteSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
WebSite
>
wrapper
)
;
@Override
WebSite
selectById
(
Serializable
id
);
@Override
int
insert
(
WebSite
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
WebSite
entity
);
@Override
int
update
(
@Param
(
Constants
.
ENTITY
)
WebSite
entity
,
@Param
(
"ew"
)
Wrapper
<
WebSite
>
updateWrapper
);
@Override
int
deleteById
(
Serializable
id
);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select
(
"${sql}"
)
List
<
JSONObject
>
selectBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update
(
"${sql}"
)
boolean
updateBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert
(
"${sql}"
)
boolean
insertBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/mapper/WebSiteResourceMapper.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.*
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
java.util.HashMap
;
import
org.apache.ibatis.annotations.Select
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSiteResource
;
import
cn.ibizlab.businesscentral.core.website.filter.WebSiteResourceSearchContext
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.alibaba.fastjson.JSONObject
;
public
interface
WebSiteResourceMapper
extends
BaseMapper
<
WebSiteResource
>{
Page
<
WebSiteResource
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
WebSiteResourceSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
WebSiteResource
>
wrapper
)
;
@Override
WebSiteResource
selectById
(
Serializable
id
);
@Override
int
insert
(
WebSiteResource
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
WebSiteResource
entity
);
@Override
int
update
(
@Param
(
Constants
.
ENTITY
)
WebSiteResource
entity
,
@Param
(
"ew"
)
Wrapper
<
WebSiteResource
>
updateWrapper
);
@Override
int
deleteById
(
Serializable
id
);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select
(
"${sql}"
)
List
<
JSONObject
>
selectBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update
(
"${sql}"
)
boolean
updateBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert
(
"${sql}"
)
boolean
insertBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
List
<
WebSiteResource
>
selectByWebsiteid
(
@Param
(
"websiteid"
)
Serializable
websiteid
)
;
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/service/IWebSiteChannelService.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.math.BigInteger
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSiteChannel
;
import
cn.ibizlab.businesscentral.core.website.filter.WebSiteChannelSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[WebSiteChannel] 服务对象接口
*/
public
interface
IWebSiteChannelService
extends
IService
<
WebSiteChannel
>{
boolean
create
(
WebSiteChannel
et
)
;
void
createBatch
(
List
<
WebSiteChannel
>
list
)
;
boolean
update
(
WebSiteChannel
et
)
;
void
updateBatch
(
List
<
WebSiteChannel
>
list
)
;
boolean
remove
(
String
key
)
;
void
removeBatch
(
Collection
<
String
>
idList
)
;
WebSiteChannel
get
(
String
key
)
;
WebSiteChannel
getDraft
(
WebSiteChannel
et
)
;
boolean
checkKey
(
WebSiteChannel
et
)
;
boolean
save
(
WebSiteChannel
et
)
;
void
saveBatch
(
List
<
WebSiteChannel
>
list
)
;
Page
<
WebSiteChannel
>
searchDefault
(
WebSiteChannelSearchContext
context
)
;
List
<
WebSiteChannel
>
selectByWebsiteid
(
String
websiteid
)
;
void
removeByWebsiteid
(
String
websiteid
)
;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List
<
JSONObject
>
select
(
String
sql
,
Map
param
);
/**
*自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean
execute
(
String
sql
,
Map
param
);
List
<
WebSiteChannel
>
getWebsitechannelByIds
(
List
<
String
>
ids
)
;
List
<
WebSiteChannel
>
getWebsitechannelByEntities
(
List
<
WebSiteChannel
>
entities
)
;
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/service/IWebSiteContentService.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.math.BigInteger
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSiteContent
;
import
cn.ibizlab.businesscentral.core.website.filter.WebSiteContentSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[WebSiteContent] 服务对象接口
*/
public
interface
IWebSiteContentService
extends
IService
<
WebSiteContent
>{
boolean
create
(
WebSiteContent
et
)
;
void
createBatch
(
List
<
WebSiteContent
>
list
)
;
boolean
update
(
WebSiteContent
et
)
;
void
updateBatch
(
List
<
WebSiteContent
>
list
)
;
boolean
remove
(
String
key
)
;
void
removeBatch
(
Collection
<
String
>
idList
)
;
WebSiteContent
get
(
String
key
)
;
WebSiteContent
getDraft
(
WebSiteContent
et
)
;
boolean
checkKey
(
WebSiteContent
et
)
;
boolean
save
(
WebSiteContent
et
)
;
void
saveBatch
(
List
<
WebSiteContent
>
list
)
;
Page
<
WebSiteContent
>
searchDefault
(
WebSiteContentSearchContext
context
)
;
List
<
WebSiteContent
>
selectByWebsitechannelid
(
String
websitechannelid
)
;
void
removeByWebsitechannelid
(
String
websitechannelid
)
;
List
<
WebSiteContent
>
selectByWebsiteid
(
String
websiteid
)
;
void
removeByWebsiteid
(
String
websiteid
)
;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List
<
JSONObject
>
select
(
String
sql
,
Map
param
);
/**
*自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean
execute
(
String
sql
,
Map
param
);
List
<
WebSiteContent
>
getWebsitecontentByIds
(
List
<
String
>
ids
)
;
List
<
WebSiteContent
>
getWebsitecontentByEntities
(
List
<
WebSiteContent
>
entities
)
;
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/service/IWebSiteResourceService.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.math.BigInteger
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSiteResource
;
import
cn.ibizlab.businesscentral.core.website.filter.WebSiteResourceSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[WebSiteResource] 服务对象接口
*/
public
interface
IWebSiteResourceService
extends
IService
<
WebSiteResource
>{
boolean
create
(
WebSiteResource
et
)
;
void
createBatch
(
List
<
WebSiteResource
>
list
)
;
boolean
update
(
WebSiteResource
et
)
;
void
updateBatch
(
List
<
WebSiteResource
>
list
)
;
boolean
remove
(
String
key
)
;
void
removeBatch
(
Collection
<
String
>
idList
)
;
WebSiteResource
get
(
String
key
)
;
WebSiteResource
getDraft
(
WebSiteResource
et
)
;
boolean
checkKey
(
WebSiteResource
et
)
;
boolean
save
(
WebSiteResource
et
)
;
void
saveBatch
(
List
<
WebSiteResource
>
list
)
;
Page
<
WebSiteResource
>
searchDefault
(
WebSiteResourceSearchContext
context
)
;
List
<
WebSiteResource
>
selectByWebsiteid
(
String
websiteid
)
;
void
removeByWebsiteid
(
String
websiteid
)
;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List
<
JSONObject
>
select
(
String
sql
,
Map
param
);
/**
*自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean
execute
(
String
sql
,
Map
param
);
List
<
WebSiteResource
>
getWebsiteresourceByIds
(
List
<
String
>
ids
)
;
List
<
WebSiteResource
>
getWebsiteresourceByEntities
(
List
<
WebSiteResource
>
entities
)
;
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/service/IWebSiteService.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.math.BigInteger
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSite
;
import
cn.ibizlab.businesscentral.core.website.filter.WebSiteSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[WebSite] 服务对象接口
*/
public
interface
IWebSiteService
extends
IService
<
WebSite
>{
boolean
create
(
WebSite
et
)
;
void
createBatch
(
List
<
WebSite
>
list
)
;
boolean
update
(
WebSite
et
)
;
void
updateBatch
(
List
<
WebSite
>
list
)
;
boolean
remove
(
String
key
)
;
void
removeBatch
(
Collection
<
String
>
idList
)
;
WebSite
get
(
String
key
)
;
WebSite
getDraft
(
WebSite
et
)
;
boolean
checkKey
(
WebSite
et
)
;
boolean
save
(
WebSite
et
)
;
void
saveBatch
(
List
<
WebSite
>
list
)
;
Page
<
WebSite
>
searchDefault
(
WebSiteSearchContext
context
)
;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List
<
JSONObject
>
select
(
String
sql
,
Map
param
);
/**
*自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean
execute
(
String
sql
,
Map
param
);
List
<
WebSite
>
getWebsiteByIds
(
List
<
String
>
ids
)
;
List
<
WebSite
>
getWebsiteByEntities
(
List
<
WebSite
>
entities
)
;
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/service/impl/WebSiteChannelServiceImpl.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
.
impl
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Map
;
import
java.util.HashSet
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.math.BigInteger
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.stereotype.Service
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSiteChannel
;
import
cn.ibizlab.businesscentral.core.website.filter.WebSiteChannelSearchContext
;
import
cn.ibizlab.businesscentral.core.website.service.IWebSiteChannelService
;
import
cn.ibizlab.businesscentral.util.helper.CachedBeanCopier
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
cn.ibizlab.businesscentral.core.website.mapper.WebSiteChannelMapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.util.StringUtils
;
/**
* 实体[网站频道] 服务对象接口实现
*/
@Slf4j
@Service
(
"WebSiteChannelServiceImpl"
)
public
class
WebSiteChannelServiceImpl
extends
ServiceImpl
<
WebSiteChannelMapper
,
WebSiteChannel
>
implements
IWebSiteChannelService
{
@Autowired
@Lazy
protected
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
.
IWebSiteContentService
websitecontentService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
.
IWebSiteService
websiteService
;
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
WebSiteChannel
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getWebsitechannelid
()),
et
);
return
true
;
}
@Override
public
void
createBatch
(
List
<
WebSiteChannel
>
list
)
{
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
WebSiteChannel
et
)
{
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"websitechannelid"
,
et
.
getWebsitechannelid
())))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getWebsitechannelid
()),
et
);
return
true
;
}
@Override
public
void
updateBatch
(
List
<
WebSiteChannel
>
list
)
{
updateBatchById
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
remove
(
String
key
)
{
boolean
result
=
removeById
(
key
);
return
result
;
}
@Override
public
void
removeBatch
(
Collection
<
String
>
idList
)
{
removeByIds
(
idList
);
}
@Override
@Transactional
public
WebSiteChannel
get
(
String
key
)
{
WebSiteChannel
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
WebSiteChannel
();
et
.
setWebsitechannelid
(
key
);
}
else
{
}
return
et
;
}
@Override
public
WebSiteChannel
getDraft
(
WebSiteChannel
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
WebSiteChannel
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getWebsitechannelid
()))&&(!
Objects
.
isNull
(
this
.
getById
(
et
.
getWebsitechannelid
())));
}
@Override
@Transactional
public
boolean
save
(
WebSiteChannel
et
)
{
if
(!
saveOrUpdate
(
et
))
return
false
;
return
true
;
}
@Override
@Transactional
(
rollbackFor
=
{
Exception
.
class
}
)
public
boolean
saveOrUpdate
(
WebSiteChannel
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
public
boolean
saveBatch
(
Collection
<
WebSiteChannel
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
public
void
saveBatch
(
List
<
WebSiteChannel
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
@Override
public
List
<
WebSiteChannel
>
selectByWebsiteid
(
String
websiteid
)
{
return
baseMapper
.
selectByWebsiteid
(
websiteid
);
}
@Override
public
void
removeByWebsiteid
(
String
websiteid
)
{
this
.
remove
(
new
QueryWrapper
<
WebSiteChannel
>().
eq
(
"websiteid"
,
websiteid
));
}
/**
* 查询集合 DEFAULT
*/
@Override
public
Page
<
WebSiteChannel
>
searchDefault
(
WebSiteChannelSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
WebSiteChannel
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
WebSiteChannel
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
@Override
public
List
<
JSONObject
>
select
(
String
sql
,
Map
param
){
return
this
.
baseMapper
.
selectBySQL
(
sql
,
param
);
}
@Override
@Transactional
public
boolean
execute
(
String
sql
,
Map
param
){
if
(
sql
==
null
||
sql
.
isEmpty
())
{
return
false
;
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"insert"
))
{
return
this
.
baseMapper
.
insertBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"update"
))
{
return
this
.
baseMapper
.
updateBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"delete"
))
{
return
this
.
baseMapper
.
deleteBySQL
(
sql
,
param
);
}
log
.
warn
(
"暂未支持的SQL语法"
);
return
true
;
}
@Override
public
List
<
WebSiteChannel
>
getWebsitechannelByIds
(
List
<
String
>
ids
)
{
return
this
.
listByIds
(
ids
);
}
@Override
public
List
<
WebSiteChannel
>
getWebsitechannelByEntities
(
List
<
WebSiteChannel
>
entities
)
{
List
ids
=
new
ArrayList
();
for
(
WebSiteChannel
entity
:
entities
){
Serializable
id
=
entity
.
getWebsitechannelid
();
if
(!
ObjectUtils
.
isEmpty
(
id
)){
ids
.
add
(
id
);
}
}
if
(
ids
.
size
()>
0
)
return
this
.
listByIds
(
ids
);
else
return
entities
;
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/service/impl/WebSiteContentServiceImpl.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
.
impl
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Map
;
import
java.util.HashSet
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.math.BigInteger
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.stereotype.Service
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSiteContent
;
import
cn.ibizlab.businesscentral.core.website.filter.WebSiteContentSearchContext
;
import
cn.ibizlab.businesscentral.core.website.service.IWebSiteContentService
;
import
cn.ibizlab.businesscentral.util.helper.CachedBeanCopier
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
cn.ibizlab.businesscentral.core.website.mapper.WebSiteContentMapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.util.StringUtils
;
/**
* 实体[网站内容] 服务对象接口实现
*/
@Slf4j
@Service
(
"WebSiteContentServiceImpl"
)
public
class
WebSiteContentServiceImpl
extends
ServiceImpl
<
WebSiteContentMapper
,
WebSiteContent
>
implements
IWebSiteContentService
{
@Autowired
@Lazy
protected
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
.
IWebSiteChannelService
websitechannelService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
.
IWebSiteService
websiteService
;
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
WebSiteContent
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getWebsitecontentid
()),
et
);
return
true
;
}
@Override
public
void
createBatch
(
List
<
WebSiteContent
>
list
)
{
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
WebSiteContent
et
)
{
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"websitecontentid"
,
et
.
getWebsitecontentid
())))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getWebsitecontentid
()),
et
);
return
true
;
}
@Override
public
void
updateBatch
(
List
<
WebSiteContent
>
list
)
{
updateBatchById
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
remove
(
String
key
)
{
boolean
result
=
removeById
(
key
);
return
result
;
}
@Override
public
void
removeBatch
(
Collection
<
String
>
idList
)
{
removeByIds
(
idList
);
}
@Override
@Transactional
public
WebSiteContent
get
(
String
key
)
{
WebSiteContent
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
WebSiteContent
();
et
.
setWebsitecontentid
(
key
);
}
else
{
}
return
et
;
}
@Override
public
WebSiteContent
getDraft
(
WebSiteContent
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
WebSiteContent
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getWebsitecontentid
()))&&(!
Objects
.
isNull
(
this
.
getById
(
et
.
getWebsitecontentid
())));
}
@Override
@Transactional
public
boolean
save
(
WebSiteContent
et
)
{
if
(!
saveOrUpdate
(
et
))
return
false
;
return
true
;
}
@Override
@Transactional
(
rollbackFor
=
{
Exception
.
class
}
)
public
boolean
saveOrUpdate
(
WebSiteContent
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
public
boolean
saveBatch
(
Collection
<
WebSiteContent
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
public
void
saveBatch
(
List
<
WebSiteContent
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
@Override
public
List
<
WebSiteContent
>
selectByWebsitechannelid
(
String
websitechannelid
)
{
return
baseMapper
.
selectByWebsitechannelid
(
websitechannelid
);
}
@Override
public
void
removeByWebsitechannelid
(
String
websitechannelid
)
{
this
.
remove
(
new
QueryWrapper
<
WebSiteContent
>().
eq
(
"websitechannelid"
,
websitechannelid
));
}
@Override
public
List
<
WebSiteContent
>
selectByWebsiteid
(
String
websiteid
)
{
return
baseMapper
.
selectByWebsiteid
(
websiteid
);
}
@Override
public
void
removeByWebsiteid
(
String
websiteid
)
{
this
.
remove
(
new
QueryWrapper
<
WebSiteContent
>().
eq
(
"websiteid"
,
websiteid
));
}
/**
* 查询集合 DEFAULT
*/
@Override
public
Page
<
WebSiteContent
>
searchDefault
(
WebSiteContentSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
WebSiteContent
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
WebSiteContent
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
@Override
public
List
<
JSONObject
>
select
(
String
sql
,
Map
param
){
return
this
.
baseMapper
.
selectBySQL
(
sql
,
param
);
}
@Override
@Transactional
public
boolean
execute
(
String
sql
,
Map
param
){
if
(
sql
==
null
||
sql
.
isEmpty
())
{
return
false
;
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"insert"
))
{
return
this
.
baseMapper
.
insertBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"update"
))
{
return
this
.
baseMapper
.
updateBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"delete"
))
{
return
this
.
baseMapper
.
deleteBySQL
(
sql
,
param
);
}
log
.
warn
(
"暂未支持的SQL语法"
);
return
true
;
}
@Override
public
List
<
WebSiteContent
>
getWebsitecontentByIds
(
List
<
String
>
ids
)
{
return
this
.
listByIds
(
ids
);
}
@Override
public
List
<
WebSiteContent
>
getWebsitecontentByEntities
(
List
<
WebSiteContent
>
entities
)
{
List
ids
=
new
ArrayList
();
for
(
WebSiteContent
entity
:
entities
){
Serializable
id
=
entity
.
getWebsitecontentid
();
if
(!
ObjectUtils
.
isEmpty
(
id
)){
ids
.
add
(
id
);
}
}
if
(
ids
.
size
()>
0
)
return
this
.
listByIds
(
ids
);
else
return
entities
;
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/service/impl/WebSiteResourceServiceImpl.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
.
impl
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Map
;
import
java.util.HashSet
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.math.BigInteger
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.stereotype.Service
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSiteResource
;
import
cn.ibizlab.businesscentral.core.website.filter.WebSiteResourceSearchContext
;
import
cn.ibizlab.businesscentral.core.website.service.IWebSiteResourceService
;
import
cn.ibizlab.businesscentral.util.helper.CachedBeanCopier
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
cn.ibizlab.businesscentral.core.website.mapper.WebSiteResourceMapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.util.StringUtils
;
/**
* 实体[网站资源] 服务对象接口实现
*/
@Slf4j
@Service
(
"WebSiteResourceServiceImpl"
)
public
class
WebSiteResourceServiceImpl
extends
ServiceImpl
<
WebSiteResourceMapper
,
WebSiteResource
>
implements
IWebSiteResourceService
{
@Autowired
@Lazy
protected
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
.
IWebSiteService
websiteService
;
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
WebSiteResource
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getWebsiteresourceid
()),
et
);
return
true
;
}
@Override
public
void
createBatch
(
List
<
WebSiteResource
>
list
)
{
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
WebSiteResource
et
)
{
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"websiteresourceid"
,
et
.
getWebsiteresourceid
())))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getWebsiteresourceid
()),
et
);
return
true
;
}
@Override
public
void
updateBatch
(
List
<
WebSiteResource
>
list
)
{
updateBatchById
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
remove
(
String
key
)
{
boolean
result
=
removeById
(
key
);
return
result
;
}
@Override
public
void
removeBatch
(
Collection
<
String
>
idList
)
{
removeByIds
(
idList
);
}
@Override
@Transactional
public
WebSiteResource
get
(
String
key
)
{
WebSiteResource
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
WebSiteResource
();
et
.
setWebsiteresourceid
(
key
);
}
else
{
}
return
et
;
}
@Override
public
WebSiteResource
getDraft
(
WebSiteResource
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
WebSiteResource
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getWebsiteresourceid
()))&&(!
Objects
.
isNull
(
this
.
getById
(
et
.
getWebsiteresourceid
())));
}
@Override
@Transactional
public
boolean
save
(
WebSiteResource
et
)
{
if
(!
saveOrUpdate
(
et
))
return
false
;
return
true
;
}
@Override
@Transactional
(
rollbackFor
=
{
Exception
.
class
}
)
public
boolean
saveOrUpdate
(
WebSiteResource
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
public
boolean
saveBatch
(
Collection
<
WebSiteResource
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
public
void
saveBatch
(
List
<
WebSiteResource
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
@Override
public
List
<
WebSiteResource
>
selectByWebsiteid
(
String
websiteid
)
{
return
baseMapper
.
selectByWebsiteid
(
websiteid
);
}
@Override
public
void
removeByWebsiteid
(
String
websiteid
)
{
this
.
remove
(
new
QueryWrapper
<
WebSiteResource
>().
eq
(
"websiteid"
,
websiteid
));
}
/**
* 查询集合 DEFAULT
*/
@Override
public
Page
<
WebSiteResource
>
searchDefault
(
WebSiteResourceSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
WebSiteResource
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
WebSiteResource
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
@Override
public
List
<
JSONObject
>
select
(
String
sql
,
Map
param
){
return
this
.
baseMapper
.
selectBySQL
(
sql
,
param
);
}
@Override
@Transactional
public
boolean
execute
(
String
sql
,
Map
param
){
if
(
sql
==
null
||
sql
.
isEmpty
())
{
return
false
;
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"insert"
))
{
return
this
.
baseMapper
.
insertBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"update"
))
{
return
this
.
baseMapper
.
updateBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"delete"
))
{
return
this
.
baseMapper
.
deleteBySQL
(
sql
,
param
);
}
log
.
warn
(
"暂未支持的SQL语法"
);
return
true
;
}
@Override
public
List
<
WebSiteResource
>
getWebsiteresourceByIds
(
List
<
String
>
ids
)
{
return
this
.
listByIds
(
ids
);
}
@Override
public
List
<
WebSiteResource
>
getWebsiteresourceByEntities
(
List
<
WebSiteResource
>
entities
)
{
List
ids
=
new
ArrayList
();
for
(
WebSiteResource
entity
:
entities
){
Serializable
id
=
entity
.
getWebsiteresourceid
();
if
(!
ObjectUtils
.
isEmpty
(
id
)){
ids
.
add
(
id
);
}
}
if
(
ids
.
size
()>
0
)
return
this
.
listByIds
(
ids
);
else
return
entities
;
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/website/service/impl/WebSiteServiceImpl.java
0 → 100644
浏览文件 @
d0b5a968
package
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
.
impl
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Map
;
import
java.util.HashSet
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.math.BigInteger
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.stereotype.Service
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.businesscentral.core.website.domain.WebSite
;
import
cn.ibizlab.businesscentral.core.website.filter.WebSiteSearchContext
;
import
cn.ibizlab.businesscentral.core.website.service.IWebSiteService
;
import
cn.ibizlab.businesscentral.util.helper.CachedBeanCopier
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
cn.ibizlab.businesscentral.core.website.mapper.WebSiteMapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.util.StringUtils
;
/**
* 实体[网站] 服务对象接口实现
*/
@Slf4j
@Service
(
"WebSiteServiceImpl"
)
public
class
WebSiteServiceImpl
extends
ServiceImpl
<
WebSiteMapper
,
WebSite
>
implements
IWebSiteService
{
@Autowired
@Lazy
protected
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
.
IWebSiteChannelService
websitechannelService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
.
IWebSiteContentService
websitecontentService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
businesscentral
.
core
.
website
.
service
.
IWebSiteResourceService
websiteresourceService
;
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
WebSite
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getWebsiteid
()),
et
);
return
true
;
}
@Override
public
void
createBatch
(
List
<
WebSite
>
list
)
{
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
WebSite
et
)
{
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"websiteid"
,
et
.
getWebsiteid
())))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getWebsiteid
()),
et
);
return
true
;
}
@Override
public
void
updateBatch
(
List
<
WebSite
>
list
)
{
updateBatchById
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
remove
(
String
key
)
{
boolean
result
=
removeById
(
key
);
return
result
;
}
@Override
public
void
removeBatch
(
Collection
<
String
>
idList
)
{
removeByIds
(
idList
);
}
@Override
@Transactional
public
WebSite
get
(
String
key
)
{
WebSite
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
WebSite
();
et
.
setWebsiteid
(
key
);
}
else
{
}
return
et
;
}
@Override
public
WebSite
getDraft
(
WebSite
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
WebSite
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getWebsiteid
()))&&(!
Objects
.
isNull
(
this
.
getById
(
et
.
getWebsiteid
())));
}
@Override
@Transactional
public
boolean
save
(
WebSite
et
)
{
if
(!
saveOrUpdate
(
et
))
return
false
;
return
true
;
}
@Override
@Transactional
(
rollbackFor
=
{
Exception
.
class
}
)
public
boolean
saveOrUpdate
(
WebSite
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
public
boolean
saveBatch
(
Collection
<
WebSite
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
public
void
saveBatch
(
List
<
WebSite
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
/**
* 查询集合 DEFAULT
*/
@Override
public
Page
<
WebSite
>
searchDefault
(
WebSiteSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
WebSite
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
WebSite
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
@Override
public
List
<
JSONObject
>
select
(
String
sql
,
Map
param
){
return
this
.
baseMapper
.
selectBySQL
(
sql
,
param
);
}
@Override
@Transactional
public
boolean
execute
(
String
sql
,
Map
param
){
if
(
sql
==
null
||
sql
.
isEmpty
())
{
return
false
;
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"insert"
))
{
return
this
.
baseMapper
.
insertBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"update"
))
{
return
this
.
baseMapper
.
updateBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"delete"
))
{
return
this
.
baseMapper
.
deleteBySQL
(
sql
,
param
);
}
log
.
warn
(
"暂未支持的SQL语法"
);
return
true
;
}
@Override
public
List
<
WebSite
>
getWebsiteByIds
(
List
<
String
>
ids
)
{
return
this
.
listByIds
(
ids
);
}
@Override
public
List
<
WebSite
>
getWebsiteByEntities
(
List
<
WebSite
>
entities
)
{
List
ids
=
new
ArrayList
();
for
(
WebSite
entity
:
entities
){
Serializable
id
=
entity
.
getWebsiteid
();
if
(!
ObjectUtils
.
isEmpty
(
id
)){
ids
.
add
(
id
);
}
}
if
(
ids
.
size
()>
0
)
return
this
.
listByIds
(
ids
);
else
return
entities
;
}
}
businesscentral-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
d0b5a968
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
businesscentral-core/src/main/resources/mapper/website/website/WebSiteMapper.xml
0 → 100644
浏览文件 @
d0b5a968
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.ibizlab.businesscentral.core.website.mapper.WebSiteMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"WebSiteResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WEBSITEID`, t1.`WEBSITENAME` FROM `WEBSITE` t1 ) t1 where websiteid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"WebSiteResultMap"
type=
"cn.ibizlab.businesscentral.core.website.domain.WebSite"
autoMapping=
"true"
>
<id
property=
"websiteid"
column=
"websiteid"
/>
<!--主键字段映射-->
</resultMap>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.businesscentral.core.website.filter.WebSiteSearchContext"
resultMap=
"WebSiteResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WEBSITEID`, t1.`WEBSITENAME` FROM `WEBSITE` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WEBSITEID`, t1.`WEBSITENAME` FROM `WEBSITE` t1
]]>
</sql>
</mapper>
businesscentral-core/src/main/resources/mapper/website/websitechannel/WebSiteChannelMapper.xml
0 → 100644
浏览文件 @
d0b5a968
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.ibizlab.businesscentral.core.website.mapper.WebSiteChannelMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"WebSiteChannelResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WEBSITECHANNELID`, t1.`WEBSITECHANNELNAME`, t1.`WEBSITEID` FROM `WEBSITECHANNEL` t1 ) t1 where websitechannelid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"WebSiteChannelResultMap"
type=
"cn.ibizlab.businesscentral.core.website.domain.WebSiteChannel"
autoMapping=
"true"
>
<id
property=
"websitechannelid"
column=
"websitechannelid"
/>
<!--主键字段映射-->
<result
property=
"websiteid"
column=
"websiteid"
/>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association
property=
"website"
javaType=
"cn.ibizlab.businesscentral.core.website.domain.WebSite"
column=
"websiteid"
select=
"cn.ibizlab.businesscentral.core.website.mapper.WebSiteMapper.selectById"
fetchType=
"lazy"
></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_WEBSITECHANNEL_WEBSITE_WEBSITEID] -->
<select
id=
"selectByWebsiteid"
resultMap=
"WebSiteChannelResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
) t1
where websiteid=#{websiteid}
</select>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.businesscentral.core.website.filter.WebSiteChannelSearchContext"
resultMap=
"WebSiteChannelResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WEBSITECHANNELID`, t1.`WEBSITECHANNELNAME`, t1.`WEBSITEID` FROM `WEBSITECHANNEL` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WEBSITECHANNELID`, t1.`WEBSITECHANNELNAME`, t1.`WEBSITEID` FROM `WEBSITECHANNEL` t1
]]>
</sql>
</mapper>
businesscentral-core/src/main/resources/mapper/website/websitecontent/WebSiteContentMapper.xml
0 → 100644
浏览文件 @
d0b5a968
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.ibizlab.businesscentral.core.website.mapper.WebSiteContentMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"WebSiteContentResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WEBSITECHANNELID`, t1.`WEBSITECONTENTID`, t1.`WEBSITECONTENTNAME`, t1.`WEBSITEID` FROM `WEBSITECONTENT` t1 ) t1 where websitecontentid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"WebSiteContentResultMap"
type=
"cn.ibizlab.businesscentral.core.website.domain.WebSiteContent"
autoMapping=
"true"
>
<id
property=
"websitecontentid"
column=
"websitecontentid"
/>
<!--主键字段映射-->
<result
property=
"websiteid"
column=
"websiteid"
/>
<result
property=
"websitechannelid"
column=
"websitechannelid"
/>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association
property=
"websitechannel"
javaType=
"cn.ibizlab.businesscentral.core.website.domain.WebSiteChannel"
column=
"websitechannelid"
select=
"cn.ibizlab.businesscentral.core.website.mapper.WebSiteChannelMapper.selectById"
fetchType=
"lazy"
></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association
property=
"website"
javaType=
"cn.ibizlab.businesscentral.core.website.domain.WebSite"
column=
"websiteid"
select=
"cn.ibizlab.businesscentral.core.website.mapper.WebSiteMapper.selectById"
fetchType=
"lazy"
></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_WEBSITECONTENT_WEBSITECHANNEL_WEBSITECHANNELID] -->
<select
id=
"selectByWebsitechannelid"
resultMap=
"WebSiteContentResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
) t1
where websitechannelid=#{websitechannelid}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_WEBSITECONTENT_WEBSITE_WEBSITEID] -->
<select
id=
"selectByWebsiteid"
resultMap=
"WebSiteContentResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
) t1
where websiteid=#{websiteid}
</select>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.businesscentral.core.website.filter.WebSiteContentSearchContext"
resultMap=
"WebSiteContentResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WEBSITECHANNELID`, t1.`WEBSITECONTENTID`, t1.`WEBSITECONTENTNAME`, t1.`WEBSITEID` FROM `WEBSITECONTENT` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WEBSITECHANNELID`, t1.`WEBSITECONTENTID`, t1.`WEBSITECONTENTNAME`, t1.`WEBSITEID` FROM `WEBSITECONTENT` t1
]]>
</sql>
</mapper>
businesscentral-core/src/main/resources/mapper/website/websiteresource/WebSiteResourceMapper.xml
0 → 100644
浏览文件 @
d0b5a968
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.ibizlab.businesscentral.core.website.mapper.WebSiteResourceMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"WebSiteResourceResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WEBSITEID`, t1.`WEBSITERESOURCEID`, t1.`WEBSITERESOURCENAME` FROM `WEBSITERESOURCE` t1 ) t1 where websiteresourceid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"WebSiteResourceResultMap"
type=
"cn.ibizlab.businesscentral.core.website.domain.WebSiteResource"
autoMapping=
"true"
>
<id
property=
"websiteresourceid"
column=
"websiteresourceid"
/>
<!--主键字段映射-->
<result
property=
"websiteid"
column=
"websiteid"
/>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association
property=
"website"
javaType=
"cn.ibizlab.businesscentral.core.website.domain.WebSite"
column=
"websiteid"
select=
"cn.ibizlab.businesscentral.core.website.mapper.WebSiteMapper.selectById"
fetchType=
"lazy"
></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_WEBSITERESOURCE_WEBSITE_WEBSITEID] -->
<select
id=
"selectByWebsiteid"
resultMap=
"WebSiteResourceResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
) t1
where websiteid=#{websiteid}
</select>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.businesscentral.core.website.filter.WebSiteResourceSearchContext"
resultMap=
"WebSiteResourceResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WEBSITEID`, t1.`WEBSITERESOURCEID`, t1.`WEBSITERESOURCENAME` FROM `WEBSITERESOURCE` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`WEBSITEID`, t1.`WEBSITERESOURCEID`, t1.`WEBSITERESOURCENAME` FROM `WEBSITERESOURCE` t1
]]>
</sql>
</mapper>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录