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

xignzi006 发布系统代码

上级 f43bbe20
......@@ -138,14 +138,6 @@ public class Purchase_requisition_line extends EntityMP implements Serializable
@JSONField(name = "schedule_date" , format="yyyy-MM-dd")
@JsonProperty("schedule_date")
private Timestamp scheduleDate;
/**
* 显示名称
*/
@DEField(name = "display_name")
@TableField(value = "display_name")
@JSONField(name = "display_name")
@JsonProperty("display_name")
private String displayName;
/**
* 产品
*/
......@@ -413,14 +405,6 @@ public class Purchase_requisition_line extends EntityMP implements Serializable
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
return sdf.format(scheduleDate);
}
/**
* 设置 [显示名称]
*/
public void setDisplayName(String displayName){
this.displayName = displayName ;
this.modify("display_name",displayName);
}
/**
* 设置 [产品]
*/
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Purchase_requisition_lineResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACCOUNT_ANALYTIC_ID, t81.NAME AS ACCOUNT_ANALYTIC_NAME, t1.COMPANY_ID, t101.NAME AS COMPANY_NAME, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UNAME, t1.DISPLAY_NAME, t1.ID, t1.MOVE_DEST_ID, t111.NAME AS MOVE_DEST_NAME, t1.NAME, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_NAME, t1.PRODUCT_QTY, t1.PRODUCT_UOM_ID, t121.NAME AS PRODUCT_UOM_NAME, t1.QTY_ORDERED, t1.REQUISITION_ID, t51.NAME AS REQUISITION_NAME, t1.SCHEDULE_DATE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UNAME FROM PURCHASE_REQUISITION_LINE t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PURCHASE_REQUISITION t51 ON t1.REQUISITION_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 ACCOUNT_ANALYTIC_ACCOUNT t81 ON t1.ACCOUNT_ANALYTIC_ID = t81.ID LEFT JOIN RES_COMPANY t91 ON t1.COMPANY_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN STOCK_MOVE t111 ON t1.MOVE_DEST_ID = t111.ID LEFT JOIN UOM_UOM t121 ON t1.PRODUCT_UOM_ID = t121.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.ACCOUNT_ANALYTIC_ID, t81.NAME AS ACCOUNT_ANALYTIC_NAME, t1.COMPANY_ID, t101.NAME AS COMPANY_NAME, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UNAME, t1.ID, t1.MOVE_DEST_ID, t111.NAME AS MOVE_DEST_NAME, t1.NAME, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_NAME, t1.PRODUCT_QTY, t1.PRODUCT_UOM_ID, t121.NAME AS PRODUCT_UOM_NAME, t1.QTY_ORDERED, t1.REQUISITION_ID, t51.NAME AS REQUISITION_NAME, t1.SCHEDULE_DATE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UNAME FROM PURCHASE_REQUISITION_LINE t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PURCHASE_REQUISITION t51 ON t1.REQUISITION_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 ACCOUNT_ANALYTIC_ACCOUNT t81 ON t1.ACCOUNT_ANALYTIC_ID = t81.ID LEFT JOIN RES_COMPANY t91 ON t1.COMPANY_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN STOCK_MOVE t111 ON t1.MOVE_DEST_ID = t111.ID LEFT JOIN UOM_UOM t121 ON t1.PRODUCT_UOM_ID = t121.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -21,7 +21,6 @@
<result property="priceUnit" column="price_unit" />
<result property="qtyOrdered" column="qty_ordered" />
<result property="scheduleDate" column="schedule_date" />
<result property="displayName" column="display_name" />
<result property="productId" column="product_id" />
<result property="requisitionId" column="requisition_id" />
<result property="requisitionName" column="requisition_name" />
......@@ -123,12 +122,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ANALYTIC_ID, t81.NAME AS ACCOUNT_ANALYTIC_NAME, t1.COMPANY_ID, t101.NAME AS COMPANY_NAME, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UNAME, t1.DISPLAY_NAME, t1.ID, t1.MOVE_DEST_ID, t111.NAME AS MOVE_DEST_NAME, t1.NAME, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_NAME, t1.PRODUCT_QTY, t1.PRODUCT_UOM_ID, t121.NAME AS PRODUCT_UOM_NAME, t1.QTY_ORDERED, t1.REQUISITION_ID, t51.NAME AS REQUISITION_NAME, t1.SCHEDULE_DATE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UNAME FROM PURCHASE_REQUISITION_LINE t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PURCHASE_REQUISITION t51 ON t1.REQUISITION_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 ACCOUNT_ANALYTIC_ACCOUNT t81 ON t1.ACCOUNT_ANALYTIC_ID = t81.ID LEFT JOIN RES_COMPANY t91 ON t1.COMPANY_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN STOCK_MOVE t111 ON t1.MOVE_DEST_ID = t111.ID LEFT JOIN UOM_UOM t121 ON t1.PRODUCT_UOM_ID = t121.ID
<![CDATA[ SELECT t1.ACCOUNT_ANALYTIC_ID, t81.NAME AS ACCOUNT_ANALYTIC_NAME, t1.COMPANY_ID, t101.NAME AS COMPANY_NAME, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UNAME, t1.ID, t1.MOVE_DEST_ID, t111.NAME AS MOVE_DEST_NAME, t1.NAME, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_NAME, t1.PRODUCT_QTY, t1.PRODUCT_UOM_ID, t121.NAME AS PRODUCT_UOM_NAME, t1.QTY_ORDERED, t1.REQUISITION_ID, t51.NAME AS REQUISITION_NAME, t1.SCHEDULE_DATE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UNAME FROM PURCHASE_REQUISITION_LINE t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PURCHASE_REQUISITION t51 ON t1.REQUISITION_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 ACCOUNT_ANALYTIC_ACCOUNT t81 ON t1.ACCOUNT_ANALYTIC_ID = t81.ID LEFT JOIN RES_COMPANY t91 ON t1.COMPANY_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN STOCK_MOVE t111 ON t1.MOVE_DEST_ID = t111.ID LEFT JOIN UOM_UOM t121 ON t1.PRODUCT_UOM_ID = t121.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ANALYTIC_ID, t81.NAME AS ACCOUNT_ANALYTIC_NAME, t1.COMPANY_ID, t101.NAME AS COMPANY_NAME, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UNAME, t1.DISPLAY_NAME, t1.ID, t1.MOVE_DEST_ID, t111.NAME AS MOVE_DEST_NAME, t1.NAME, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_NAME, t1.PRODUCT_QTY, t1.PRODUCT_UOM_ID, t121.NAME AS PRODUCT_UOM_NAME, t1.QTY_ORDERED, t1.REQUISITION_ID, t51.NAME AS REQUISITION_NAME, t1.SCHEDULE_DATE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UNAME FROM PURCHASE_REQUISITION_LINE t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PURCHASE_REQUISITION t51 ON t1.REQUISITION_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 ACCOUNT_ANALYTIC_ACCOUNT t81 ON t1.ACCOUNT_ANALYTIC_ID = t81.ID LEFT JOIN RES_COMPANY t91 ON t1.COMPANY_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN STOCK_MOVE t111 ON t1.MOVE_DEST_ID = t111.ID LEFT JOIN UOM_UOM t121 ON t1.PRODUCT_UOM_ID = t121.ID
<![CDATA[ SELECT t1.ACCOUNT_ANALYTIC_ID, t81.NAME AS ACCOUNT_ANALYTIC_NAME, t1.COMPANY_ID, t101.NAME AS COMPANY_NAME, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UNAME, t1.ID, t1.MOVE_DEST_ID, t111.NAME AS MOVE_DEST_NAME, t1.NAME, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_NAME, t1.PRODUCT_QTY, t1.PRODUCT_UOM_ID, t121.NAME AS PRODUCT_UOM_NAME, t1.QTY_ORDERED, t1.REQUISITION_ID, t51.NAME AS REQUISITION_NAME, t1.SCHEDULE_DATE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UNAME FROM PURCHASE_REQUISITION_LINE t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PURCHASE_REQUISITION t51 ON t1.REQUISITION_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 ACCOUNT_ANALYTIC_ACCOUNT t81 ON t1.ACCOUNT_ANALYTIC_ID = t81.ID LEFT JOIN RES_COMPANY t91 ON t1.COMPANY_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN STOCK_MOVE t111 ON t1.MOVE_DEST_ID = t111.ID LEFT JOIN UOM_UOM t121 ON t1.PRODUCT_UOM_ID = t121.ID
]]>
</sql>
</mapper>
......
......@@ -124174,19 +124174,6 @@
"major_field":0
},
{
"fieldname":"DISPLAY_NAME" ,
"codename":"Display_name",
"field_logic_name":"显示名称",
"entity_name":"Purchase_requisition_line",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"major_field":0
},
{
"fieldname":"PRODUCT_ID" ,
"codename":"Product_id",
"field_logic_name":"产品",
......@@ -135,15 +135,6 @@ public class Purchase_requisition_lineDTO extends DTOBase implements Serializabl
@JsonProperty("schedule_date")
private Timestamp scheduleDate;
/**
* 属性 [DISPLAY_NAME]
*
*/
@JSONField(name = "display_name")
@JsonProperty("display_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [PRODUCT_ID]
*
......@@ -334,14 +325,6 @@ public class Purchase_requisition_lineDTO extends DTOBase implements Serializabl
this.modify("schedule_date",scheduleDate);
}
/**
* 设置 [DISPLAY_NAME]
*/
public void setDisplayName(String displayName){
this.displayName = displayName ;
this.modify("display_name",displayName);
}
/**
* 设置 [PRODUCT_ID]
*/
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册