提交 d11d1651 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码,后台体系[Spring Boot]

上级 1438c592
......@@ -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);
}
/**
* 设置 [网站业务伙伴的详细说明]
*/
......
......@@ -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);
}
......@@ -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;
......
......@@ -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>
......@@ -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":1048576,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册