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

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

上级 8d8709f8
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性--> <!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Res_usersResultMap" databaseId="postgresql"> <select id="selectById" resultMap="Res_usersResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACTION_ID, t1.ACTIVE, t11.ACTIVE AS ACTIVE_PARTNER, t11.ADDITIONAL_INFO, t101.ALIAS_CONTACT, t1.ALIAS_ID, t11.BARCODE, t11.CALENDAR_LAST_NOTIF_ACK, t11.CITY, t11.COLOR, t11.COMMENT, t11.COMMERCIAL_COMPANY_NAME, t11.COMMERCIAL_PARTNER_ID, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t11.COMPANY_NAME, t11.COUNTRY_ID, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t11.CREDIT_LIMIT, t11.DATE, t11.DEBIT_LIMIT, t11.EMAIL, t11.EMPLOYEE, t11.FUNCTION AS IBIZFUNCTION, t1.ID, t11.INDUSTRY_ID, t11.INVOICE_WARN, t11.INVOICE_WARN_MSG, t11.IS_COMPANY, t11.IS_PUBLISHED, t1.KARMA, t11.LANG, t11.LAST_TIME_ENTRIES_CHECKED, t1.LOGIN, t11.MESSAGE_BOUNCE, t11.MESSAGE_MAIN_ATTACHMENT_ID, t11.MOBILE, t11.NAME, t1.NOTIFICATION_TYPE, t1.ODOOBOT_STATE, t11.PARENT_ID, t21.NAME AS PARENT_NAME, t11.PARTNER_GID, t1.PARTNER_ID, t11.PARTNER_SHARE, t11.PHONE, t11.PICKING_WARN, t11.PICKING_WARN_MSG, t11.PURCHASE_WARN, t11.PURCHASE_WARN_MSG, t11.REF, t1.SALE_TEAM_ID, t31.NAME AS SALE_TEAM_ID_TEXT, t11.SALE_WARN, t11.SALE_WARN_MSG, t1.SHARE, t1.SIGNATURE, t11.SIGNUP_EXPIRATION, t11.SIGNUP_TOKEN, t11.SIGNUP_TYPE, t11.STATE_ID, t11.STREET, t11.STREET2, t1.TARGET_SALES_DONE, t1.TARGET_SALES_INVOICED, t1.TARGET_SALES_WON, t11.TEAM_ID, t11.TITLE, t11.TYPE, t11.TZ, t11.USER_ID, t11.VAT, t11.WEBSITE, t11.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t11.WEBSITE_META_DESCRIPTION, t11.WEBSITE_META_KEYWORDS, t11.WEBSITE_META_OG_IMG, t11.WEBSITE_META_TITLE, t11.WEBSITE_SHORT_DESCRIPTION, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT, t11.ZIP FROM RES_USERS t1 LEFT JOIN RES_PARTNER t11 ON t1.PARTNER_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARENT_ID = t21.ID LEFT JOIN CRM_TEAM t31 ON t1.SALE_TEAM_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN MAIL_ALIAS t101 ON t1.ALIAS_ID = t101.ID ) t1 where id=#{id}]]> <![CDATA[select t1.* from (SELECT t1.ACTION_ID, t1.ACTIVE, t11.ACTIVE AS ACTIVE_PARTNER, t11.ADDITIONAL_INFO, t101.ALIAS_CONTACT, t1.ALIAS_ID, t11.BARCODE, t11.CALENDAR_LAST_NOTIF_ACK, t11.CITY, t11.COLOR, t11.COMMENT, t11.COMMERCIAL_COMPANY_NAME, t11.COMMERCIAL_PARTNER_ID, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t11.COMPANY_NAME, t11.COUNTRY_ID, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t11.CREDIT_LIMIT, t11.DATE, t11.DEBIT_LIMIT, t11.EMAIL, t11.EMPLOYEE, t11.FUNCTION, t1.ID, t11.INDUSTRY_ID, t11.INVOICE_WARN, t11.INVOICE_WARN_MSG, t11.IS_COMPANY, t11.IS_PUBLISHED, t1.KARMA, t11.LANG, t11.LAST_TIME_ENTRIES_CHECKED, t1.LOGIN, t11.MESSAGE_BOUNCE, t11.MESSAGE_MAIN_ATTACHMENT_ID, t11.MOBILE, t11.NAME, t1.NOTIFICATION_TYPE, t1.ODOOBOT_STATE, t11.PARENT_ID, t21.NAME AS PARENT_NAME, t11.PARTNER_GID, t1.PARTNER_ID, t11.PARTNER_SHARE, t11.PHONE, t11.PICKING_WARN, t11.PICKING_WARN_MSG, t11.PURCHASE_WARN, t11.PURCHASE_WARN_MSG, t11.REF, t1.SALE_TEAM_ID, t31.NAME AS SALE_TEAM_ID_TEXT, t11.SALE_WARN, t11.SALE_WARN_MSG, t1.SHARE, t1.SIGNATURE, t11.SIGNUP_EXPIRATION, t11.SIGNUP_TOKEN, t11.SIGNUP_TYPE, t11.STATE_ID, t11.STREET, t11.STREET2, t1.TARGET_SALES_DONE, t1.TARGET_SALES_INVOICED, t1.TARGET_SALES_WON, t11.TEAM_ID, t11.TITLE, t11.TYPE, t11.TZ, t11.USER_ID, t11.VAT, t11.WEBSITE, t11.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t11.WEBSITE_META_DESCRIPTION, t11.WEBSITE_META_KEYWORDS, t11.WEBSITE_META_OG_IMG, t11.WEBSITE_META_TITLE, t11.WEBSITE_SHORT_DESCRIPTION, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT, t11.ZIP FROM RES_USERS t1 LEFT JOIN RES_PARTNER t11 ON t1.PARTNER_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARENT_ID = t21.ID LEFT JOIN CRM_TEAM t31 ON t1.SALE_TEAM_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN MAIL_ALIAS t101 ON t1.ALIAS_ID = t101.ID ) t1 where id=#{id}]]>
</select> </select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...@@ -230,12 +230,12 @@ ...@@ -230,12 +230,12 @@
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql"> <sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACTION_ID, t1.ACTIVE, t11.ACTIVE AS ACTIVE_PARTNER, t11.ADDITIONAL_INFO, t101.ALIAS_CONTACT, t1.ALIAS_ID, t11.BARCODE, t11.CALENDAR_LAST_NOTIF_ACK, t11.CITY, t11.COLOR, t11.COMMERCIAL_COMPANY_NAME, t11.COMMERCIAL_PARTNER_ID, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t11.COMPANY_NAME, t11.COUNTRY_ID, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t11.CREDIT_LIMIT, t11.DATE, t11.DEBIT_LIMIT, t11.EMAIL, t11.EMPLOYEE, t11.FUNCTION AS IBIZFUNCTION, t1.ID, t11.INDUSTRY_ID, t11.INVOICE_WARN, t11.IS_COMPANY, t11.IS_PUBLISHED, t1.KARMA, t11.LANG, t11.LAST_TIME_ENTRIES_CHECKED, t1.LOGIN, t11.MESSAGE_BOUNCE, t11.MESSAGE_MAIN_ATTACHMENT_ID, t11.MOBILE, t11.NAME, t1.NOTIFICATION_TYPE, t1.ODOOBOT_STATE, t11.PARENT_ID, t21.NAME AS PARENT_NAME, t11.PARTNER_GID, t1.PARTNER_ID, t11.PARTNER_SHARE, t11.PHONE, t11.PICKING_WARN, t11.PURCHASE_WARN, t11.REF, t1.SALE_TEAM_ID, t31.NAME AS SALE_TEAM_ID_TEXT, t11.SALE_WARN, t1.SHARE, t11.SIGNUP_EXPIRATION, t11.SIGNUP_TOKEN, t11.SIGNUP_TYPE, t11.STATE_ID, t11.STREET, t11.STREET2, t1.TARGET_SALES_DONE, t1.TARGET_SALES_INVOICED, t1.TARGET_SALES_WON, t11.TEAM_ID, t11.TITLE, t11.TYPE, t11.TZ, t11.USER_ID, t11.VAT, t11.WEBSITE, t1.WEBSITE_ID, t11.WEBSITE_META_KEYWORDS, t11.WEBSITE_META_OG_IMG, t11.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT, t11.ZIP FROM RES_USERS t1 LEFT JOIN RES_PARTNER t11 ON t1.PARTNER_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARENT_ID = t21.ID LEFT JOIN CRM_TEAM t31 ON t1.SALE_TEAM_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN MAIL_ALIAS t101 ON t1.ALIAS_ID = t101.ID <![CDATA[ SELECT t1.ACTION_ID, t1.ACTIVE, t11.ACTIVE AS ACTIVE_PARTNER, t11.ADDITIONAL_INFO, t101.ALIAS_CONTACT, t1.ALIAS_ID, t11.BARCODE, t11.CALENDAR_LAST_NOTIF_ACK, t11.CITY, t11.COLOR, t11.COMMERCIAL_COMPANY_NAME, t11.COMMERCIAL_PARTNER_ID, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t11.COMPANY_NAME, t11.COUNTRY_ID, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t11.CREDIT_LIMIT, t11.DATE, t11.DEBIT_LIMIT, t11.EMAIL, t11.EMPLOYEE, t11.FUNCTION, t1.ID, t11.INDUSTRY_ID, t11.INVOICE_WARN, t11.IS_COMPANY, t11.IS_PUBLISHED, t1.KARMA, t11.LANG, t11.LAST_TIME_ENTRIES_CHECKED, t1.LOGIN, t11.MESSAGE_BOUNCE, t11.MESSAGE_MAIN_ATTACHMENT_ID, t11.MOBILE, t11.NAME, t1.NOTIFICATION_TYPE, t1.ODOOBOT_STATE, t11.PARENT_ID, t21.NAME AS PARENT_NAME, t11.PARTNER_GID, t1.PARTNER_ID, t11.PARTNER_SHARE, t11.PHONE, t11.PICKING_WARN, t11.PURCHASE_WARN, t11.REF, t1.SALE_TEAM_ID, t31.NAME AS SALE_TEAM_ID_TEXT, t11.SALE_WARN, t1.SHARE, t11.SIGNUP_EXPIRATION, t11.SIGNUP_TOKEN, t11.SIGNUP_TYPE, t11.STATE_ID, t11.STREET, t11.STREET2, t1.TARGET_SALES_DONE, t1.TARGET_SALES_INVOICED, t1.TARGET_SALES_WON, t11.TEAM_ID, t11.TITLE, t11.TYPE, t11.TZ, t11.USER_ID, t11.VAT, t11.WEBSITE, t1.WEBSITE_ID, t11.WEBSITE_META_KEYWORDS, t11.WEBSITE_META_OG_IMG, t11.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT, t11.ZIP FROM RES_USERS t1 LEFT JOIN RES_PARTNER t11 ON t1.PARTNER_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARENT_ID = t21.ID LEFT JOIN CRM_TEAM t31 ON t1.SALE_TEAM_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN MAIL_ALIAS t101 ON t1.ALIAS_ID = t101.ID
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="postgresql"> <sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACTION_ID, t1.ACTIVE, t11.ACTIVE AS ACTIVE_PARTNER, t11.ADDITIONAL_INFO, t101.ALIAS_CONTACT, t1.ALIAS_ID, t11.BARCODE, t11.CALENDAR_LAST_NOTIF_ACK, t11.CITY, t11.COLOR, t11.COMMENT, t11.COMMERCIAL_COMPANY_NAME, t11.COMMERCIAL_PARTNER_ID, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t11.COMPANY_NAME, t11.COUNTRY_ID, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t11.CREDIT_LIMIT, t11.DATE, t11.DEBIT_LIMIT, t11.EMAIL, t11.EMPLOYEE, t11.FUNCTION AS IBIZFUNCTION, t1.ID, t11.INDUSTRY_ID, t11.INVOICE_WARN, t11.INVOICE_WARN_MSG, t11.IS_COMPANY, t11.IS_PUBLISHED, t1.KARMA, t11.LANG, t11.LAST_TIME_ENTRIES_CHECKED, t1.LOGIN, t11.MESSAGE_BOUNCE, t11.MESSAGE_MAIN_ATTACHMENT_ID, t11.MOBILE, t11.NAME, t1.NOTIFICATION_TYPE, t1.ODOOBOT_STATE, t11.PARENT_ID, t21.NAME AS PARENT_NAME, t11.PARTNER_GID, t1.PARTNER_ID, t11.PARTNER_SHARE, t11.PHONE, t11.PICKING_WARN, t11.PICKING_WARN_MSG, t11.PURCHASE_WARN, t11.PURCHASE_WARN_MSG, t11.REF, t1.SALE_TEAM_ID, t31.NAME AS SALE_TEAM_ID_TEXT, t11.SALE_WARN, t11.SALE_WARN_MSG, t1.SHARE, t1.SIGNATURE, t11.SIGNUP_EXPIRATION, t11.SIGNUP_TOKEN, t11.SIGNUP_TYPE, t11.STATE_ID, t11.STREET, t11.STREET2, t1.TARGET_SALES_DONE, t1.TARGET_SALES_INVOICED, t1.TARGET_SALES_WON, t11.TEAM_ID, t11.TITLE, t11.TYPE, t11.TZ, t11.USER_ID, t11.VAT, t11.WEBSITE, t11.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t11.WEBSITE_META_DESCRIPTION, t11.WEBSITE_META_KEYWORDS, t11.WEBSITE_META_OG_IMG, t11.WEBSITE_META_TITLE, t11.WEBSITE_SHORT_DESCRIPTION, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT, t11.ZIP FROM RES_USERS t1 LEFT JOIN RES_PARTNER t11 ON t1.PARTNER_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARENT_ID = t21.ID LEFT JOIN CRM_TEAM t31 ON t1.SALE_TEAM_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN MAIL_ALIAS t101 ON t1.ALIAS_ID = t101.ID <![CDATA[ SELECT t1.ACTION_ID, t1.ACTIVE, t11.ACTIVE AS ACTIVE_PARTNER, t11.ADDITIONAL_INFO, t101.ALIAS_CONTACT, t1.ALIAS_ID, t11.BARCODE, t11.CALENDAR_LAST_NOTIF_ACK, t11.CITY, t11.COLOR, t11.COMMENT, t11.COMMERCIAL_COMPANY_NAME, t11.COMMERCIAL_PARTNER_ID, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t11.COMPANY_NAME, t11.COUNTRY_ID, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t11.CREDIT_LIMIT, t11.DATE, t11.DEBIT_LIMIT, t11.EMAIL, t11.EMPLOYEE, t11.FUNCTION, t1.ID, t11.INDUSTRY_ID, t11.INVOICE_WARN, t11.INVOICE_WARN_MSG, t11.IS_COMPANY, t11.IS_PUBLISHED, t1.KARMA, t11.LANG, t11.LAST_TIME_ENTRIES_CHECKED, t1.LOGIN, t11.MESSAGE_BOUNCE, t11.MESSAGE_MAIN_ATTACHMENT_ID, t11.MOBILE, t11.NAME, t1.NOTIFICATION_TYPE, t1.ODOOBOT_STATE, t11.PARENT_ID, t21.NAME AS PARENT_NAME, t11.PARTNER_GID, t1.PARTNER_ID, t11.PARTNER_SHARE, t11.PHONE, t11.PICKING_WARN, t11.PICKING_WARN_MSG, t11.PURCHASE_WARN, t11.PURCHASE_WARN_MSG, t11.REF, t1.SALE_TEAM_ID, t31.NAME AS SALE_TEAM_ID_TEXT, t11.SALE_WARN, t11.SALE_WARN_MSG, t1.SHARE, t1.SIGNATURE, t11.SIGNUP_EXPIRATION, t11.SIGNUP_TOKEN, t11.SIGNUP_TYPE, t11.STATE_ID, t11.STREET, t11.STREET2, t1.TARGET_SALES_DONE, t1.TARGET_SALES_INVOICED, t1.TARGET_SALES_WON, t11.TEAM_ID, t11.TITLE, t11.TYPE, t11.TZ, t11.USER_ID, t11.VAT, t11.WEBSITE, t11.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t11.WEBSITE_META_DESCRIPTION, t11.WEBSITE_META_KEYWORDS, t11.WEBSITE_META_OG_IMG, t11.WEBSITE_META_TITLE, t11.WEBSITE_SHORT_DESCRIPTION, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT, t11.ZIP FROM RES_USERS t1 LEFT JOIN RES_PARTNER t11 ON t1.PARTNER_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARENT_ID = t21.ID LEFT JOIN CRM_TEAM t31 ON t1.SALE_TEAM_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN MAIL_ALIAS t101 ON t1.ALIAS_ID = t101.ID
]]> ]]>
</sql> </sql>
......
...@@ -194,12 +194,12 @@ ...@@ -194,12 +194,12 @@
<!--数据查询[Calc_order_amount]--> <!--数据查询[Calc_order_amount]-->
<sql id="Calc_order_amount" databaseId="postgresql"> <sql id="Calc_order_amount" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ANALYTIC_ID, t131.NAME AS ACCOUNT_ANALYTIC_ID_TEXT, t1.COMPANY_ID, t111.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t151.NAME AS CURRENCY_ID_TEXT, t121.DATE_ORDER, t1.DATE_PLANNED, t1.ID, t1.ORDERPOINT_ID, t41.NAME AS ORDERPOINT_ID_TEXT, t1.ORDER_ID, t121.NAME AS ORDER_ID_TEXT, t1.PARTNER_ID, t11.NAME AS PARTNER_ID_TEXT, t1.PRICE_SUBTOTAL, t1.PRICE_TAX, t1.PRICE_TOTAL, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_QTY, t71.TYPE AS PRODUCT_TYPE, t1.PRODUCT_UOM, t141.CATEGORY_ID AS PRODUCT_UOM_CATEGORY_ID, t1.PRODUCT_UOM_QTY, t141.NAME AS PRODUCT_UOM_TEXT, t1.QTY_INVOICED, t1.QTY_RECEIVED, t1.SALE_LINE_ID, t1.SALE_ORDER_ID, t51.NAME AS SALE_ORDER_ID_TEXT, t1.SEQUENCE, t121.STATE, (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM ACCOUNT_TAX_PURCHASE_ORDER_LINE_REL M1 LEFT JOIN ACCOUNT_TAX M2 ON M1.ACCOUNT_TAX_ID = M2.ID WHERE M1.PURCHASE_ORDER_LINE_ID =T1.ID ) T) AS TAXES_ID, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM PURCHASE_ORDER_LINE t1 LEFT JOIN RES_PARTNER t11 ON t1.PARTNER_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.CREATE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN STOCK_WAREHOUSE_ORDERPOINT t41 ON t1.ORDERPOINT_ID = t41.ID LEFT JOIN SALE_ORDER t51 ON t1.SALE_ORDER_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_COMPANY t101 ON t1.COMPANY_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN PURCHASE_ORDER t121 ON t1.ORDER_ID = t121.ID LEFT JOIN ACCOUNT_ANALYTIC_ACCOUNT t131 ON t1.ACCOUNT_ANALYTIC_ID = t131.ID LEFT JOIN UOM_UOM t141 ON t1.PRODUCT_UOM = t141.ID LEFT JOIN RES_CURRENCY t151 ON t1.CURRENCY_ID = t151.ID <![CDATA[ SELECT t1.ACCOUNT_ANALYTIC_ID, t131.NAME AS ACCOUNT_ANALYTIC_ID_TEXT, t1.COMPANY_ID, t111.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t151.NAME AS CURRENCY_ID_TEXT, t121.DATE_ORDER, t1.DATE_PLANNED, t1.ID, t1.NAME, t1.ORDERPOINT_ID, t41.NAME AS ORDERPOINT_ID_TEXT, t1.ORDER_ID, t121.NAME AS ORDER_ID_TEXT, t1.PARTNER_ID, t11.NAME AS PARTNER_ID_TEXT, t1.PRICE_SUBTOTAL, t1.PRICE_TAX, t1.PRICE_TOTAL, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_QTY, t71.TYPE AS PRODUCT_TYPE, t1.PRODUCT_UOM, t141.CATEGORY_ID AS PRODUCT_UOM_CATEGORY_ID, t1.PRODUCT_UOM_QTY, t141.NAME AS PRODUCT_UOM_TEXT, t1.QTY_INVOICED, t1.QTY_RECEIVED, t1.SALE_LINE_ID, t1.SALE_ORDER_ID, t51.NAME AS SALE_ORDER_ID_TEXT, t1.SEQUENCE, t121.STATE, (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM ACCOUNT_TAX_PURCHASE_ORDER_LINE_REL M1 LEFT JOIN ACCOUNT_TAX M2 ON M1.ACCOUNT_TAX_ID = M2.ID WHERE M1.PURCHASE_ORDER_LINE_ID =T1.ID ) T) AS TAXES_ID, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM PURCHASE_ORDER_LINE t1 LEFT JOIN RES_PARTNER t11 ON t1.PARTNER_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.CREATE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN STOCK_WAREHOUSE_ORDERPOINT t41 ON t1.ORDERPOINT_ID = t41.ID LEFT JOIN SALE_ORDER t51 ON t1.SALE_ORDER_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_COMPANY t101 ON t1.COMPANY_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN PURCHASE_ORDER t121 ON t1.ORDER_ID = t121.ID LEFT JOIN ACCOUNT_ANALYTIC_ACCOUNT t131 ON t1.ACCOUNT_ANALYTIC_ID = t131.ID LEFT JOIN UOM_UOM t141 ON t1.PRODUCT_UOM = t141.ID LEFT JOIN RES_CURRENCY t151 ON t1.CURRENCY_ID = t151.ID
]]> ]]>
</sql> </sql>
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql"> <sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ANALYTIC_ID, t131.NAME AS ACCOUNT_ANALYTIC_ID_TEXT, t1.COMPANY_ID, t111.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t151.NAME AS CURRENCY_ID_TEXT, t121.DATE_ORDER, t1.DATE_PLANNED, t1.ID, t1.ORDERPOINT_ID, t41.NAME AS ORDERPOINT_ID_TEXT, t1.ORDER_ID, t121.NAME AS ORDER_ID_TEXT, t1.PARTNER_ID, t11.NAME AS PARTNER_ID_TEXT, t1.PRICE_SUBTOTAL, t1.PRICE_TAX, t1.PRICE_TOTAL, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_QTY, t71.TYPE AS PRODUCT_TYPE, t1.PRODUCT_UOM, t141.CATEGORY_ID AS PRODUCT_UOM_CATEGORY_ID, t1.PRODUCT_UOM_QTY, t141.NAME AS PRODUCT_UOM_TEXT, t1.QTY_INVOICED, t1.QTY_RECEIVED, t1.SALE_LINE_ID, t1.SALE_ORDER_ID, t51.NAME AS SALE_ORDER_ID_TEXT, t1.SEQUENCE, t121.STATE, (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM ACCOUNT_TAX_PURCHASE_ORDER_LINE_REL M1 LEFT JOIN ACCOUNT_TAX M2 ON M1.ACCOUNT_TAX_ID = M2.ID WHERE M1.PURCHASE_ORDER_LINE_ID =T1.ID ) T) AS TAXES_ID, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM PURCHASE_ORDER_LINE t1 LEFT JOIN RES_PARTNER t11 ON t1.PARTNER_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.CREATE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN STOCK_WAREHOUSE_ORDERPOINT t41 ON t1.ORDERPOINT_ID = t41.ID LEFT JOIN SALE_ORDER t51 ON t1.SALE_ORDER_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_COMPANY t101 ON t1.COMPANY_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN PURCHASE_ORDER t121 ON t1.ORDER_ID = t121.ID LEFT JOIN ACCOUNT_ANALYTIC_ACCOUNT t131 ON t1.ACCOUNT_ANALYTIC_ID = t131.ID LEFT JOIN UOM_UOM t141 ON t1.PRODUCT_UOM = t141.ID LEFT JOIN RES_CURRENCY t151 ON t1.CURRENCY_ID = t151.ID <![CDATA[ SELECT t1.ACCOUNT_ANALYTIC_ID, t131.NAME AS ACCOUNT_ANALYTIC_ID_TEXT, t1.COMPANY_ID, t111.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t151.NAME AS CURRENCY_ID_TEXT, t121.DATE_ORDER, t1.DATE_PLANNED, t1.ID, t1.NAME, t1.ORDERPOINT_ID, t41.NAME AS ORDERPOINT_ID_TEXT, t1.ORDER_ID, t121.NAME AS ORDER_ID_TEXT, t1.PARTNER_ID, t11.NAME AS PARTNER_ID_TEXT, t1.PRICE_SUBTOTAL, t1.PRICE_TAX, t1.PRICE_TOTAL, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_QTY, t71.TYPE AS PRODUCT_TYPE, t1.PRODUCT_UOM, t141.CATEGORY_ID AS PRODUCT_UOM_CATEGORY_ID, t1.PRODUCT_UOM_QTY, t141.NAME AS PRODUCT_UOM_TEXT, t1.QTY_INVOICED, t1.QTY_RECEIVED, t1.SALE_LINE_ID, t1.SALE_ORDER_ID, t51.NAME AS SALE_ORDER_ID_TEXT, t1.SEQUENCE, t121.STATE, (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM ACCOUNT_TAX_PURCHASE_ORDER_LINE_REL M1 LEFT JOIN ACCOUNT_TAX M2 ON M1.ACCOUNT_TAX_ID = M2.ID WHERE M1.PURCHASE_ORDER_LINE_ID =T1.ID ) T) AS TAXES_ID, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM PURCHASE_ORDER_LINE t1 LEFT JOIN RES_PARTNER t11 ON t1.PARTNER_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.CREATE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN STOCK_WAREHOUSE_ORDERPOINT t41 ON t1.ORDERPOINT_ID = t41.ID LEFT JOIN SALE_ORDER t51 ON t1.SALE_ORDER_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_COMPANY t101 ON t1.COMPANY_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN PURCHASE_ORDER t121 ON t1.ORDER_ID = t121.ID LEFT JOIN ACCOUNT_ANALYTIC_ACCOUNT t131 ON t1.ACCOUNT_ANALYTIC_ID = t131.ID LEFT JOIN UOM_UOM t141 ON t1.PRODUCT_UOM = t141.ID LEFT JOIN RES_CURRENCY t151 ON t1.CURRENCY_ID = t151.ID
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
......
...@@ -15525,7 +15525,7 @@ ...@@ -15525,7 +15525,7 @@
"field_type":"PICKUPTEXT", "field_type":"PICKUPTEXT",
"nullable":1, "nullable":1,
"physical_field":0, "physical_field":0,
"data_type":"TEXT", "data_type":"VARCHAR",
"data_length":200, "data_length":200,
"key_field":0, "key_field":0,
"show_order":1000, "show_order":1000,
...@@ -131453,11 +131453,11 @@ ...@@ -131453,11 +131453,11 @@
"codename":"Name", "codename":"Name",
"field_logic_name":"说明", "field_logic_name":"说明",
"entity_name":"Purchase_order_line", "entity_name":"Purchase_order_line",
"field_type":"LONGTEXT", "field_type":"LONGTEXT_1000",
"nullable":0, "nullable":0,
"physical_field":1, "physical_field":1,
"data_type":"TEXT", "data_type":"VARCHAR",
"data_length":1048576, "data_length":2000,
"key_field":0, "key_field":0,
"show_order":1000, "show_order":1000,
"major_field":1 "major_field":1
...@@ -173306,7 +173306,7 @@ ...@@ -173306,7 +173306,7 @@
"field_type":"PICKUPTEXT", "field_type":"PICKUPTEXT",
"nullable":1, "nullable":1,
"physical_field":0, "physical_field":0,
"data_type":"TEXT", "data_type":"VARCHAR",
"data_length":200, "data_length":200,
"key_field":0, "key_field":0,
"show_order":1000, "show_order":1000,
...@@ -173503,7 +173503,7 @@ ...@@ -173503,7 +173503,7 @@
"field_type":"PICKUPTEXT", "field_type":"PICKUPTEXT",
"nullable":1, "nullable":1,
"physical_field":0, "physical_field":0,
"data_type":"TEXT", "data_type":"VARCHAR",
"data_length":200, "data_length":200,
"key_field":0, "key_field":0,
"show_order":1000, "show_order":1000,
...@@ -61,7 +61,7 @@ public class Purchase_order_lineDTO extends DTOBase implements Serializable { ...@@ -61,7 +61,7 @@ public class Purchase_order_lineDTO extends DTOBase implements Serializable {
@JSONField(name = "name") @JSONField(name = "name")
@JsonProperty("name") @JsonProperty("name")
@NotBlank(message = "[说明]不允许为空!") @NotBlank(message = "[说明]不允许为空!")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]") @Size(min = 0, max = 2000, message = "内容长度必须小于等于[2000]")
private String name; private String name;
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册