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

xignzi006 发布系统代码 [Spring Boot]

上级 1cd92926
......@@ -118,15 +118,6 @@ public class Account_account extends EntityMP implements Serializable {
@JSONField(name = "display_name")
@JsonProperty("display_name")
private String displayName;
/**
* 最近的发票和付款匹配时间
*/
@DEField(name = "last_time_entries_checked")
@TableField(value = "last_time_entries_checked")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "last_time_entries_checked" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("last_time_entries_checked")
private Timestamp lastTimeEntriesChecked;
/**
* 允许核销
*/
......@@ -335,24 +326,6 @@ public class Account_account extends EntityMP implements Serializable {
this.modify("deprecated",deprecated);
}
/**
* 设置 [最近的发票和付款匹配时间]
*/
public void setLastTimeEntriesChecked(Timestamp lastTimeEntriesChecked){
this.lastTimeEntriesChecked = lastTimeEntriesChecked ;
this.modify("last_time_entries_checked",lastTimeEntriesChecked);
}
/**
* 格式化日期 [最近的发票和付款匹配时间]
*/
public String formatLastTimeEntriesChecked(){
if (this.lastTimeEntriesChecked == null) {
return null;
}
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return sdf.format(lastTimeEntriesChecked);
}
/**
* 设置 [允许核销]
*/
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Account_accountResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CODE, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t41.NAME AS CURRENCY_ID_TEXT, t1.DEPRECATED, t1.GROUP_ID, t51.NAME AS GROUP_ID_TEXT, t1.ID, t11.INTERNAL_GROUP, t11.TYPE AS INTERNAL_TYPE, t1.LAST_TIME_ENTRIES_CHECKED, t1.NAME, t1.NOTE, t1.RECONCILE, t1.USER_TYPE_ID, t11.NAME AS USER_TYPE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM ACCOUNT_ACCOUNT t1 LEFT JOIN ACCOUNT_ACCOUNT_TYPE t11 ON t1.USER_TYPE_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 RES_CURRENCY t41 ON t1.CURRENCY_ID = t41.ID LEFT JOIN ACCOUNT_GROUP t51 ON t1.GROUP_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.WRITE_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 ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.CODE, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t41.NAME AS CURRENCY_ID_TEXT, t1.DEPRECATED, t1.GROUP_ID, t51.NAME AS GROUP_ID_TEXT, t1.ID, t11.INTERNAL_GROUP, t11.TYPE AS INTERNAL_TYPE, t1.NAME, t1.NOTE, t1.RECONCILE, t1.USER_TYPE_ID, t11.NAME AS USER_TYPE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM ACCOUNT_ACCOUNT t1 LEFT JOIN ACCOUNT_ACCOUNT_TYPE t11 ON t1.USER_TYPE_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 RES_CURRENCY t41 ON t1.CURRENCY_ID = t41.ID LEFT JOIN ACCOUNT_GROUP t51 ON t1.GROUP_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.WRITE_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 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -17,7 +17,6 @@
<result property="taxIds" column="tax_ids" />
<result property="writeDate" column="write_date" />
<result property="displayName" column="display_name" />
<result property="lastTimeEntriesChecked" column="last_time_entries_checked" />
<result property="tagIds" column="tag_ids" />
<result property="LastUpdate" column="__last_update" />
<result property="internalType" column="internal_type" />
......@@ -104,12 +103,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CODE, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t41.NAME AS CURRENCY_ID_TEXT, t1.DEPRECATED, t1.GROUP_ID, t51.NAME AS GROUP_ID_TEXT, t1.ID, t11.INTERNAL_GROUP, t11.TYPE AS INTERNAL_TYPE, t1.LAST_TIME_ENTRIES_CHECKED, t1.NAME, t1.RECONCILE, t1.USER_TYPE_ID, t11.NAME AS USER_TYPE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM ACCOUNT_ACCOUNT t1 LEFT JOIN ACCOUNT_ACCOUNT_TYPE t11 ON t1.USER_TYPE_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 RES_CURRENCY t41 ON t1.CURRENCY_ID = t41.ID LEFT JOIN ACCOUNT_GROUP t51 ON t1.GROUP_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.WRITE_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
<![CDATA[ SELECT t1.CODE, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t41.NAME AS CURRENCY_ID_TEXT, t1.DEPRECATED, t1.GROUP_ID, t51.NAME AS GROUP_ID_TEXT, t1.ID, t11.INTERNAL_GROUP, t11.TYPE AS INTERNAL_TYPE, t1.NAME, t1.RECONCILE, t1.USER_TYPE_ID, t11.NAME AS USER_TYPE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM ACCOUNT_ACCOUNT t1 LEFT JOIN ACCOUNT_ACCOUNT_TYPE t11 ON t1.USER_TYPE_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 RES_CURRENCY t41 ON t1.CURRENCY_ID = t41.ID LEFT JOIN ACCOUNT_GROUP t51 ON t1.GROUP_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.WRITE_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
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CODE, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t41.NAME AS CURRENCY_ID_TEXT, t1.DEPRECATED, t1.GROUP_ID, t51.NAME AS GROUP_ID_TEXT, t1.ID, t11.INTERNAL_GROUP, t11.TYPE AS INTERNAL_TYPE, t1.LAST_TIME_ENTRIES_CHECKED, t1.NAME, t1.NOTE, t1.RECONCILE, t1.USER_TYPE_ID, t11.NAME AS USER_TYPE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM ACCOUNT_ACCOUNT t1 LEFT JOIN ACCOUNT_ACCOUNT_TYPE t11 ON t1.USER_TYPE_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 RES_CURRENCY t41 ON t1.CURRENCY_ID = t41.ID LEFT JOIN ACCOUNT_GROUP t51 ON t1.GROUP_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.WRITE_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
<![CDATA[ SELECT t1.CODE, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t41.NAME AS CURRENCY_ID_TEXT, t1.DEPRECATED, t1.GROUP_ID, t51.NAME AS GROUP_ID_TEXT, t1.ID, t11.INTERNAL_GROUP, t11.TYPE AS INTERNAL_TYPE, t1.NAME, t1.NOTE, t1.RECONCILE, t1.USER_TYPE_ID, t11.NAME AS USER_TYPE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM ACCOUNT_ACCOUNT t1 LEFT JOIN ACCOUNT_ACCOUNT_TYPE t11 ON t1.USER_TYPE_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 RES_CURRENCY t41 ON t1.CURRENCY_ID = t41.ID LEFT JOIN ACCOUNT_GROUP t51 ON t1.GROUP_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.WRITE_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
]]>
</sql>
......
......@@ -613,19 +613,6 @@
"major_field":0
},
{
"fieldname":"LAST_TIME_ENTRIES_CHECKED" ,
"codename":"Last_time_entries_checked",
"field_logic_name":"最近的发票和付款匹配时间",
"entity_name":"Account_account",
"field_type":"DATETIME",
"nullable":1,
"physical_field":1,
"data_type":"DATETIME",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"RECONCILE" ,
"codename":"Reconcile",
"field_logic_name":"允许核销",
......@@ -117,15 +117,6 @@ public class Account_accountDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String displayName;
/**
* 属性 [LAST_TIME_ENTRIES_CHECKED]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "last_time_entries_checked" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("last_time_entries_checked")
private Timestamp lastTimeEntriesChecked;
/**
* 属性 [RECONCILE]
*
......@@ -315,14 +306,6 @@ public class Account_accountDTO extends DTOBase implements Serializable {
this.modify("deprecated",deprecated);
}
/**
* 设置 [LAST_TIME_ENTRIES_CHECKED]
*/
public void setLastTimeEntriesChecked(Timestamp lastTimeEntriesChecked){
this.lastTimeEntriesChecked = lastTimeEntriesChecked ;
this.modify("last_time_entries_checked",lastTimeEntriesChecked);
}
/**
* 设置 [RECONCILE]
*/
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册