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

xignzi006 发布系统代码 [Spring Boot]

上级 cc1cc4f2
......@@ -130,7 +130,7 @@ public class Res_supplier extends EntityMP implements Serializable {
@JsonProperty("property_supplier_payment_term_id")
private Long propertySupplierPaymentTermId;
/**
* 付款条款
* 采购付款条例
*/
@TableField(exist = false)
@JSONField(name = "property_supplier_payment_term_name")
......
......@@ -55,14 +55,14 @@ public class Res_supplierSearchContext extends QueryWrapperContext<Res_supplier>
this.getSearchCond().eq("property_supplier_payment_term_id", n_property_supplier_payment_term_id_eq);
}
}
private String n_property_supplier_payment_term_name_eq;//[付款条款]
private String n_property_supplier_payment_term_name_eq;//[采购付款条例]
public void setN_property_supplier_payment_term_name_eq(String n_property_supplier_payment_term_name_eq) {
this.n_property_supplier_payment_term_name_eq = n_property_supplier_payment_term_name_eq;
if(!ObjectUtils.isEmpty(this.n_property_supplier_payment_term_name_eq)){
this.getSearchCond().eq("property_supplier_payment_term_name", n_property_supplier_payment_term_name_eq);
}
}
private String n_property_supplier_payment_term_name_like;//[付款条款]
private String n_property_supplier_payment_term_name_like;//[采购付款条例]
public void setN_property_supplier_payment_term_name_like(String n_property_supplier_payment_term_name_like) {
this.n_property_supplier_payment_term_name_like = n_property_supplier_payment_term_name_like;
if(!ObjectUtils.isEmpty(this.n_property_supplier_payment_term_name_like)){
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Res_supplierResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM RES_PARTNER_RES_PARTNER_CATEGORY_REL M1 LEFT JOIN RES_PARTNER_CATEGORY M2 ON M1.CATEGORY_ID = M2.ID WHERE M1.PARTNER_ID =T1.ID ) T) AS CATEGORY_ID, t1.EMAIL, t1.FUNCTION, t1.ID, t1.MOBILE, t1.NAME, t1.PHONE, t1.ID AS PROPERTY_SUPPLIER_PAYMENT_TERM_ID, t11.NAME AS PROPERTY_SUPPLIER_PAYMENT_TERM_NAME, t1.TYPE, t1.VAT FROM RES_PARTNER t1 LEFT JOIN ACCOUNT_PAYMENT_TERM t11 ON t1.ID = t11.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM RES_PARTNER_RES_PARTNER_CATEGORY_REL M1 LEFT JOIN RES_PARTNER_CATEGORY M2 ON M1.CATEGORY_ID = M2.ID WHERE M1.PARTNER_ID =T1.ID ) T) AS CATEGORY_ID, t1.EMAIL, t1.FUNCTION, t1.ID, t1.MOBILE, t1.NAME, t1.PHONE, t1.PROPERTY_SUPPLIER_PAYMENT_TERM_ID, t11.NAME AS PROPERTY_SUPPLIER_PAYMENT_TERM_NAME, t1.TYPE, t1.VAT FROM RES_PARTNER t1 LEFT JOIN ACCOUNT_PAYMENT_TERM t11 ON t1.PROPERTY_SUPPLIER_PAYMENT_TERM_ID = t11.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -41,12 +41,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.EMAIL, t1.FUNCTION, t1.ID, t1.MOBILE, t1.NAME, t1.PHONE, t1.ID AS PROPERTY_SUPPLIER_PAYMENT_TERM_ID, t11.NAME AS PROPERTY_SUPPLIER_PAYMENT_TERM_NAME, t1.TYPE, t1.VAT FROM RES_PARTNER t1 LEFT JOIN ACCOUNT_PAYMENT_TERM t11 ON t1.ID = t11.ID
<![CDATA[ SELECT t1.EMAIL, t1.FUNCTION, t1.ID, t1.MOBILE, t1.NAME, t1.PHONE, t1.PROPERTY_SUPPLIER_PAYMENT_TERM_ID, t11.NAME AS PROPERTY_SUPPLIER_PAYMENT_TERM_NAME, t1.TYPE, t1.VAT FROM RES_PARTNER t1 LEFT JOIN ACCOUNT_PAYMENT_TERM t11 ON t1.PROPERTY_SUPPLIER_PAYMENT_TERM_ID = t11.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM RES_PARTNER_RES_PARTNER_CATEGORY_REL M1 LEFT JOIN RES_PARTNER_CATEGORY M2 ON M1.CATEGORY_ID = M2.ID WHERE M1.PARTNER_ID =T1.ID ) T) AS CATEGORY_ID, t1.EMAIL, t1.FUNCTION, t1.ID, t1.MOBILE, t1.NAME, t1.PHONE, t1.ID AS PROPERTY_SUPPLIER_PAYMENT_TERM_ID, t11.NAME AS PROPERTY_SUPPLIER_PAYMENT_TERM_NAME, t1.TYPE, t1.VAT FROM RES_PARTNER t1 LEFT JOIN ACCOUNT_PAYMENT_TERM t11 ON t1.ID = t11.ID
<![CDATA[ SELECT (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM RES_PARTNER_RES_PARTNER_CATEGORY_REL M1 LEFT JOIN RES_PARTNER_CATEGORY M2 ON M1.CATEGORY_ID = M2.ID WHERE M1.PARTNER_ID =T1.ID ) T) AS CATEGORY_ID, t1.EMAIL, t1.FUNCTION, t1.ID, t1.MOBILE, t1.NAME, t1.PHONE, t1.PROPERTY_SUPPLIER_PAYMENT_TERM_ID, t11.NAME AS PROPERTY_SUPPLIER_PAYMENT_TERM_NAME, t1.TYPE, t1.VAT FROM RES_PARTNER t1 LEFT JOIN ACCOUNT_PAYMENT_TERM t11 ON t1.PROPERTY_SUPPLIER_PAYMENT_TERM_ID = t11.ID
]]>
</sql>
......
......@@ -151910,7 +151910,7 @@
{
"fieldname":"PROPERTY_SUPPLIER_PAYMENT_TERM_NAME" ,
"codename":"Property_supplier_payment_term_name",
"field_logic_name":"付款条款",
"field_logic_name":"采购付款条例",
"entity_name":"Res_supplier",
"ref_de":"ACCOUNT_PAYMENT_TERM",
"ref_field_name":"NAME",
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册