Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz商业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz商业套件
iBiz商业中心
提交
d11d1651
提交
d11d1651
编写于
10月 28, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码,后台体系[Spring Boot]
上级
1438c592
变更
6
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
10 行增加
和
50 行删除
+10
-50
Res_partner.java
...ab/businesscentral/core/odoo_base/domain/Res_partner.java
+1
-10
Res_partnerMapper.java
...inesscentral/core/odoo_base/mapper/Res_partnerMapper.java
+0
-2
Res_partnerServiceImpl.java
...l/core/odoo_base/service/impl/Res_partnerServiceImpl.java
+0
-13
Res_partnerMapper.xml
...ources/mapper/odoo_base/res_partner/Res_partnerMapper.xml
+4
-14
iBizBusinessCentral.json
...core/src/main/resources/sysmodel/iBizBusinessCentral.json
+3
-3
Res_partnerDTO.java
...a/cn/ibizlab/businesscentral/core/dto/Res_partnerDTO.java
+2
-8
未找到文件。
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_base/domain/Res_partner.java
浏览文件 @
d11d1651
...
...
@@ -195,7 +195,6 @@ public class Res_partner extends EntityMP implements Serializable {
@JSONField
(
name
=
"has_unreconciled_entries"
)
@JsonProperty
(
"has_unreconciled_entries"
)
private
Boolean
hasUnreconciledEntries
;
/**
* 标签
*/
...
...
@@ -1357,14 +1356,6 @@ public class Res_partner extends EntityMP implements Serializable {
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
return
sdf
.
format
(
signupExpiration
);
}
/**
* 设置 [标签]
*/
public
void
setCategoryId
(
String
categoryId
){
this
.
categoryId
=
categoryId
;
this
.
modify
(
"category_id"
,
categoryId
);
}
/**
* 设置 [网站业务伙伴的详细说明]
*/
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_base/mapper/Res_partnerMapper.java
浏览文件 @
d11d1651
...
...
@@ -85,6 +85,4 @@ public interface Res_partnerMapper extends BaseMapper<Res_partner>{
List
<
Res_partner
>
selectByWriteUid
(
@Param
(
"id"
)
Serializable
id
)
;
boolean
saveRelByOdoo_partner
(
@Param
(
"partner_id"
)
Long
partner_id
,
List
<
cn
.
ibizlab
.
businesscentral
.
util
.
domain
.
MultiSelectItem
>
res_partner_categories
);
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_base/service/impl/Res_partnerServiceImpl.java
浏览文件 @
d11d1651
...
...
@@ -314,8 +314,6 @@ public class Res_partnerServiceImpl extends EBSServiceImpl<Res_partnerMapper, Re
@Override
@Transactional
public
boolean
create
(
Res_partner
et
)
{
String
category_id
=
et
.
getCategoryId
()
;
boolean
mail_create_nosubscribe
=
et
.
get
(
"mail_create_nosubscribe"
)
!=
null
;
boolean
mail_create_nolog
=
et
.
get
(
"mail_create_nolog"
)
!=
null
;
boolean
mail_notrack
=
et
.
get
(
"mail_notrack"
)
!=
null
;
...
...
@@ -335,10 +333,6 @@ public class Res_partnerServiceImpl extends EBSServiceImpl<Res_partnerMapper, Re
if
(
messageinfo
&&
!
mail_notrack
)
{
}
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNotBlank
(
et
.
getCategoryId
())){
this
.
baseMapper
.
saveRelByOdoo_partner
(
et
.
getId
()
,
com
.
alibaba
.
fastjson
.
JSONArray
.
parseArray
(
category_id
,
cn
.
ibizlab
.
businesscentral
.
util
.
domain
.
MultiSelectItem
.
class
));
}
return
true
;
}
...
...
@@ -352,13 +346,6 @@ public class Res_partnerServiceImpl extends EBSServiceImpl<Res_partnerMapper, Re
@Override
@Transactional
public
boolean
update
(
Res_partner
et
)
{
if
(
et
.
getFocusNull
().
contains
(
"category_id"
)
||
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNotBlank
(
et
.
getCategoryId
())){
resPartnerResPartnerCategoryRelService
.
removeByPartnerId
(
et
.
getId
());
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNotBlank
(
et
.
getCategoryId
())){
this
.
baseMapper
.
saveRelByOdoo_partner
(
et
.
getId
()
,
com
.
alibaba
.
fastjson
.
JSONArray
.
parseArray
(
et
.
getCategoryId
(),
cn
.
ibizlab
.
businesscentral
.
util
.
domain
.
MultiSelectItem
.
class
));
}
}
Res_partner
old
=
new
Res_partner
()
;
CachedBeanCopier
.
copy
(
get
(
et
.
getId
()),
old
);
boolean
mail_notrack
=
et
.
get
(
"mail_notrack"
)
!=
null
;
...
...
businesscentral-core/src/main/resources/mapper/odoo_base/res_partner/Res_partnerMapper.xml
浏览文件 @
d11d1651
...
...
@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"Res_partnerResultMap"
databaseId=
"postgresql"
>
<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.ADDITIONAL_INFO, t1.BARCODE, t1.CALENDAR_LAST_NOTIF_ACK, t1.CITY, t1.COLOR, t1.COMMENT, t1.COMMERCIAL_COMPANY_NAME, t1.COMMERCIAL_PARTNER_ID, t81.NAME AS COMMERCIAL_PARTNER_ID_TEXT, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.COMPANY_NAME, t1.COUNTRY_ID, t61.NAME AS COUNTRY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t131.NAME AS CREATE_UID_TEXT, t1.CREDIT_LIMIT, t1.CUSTOMER_RANK, t1.DATE, t1.DEBIT_LIMIT, t1.DISPLAY_NAME, t1.EMAIL, t1.EMPLOYEE, t1.FUNCTION
AS IBIZFUNCTION
, t1.ID, t1.INDUSTRY_ID, t141.NAME AS INDUSTRY_ID_TEXT, t1.INVOICE_WARN, t1.INVOICE_WARN_MSG, t1.IS_COMPANY, t1.IS_PUBLISHED, t1.LANG, t1.LAST_TIME_ENTRIES_CHECKED, t1.MESSAGE_BOUNCE, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOBILE, t1.NAME, t1.PARENT_ID, t91.NAME AS PARENT_NAME, t1.PARTNER_GID, t1.PARTNER_SHARE, t1.PHONE, t1.PICKING_WARN, t1.PICKING_WARN_MSG, t1.PURCHASE_WARN, t1.PURCHASE_WARN_MSG, t1.REF, t1.SALE_WARN, t1.SALE_WARN_MSG, t1.SIGNUP_EXPIRATION, t1.SIGNUP_TOKEN, t1.SIGNUP_TYPE, t1.STATE_ID, t71.NAME AS STATE_ID_TEXT, t1.STREET, t1.STREET2, t1.SUPPLIER_RANK, t1.TEAM_ID, t151.NAME AS TEAM_ID_TEXT, t1.TITLE, t31.NAME AS TITLE_TEXT, t1.TYPE, t1.TZ, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.VAT, t1.WEBSITE, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WEBSITE_SHORT_DESCRIPTION, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT, t1.ZIP FROM RES_PARTNER t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_PARTNER_TITLE t31 ON t1.TITLE = t31.ID LEFT JOIN RES_COMPANY t41 ON t1.COMPANY_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_COUNTRY t61 ON t1.COUNTRY_ID = t61.ID LEFT JOIN RES_COUNTRY_STATE t71 ON t1.STATE_ID = t71.ID LEFT JOIN RES_PARTNER t81 ON t1.COMMERCIAL_PARTNER_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t1.PARENT_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN RES_USERS t121 ON t1.CREATE_UID = t121.ID LEFT JOIN RES_PARTNER t131 ON t121.PARTNER_ID = t131.ID LEFT JOIN RES_PARTNER_INDUSTRY t141 ON t1.INDUSTRY_ID = t141.ID LEFT JOIN CRM_TEAM t151 ON t1.TEAM_ID = t151.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.ADDITIONAL_INFO, t1.BARCODE, t1.CALENDAR_LAST_NOTIF_ACK, t1.CITY, t1.COLOR, t1.COMMENT, t1.COMMERCIAL_COMPANY_NAME, t1.COMMERCIAL_PARTNER_ID, t81.NAME AS COMMERCIAL_PARTNER_ID_TEXT, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.COMPANY_NAME, t1.COUNTRY_ID, t61.NAME AS COUNTRY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t131.NAME AS CREATE_UID_TEXT, t1.CREDIT_LIMIT, t1.CUSTOMER_RANK, t1.DATE, t1.DEBIT_LIMIT, t1.DISPLAY_NAME, t1.EMAIL, t1.EMPLOYEE, t1.FUNCTION, t1.ID, t1.INDUSTRY_ID, t141.NAME AS INDUSTRY_ID_TEXT, t1.INVOICE_WARN, t1.INVOICE_WARN_MSG, t1.IS_COMPANY, t1.IS_PUBLISHED, t1.LANG, t1.LAST_TIME_ENTRIES_CHECKED, t1.MESSAGE_BOUNCE, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOBILE, t1.NAME, t1.PARENT_ID, t91.NAME AS PARENT_NAME, t1.PARTNER_GID, t1.PARTNER_SHARE, t1.PHONE, t1.PICKING_WARN, t1.PICKING_WARN_MSG, t1.PURCHASE_WARN, t1.PURCHASE_WARN_MSG, t1.REF, t1.SALE_WARN, t1.SALE_WARN_MSG, t1.SIGNUP_EXPIRATION, t1.SIGNUP_TOKEN, t1.SIGNUP_TYPE, t1.STATE_ID, t71.NAME AS STATE_ID_TEXT, t1.STREET, t1.STREET2, t1.SUPPLIER_RANK, t1.TEAM_ID, t151.NAME AS TEAM_ID_TEXT, t1.TITLE, t31.NAME AS TITLE_TEXT, t1.TYPE, t1.TZ, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.VAT, t1.WEBSITE, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WEBSITE_SHORT_DESCRIPTION, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT, t1.ZIP FROM RES_PARTNER t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_PARTNER_TITLE t31 ON t1.TITLE = t31.ID LEFT JOIN RES_COMPANY t41 ON t1.COMPANY_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_COUNTRY t61 ON t1.COUNTRY_ID = t61.ID LEFT JOIN RES_COUNTRY_STATE t71 ON t1.STATE_ID = t71.ID LEFT JOIN RES_PARTNER t81 ON t1.COMMERCIAL_PARTNER_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t1.PARENT_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN RES_USERS t121 ON t1.CREATE_UID = t121.ID LEFT JOIN RES_PARTNER t131 ON t121.PARTNER_ID = t131.ID LEFT JOIN RES_PARTNER_INDUSTRY t141 ON t1.INDUSTRY_ID = t141.ID LEFT JOIN CRM_TEAM t151 ON t1.TEAM_ID = t151.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...
...
@@ -27,6 +27,7 @@
<result
property=
"signupExpiration"
column=
"signup_expiration"
/>
<result
property=
"purchaseOrderCount"
column=
"purchase_order_count"
/>
<result
property=
"hasUnreconciledEntries"
column=
"has_unreconciled_entries"
/>
<result
property=
"categoryId"
column=
"category_id"
/>
<result
property=
"websiteDescription"
column=
"website_description"
/>
<result
property=
"messageMainAttachmentId"
column=
"message_main_attachment_id"
/>
<result
property=
"meetingIds"
column=
"meeting_ids"
/>
...
...
@@ -254,25 +255,14 @@
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.ACTIVE, t1.ADDITIONAL_INFO, t1.BARCODE, t1.CALENDAR_LAST_NOTIF_ACK, t1.CITY, t1.COLOR, t1.COMMERCIAL_COMPANY_NAME, t1.COMMERCIAL_PARTNER_ID, t81.NAME AS COMMERCIAL_PARTNER_ID_TEXT, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.COMPANY_NAME, t1.COUNTRY_ID, t61.NAME AS COUNTRY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t131.NAME AS CREATE_UID_TEXT, t1.CREDIT_LIMIT, t1.CUSTOMER_RANK, t1.DATE, t1.DEBIT_LIMIT, t1.DISPLAY_NAME, t1.EMAIL, t1.EMPLOYEE, t1.FUNCTION
AS IBIZFUNCTION
, t1.ID, t1.INDUSTRY_ID, t141.NAME AS INDUSTRY_ID_TEXT, t1.INVOICE_WARN, t1.IS_COMPANY, t1.IS_PUBLISHED, t1.LANG, t1.LAST_TIME_ENTRIES_CHECKED, t1.MESSAGE_BOUNCE, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOBILE, t1.NAME, t1.PARENT_ID, t91.NAME AS PARENT_NAME, t1.PARTNER_GID, t1.PARTNER_SHARE, t1.PHONE, t1.PICKING_WARN, t1.PURCHASE_WARN, t1.REF, t1.SALE_WARN, t1.SIGNUP_EXPIRATION, t1.SIGNUP_TOKEN, t1.SIGNUP_TYPE, t1.STATE_ID, t71.NAME AS STATE_ID_TEXT, t1.STREET, t1.STREET2, t1.SUPPLIER_RANK, t1.TEAM_ID, t151.NAME AS TEAM_ID_TEXT, t1.TITLE, t31.NAME AS TITLE_TEXT, t1.TYPE, t1.TZ, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.VAT, t1.WEBSITE, t1.WEBSITE_ID, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT, t1.ZIP FROM RES_PARTNER t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_PARTNER_TITLE t31 ON t1.TITLE = t31.ID LEFT JOIN RES_COMPANY t41 ON t1.COMPANY_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_COUNTRY t61 ON t1.COUNTRY_ID = t61.ID LEFT JOIN RES_COUNTRY_STATE t71 ON t1.STATE_ID = t71.ID LEFT JOIN RES_PARTNER t81 ON t1.COMMERCIAL_PARTNER_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t1.PARENT_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN RES_USERS t121 ON t1.CREATE_UID = t121.ID LEFT JOIN RES_PARTNER t131 ON t121.PARTNER_ID = t131.ID LEFT JOIN RES_PARTNER_INDUSTRY t141 ON t1.INDUSTRY_ID = t141.ID LEFT JOIN CRM_TEAM t151 ON t1.TEAM_ID = t151.ID
<![CDATA[ SELECT t1.ACTIVE, t1.ADDITIONAL_INFO, t1.BARCODE, t1.CALENDAR_LAST_NOTIF_ACK, t1.CITY, t1.COLOR, t1.COMMERCIAL_COMPANY_NAME, t1.COMMERCIAL_PARTNER_ID, t81.NAME AS COMMERCIAL_PARTNER_ID_TEXT, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.COMPANY_NAME, t1.COUNTRY_ID, t61.NAME AS COUNTRY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t131.NAME AS CREATE_UID_TEXT, t1.CREDIT_LIMIT, t1.CUSTOMER_RANK, t1.DATE, t1.DEBIT_LIMIT, t1.DISPLAY_NAME, t1.EMAIL, t1.EMPLOYEE, t1.FUNCTION, t1.ID, t1.INDUSTRY_ID, t141.NAME AS INDUSTRY_ID_TEXT, t1.INVOICE_WARN, t1.IS_COMPANY, t1.IS_PUBLISHED, t1.LANG, t1.LAST_TIME_ENTRIES_CHECKED, t1.MESSAGE_BOUNCE, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOBILE, t1.NAME, t1.PARENT_ID, t91.NAME AS PARENT_NAME, t1.PARTNER_GID, t1.PARTNER_SHARE, t1.PHONE, t1.PICKING_WARN, t1.PURCHASE_WARN, t1.REF, t1.SALE_WARN, t1.SIGNUP_EXPIRATION, t1.SIGNUP_TOKEN, t1.SIGNUP_TYPE, t1.STATE_ID, t71.NAME AS STATE_ID_TEXT, t1.STREET, t1.STREET2, t1.SUPPLIER_RANK, t1.TEAM_ID, t151.NAME AS TEAM_ID_TEXT, t1.TITLE, t31.NAME AS TITLE_TEXT, t1.TYPE, t1.TZ, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.VAT, t1.WEBSITE, t1.WEBSITE_ID, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT, t1.ZIP FROM RES_PARTNER t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_PARTNER_TITLE t31 ON t1.TITLE = t31.ID LEFT JOIN RES_COMPANY t41 ON t1.COMPANY_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_COUNTRY t61 ON t1.COUNTRY_ID = t61.ID LEFT JOIN RES_COUNTRY_STATE t71 ON t1.STATE_ID = t71.ID LEFT JOIN RES_PARTNER t81 ON t1.COMMERCIAL_PARTNER_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t1.PARENT_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN RES_USERS t121 ON t1.CREATE_UID = t121.ID LEFT JOIN RES_PARTNER t131 ON t121.PARTNER_ID = t131.ID LEFT JOIN RES_PARTNER_INDUSTRY t141 ON t1.INDUSTRY_ID = t141.ID LEFT JOIN CRM_TEAM t151 ON t1.TEAM_ID = t151.ID
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.ACTIVE, t1.ADDITIONAL_INFO, t1.BARCODE, t1.CALENDAR_LAST_NOTIF_ACK, t1.CITY, t1.COLOR, t1.COMMENT, t1.COMMERCIAL_COMPANY_NAME, t1.COMMERCIAL_PARTNER_ID, t81.NAME AS COMMERCIAL_PARTNER_ID_TEXT, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.COMPANY_NAME, t1.COUNTRY_ID, t61.NAME AS COUNTRY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t131.NAME AS CREATE_UID_TEXT, t1.CREDIT_LIMIT, t1.CUSTOMER_RANK, t1.DATE, t1.DEBIT_LIMIT, t1.DISPLAY_NAME, t1.EMAIL, t1.EMPLOYEE, t1.FUNCTION
AS IBIZFUNCTION
, t1.ID, t1.INDUSTRY_ID, t141.NAME AS INDUSTRY_ID_TEXT, t1.INVOICE_WARN, t1.INVOICE_WARN_MSG, t1.IS_COMPANY, t1.IS_PUBLISHED, t1.LANG, t1.LAST_TIME_ENTRIES_CHECKED, t1.MESSAGE_BOUNCE, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOBILE, t1.NAME, t1.PARENT_ID, t91.NAME AS PARENT_NAME, t1.PARTNER_GID, t1.PARTNER_SHARE, t1.PHONE, t1.PICKING_WARN, t1.PICKING_WARN_MSG, t1.PURCHASE_WARN, t1.PURCHASE_WARN_MSG, t1.REF, t1.SALE_WARN, t1.SALE_WARN_MSG, t1.SIGNUP_EXPIRATION, t1.SIGNUP_TOKEN, t1.SIGNUP_TYPE, t1.STATE_ID, t71.NAME AS STATE_ID_TEXT, t1.STREET, t1.STREET2, t1.SUPPLIER_RANK, t1.TEAM_ID, t151.NAME AS TEAM_ID_TEXT, t1.TITLE, t31.NAME AS TITLE_TEXT, t1.TYPE, t1.TZ, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.VAT, t1.WEBSITE, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WEBSITE_SHORT_DESCRIPTION, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT, t1.ZIP FROM RES_PARTNER t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_PARTNER_TITLE t31 ON t1.TITLE = t31.ID LEFT JOIN RES_COMPANY t41 ON t1.COMPANY_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_COUNTRY t61 ON t1.COUNTRY_ID = t61.ID LEFT JOIN RES_COUNTRY_STATE t71 ON t1.STATE_ID = t71.ID LEFT JOIN RES_PARTNER t81 ON t1.COMMERCIAL_PARTNER_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t1.PARENT_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN RES_USERS t121 ON t1.CREATE_UID = t121.ID LEFT JOIN RES_PARTNER t131 ON t121.PARTNER_ID = t131.ID LEFT JOIN RES_PARTNER_INDUSTRY t141 ON t1.INDUSTRY_ID = t141.ID LEFT JOIN CRM_TEAM t151 ON t1.TEAM_ID = t151.ID
<![CDATA[ SELECT t1.ACTIVE, t1.ADDITIONAL_INFO, t1.BARCODE, t1.CALENDAR_LAST_NOTIF_ACK, t1.CITY, t1.COLOR, t1.COMMENT, t1.COMMERCIAL_COMPANY_NAME, t1.COMMERCIAL_PARTNER_ID, t81.NAME AS COMMERCIAL_PARTNER_ID_TEXT, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.COMPANY_NAME, t1.COUNTRY_ID, t61.NAME AS COUNTRY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t131.NAME AS CREATE_UID_TEXT, t1.CREDIT_LIMIT, t1.CUSTOMER_RANK, t1.DATE, t1.DEBIT_LIMIT, t1.DISPLAY_NAME, t1.EMAIL, t1.EMPLOYEE, t1.FUNCTION, t1.ID, t1.INDUSTRY_ID, t141.NAME AS INDUSTRY_ID_TEXT, t1.INVOICE_WARN, t1.INVOICE_WARN_MSG, t1.IS_COMPANY, t1.IS_PUBLISHED, t1.LANG, t1.LAST_TIME_ENTRIES_CHECKED, t1.MESSAGE_BOUNCE, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOBILE, t1.NAME, t1.PARENT_ID, t91.NAME AS PARENT_NAME, t1.PARTNER_GID, t1.PARTNER_SHARE, t1.PHONE, t1.PICKING_WARN, t1.PICKING_WARN_MSG, t1.PURCHASE_WARN, t1.PURCHASE_WARN_MSG, t1.REF, t1.SALE_WARN, t1.SALE_WARN_MSG, t1.SIGNUP_EXPIRATION, t1.SIGNUP_TOKEN, t1.SIGNUP_TYPE, t1.STATE_ID, t71.NAME AS STATE_ID_TEXT, t1.STREET, t1.STREET2, t1.SUPPLIER_RANK, t1.TEAM_ID, t151.NAME AS TEAM_ID_TEXT, t1.TITLE, t31.NAME AS TITLE_TEXT, t1.TYPE, t1.TZ, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.VAT, t1.WEBSITE, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WEBSITE_SHORT_DESCRIPTION, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT, t1.ZIP FROM RES_PARTNER t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_PARTNER_TITLE t31 ON t1.TITLE = t31.ID LEFT JOIN RES_COMPANY t41 ON t1.COMPANY_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_COUNTRY t61 ON t1.COUNTRY_ID = t61.ID LEFT JOIN RES_COUNTRY_STATE t71 ON t1.STATE_ID = t71.ID LEFT JOIN RES_PARTNER t81 ON t1.COMMERCIAL_PARTNER_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t1.PARENT_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN RES_USERS t121 ON t1.CREATE_UID = t121.ID LEFT JOIN RES_PARTNER t131 ON t121.PARTNER_ID = t131.ID LEFT JOIN RES_PARTNER_INDUSTRY t141 ON t1.INDUSTRY_ID = t141.ID LEFT JOIN CRM_TEAM t151 ON t1.TEAM_ID = t151.ID
]]>
</sql>
<insert
id=
"saveRelByOdoo_partner"
parameterType=
"map"
>
INSERT INTO RES_PARTNER_RES_PARTNER_CATEGORY_REL(
PARTNER_ID,CATEGORY_ID
)values
<foreach
collection=
"res_partner_categories"
item=
"item"
separator=
","
>
(${partner_id},#{item.srfkey})
</foreach>
ON CONFLICT (PARTNER_ID,CATEGORY_ID)
DO NOTHING;
</insert>
</mapper>
businesscentral-core/src/main/resources/sysmodel/iBizBusinessCentral.json
浏览文件 @
d11d1651
...
...
@@ -147161,11 +147161,11 @@
"codename":"Category_id",
"field_logic_name":"标签",
"entity_name":"Res_partner",
"field_type":"
ONE2MANYDATA
",
"field_type":"
TEXT
",
"nullable":1,
"physical_field":0,
"data_type":"
TEXT
",
"data_length":10
48576
,
"data_type":"
VARCHAR
",
"data_length":10
0
,
"key_field":0,
"show_order":1000,
"major_field":0
businesscentral-provider/businesscentral-provider-core/src/main/java/cn/ibizlab/businesscentral/core/dto/Res_partnerDTO.java
浏览文件 @
d11d1651
...
...
@@ -214,7 +214,9 @@ public class Res_partnerDTO extends DTOBase implements Serializable {
*/
@JSONField
(
name
=
"category_id"
)
@JsonProperty
(
"category_id"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
categoryId
;
/**
* 属性 [WEBSITE_DESCRIPTION]
*
...
...
@@ -1431,14 +1433,6 @@ public class Res_partnerDTO extends DTOBase implements Serializable {
this
.
modify
(
"signup_expiration"
,
signupExpiration
);
}
/**
* 设置 [CATEGORY_ID]
*/
public
void
setCategoryId
(
String
categoryId
){
this
.
categoryId
=
categoryId
;
this
.
modify
(
"category_id"
,
categoryId
);
}
/**
* 设置 [WEBSITE_DESCRIPTION]
*/
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录