Commit 9332d21d by 宋祥

Merge remote-tracking branch 'origin/dev' into dev

# Conflicts:
#	src/main/java/com/baosight/hggp/hg/wd/sql/HGWD001.xml
parents 43081f8e ee49ba16
...@@ -131,6 +131,8 @@ public class HGConstant { ...@@ -131,6 +131,8 @@ public class HGConstant {
//销售退货单号 //销售退货单号
public static final String RETURN_CODE = "RETURN_CODE"; public static final String RETURN_CODE = "RETURN_CODE";
public static final String WD_FILE_ID = "WD_FILE_ID";
} }
/** /**
......
...@@ -43,7 +43,7 @@ public class HGWD001 extends DaoEPBase { ...@@ -43,7 +43,7 @@ public class HGWD001 extends DaoEPBase {
public static final String FIELD_DOC_VERSION = "docVersion"; /* 文件版本号*/ public static final String FIELD_DOC_VERSION = "docVersion"; /* 文件版本号*/
public static final String FIELD_STATUS = "status"; /* 状态*/ public static final String FIELD_STATUS = "status"; /* 状态*/
public static final String FIELD_REMARK = "remark"; /* 备注*/ public static final String FIELD_REMARK = "remark"; /* 备注*/
public static final String FIELD_RELEASE_DATE = "releaseDate"; /* 发布时间*/ public static final String FIELD_RELEASE_DATE = "releaseDate"; /* 发布时间*/
public static final String FIELD_PREVIEW_NUM = "previewNum"; /* 预览次数*/ public static final String FIELD_PREVIEW_NUM = "previewNum"; /* 预览次数*/
public static final String FIELD_DOWNLOAD_NUM = "downloadNum"; /* 下载次数*/ public static final String FIELD_DOWNLOAD_NUM = "downloadNum"; /* 下载次数*/
...@@ -78,6 +78,7 @@ public class HGWD001 extends DaoEPBase { ...@@ -78,6 +78,7 @@ public class HGWD001 extends DaoEPBase {
public static final String INSERT = "HGWD001.insert"; public static final String INSERT = "HGWD001.insert";
public static final String UPDATE = "HGWD001.update"; public static final String UPDATE = "HGWD001.update";
public static final String DELETE = "HGWD001.delete"; public static final String DELETE = "HGWD001.delete";
public static final String RELEASE_DATE = "HGWD001.releaseDate";
private Long id = new Long(0); private Long id = new Long(0);
private String accountCode = " "; /* 企业编码*/ private String accountCode = " "; /* 企业编码*/
......
...@@ -97,6 +97,9 @@ ...@@ -97,6 +97,9 @@
<isNotEmpty prepend=" AND " property="remark"> <isNotEmpty prepend=" AND " property="remark">
REMARK = #remark# REMARK = #remark#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="releaseDate">
RELEASE_DATE = #releaseDate#
</isNotEmpty>
</sql> </sql>
<sql id="orderBy"> <sql id="orderBy">
...@@ -136,20 +139,21 @@ ...@@ -136,20 +139,21 @@
COMPANY_CODE, <!-- 公司编码 --> COMPANY_CODE, <!-- 公司编码 -->
COMPANY_NAME, <!-- 公司名称 --> COMPANY_NAME, <!-- 公司名称 -->
PROJ_CODE, <!-- 项目编码 --> PROJ_CODE, <!-- 项目编码 -->
FILE_ID, <!-- 文件ID -->
PROJ_NAME, <!-- 项目名称 --> PROJ_NAME, <!-- 项目名称 -->
FILE_ID, <!-- 文件ID -->
FILE_TYPE, <!-- 文件类型 --> FILE_TYPE, <!-- 文件类型 -->
FILE_NAME, <!-- 文件名称 --> FILE_NAME, <!-- 文件名称 -->
DOC_ID, <!-- 文件号 --> DOC_ID, <!-- 文件号 -->
DOC_NAME, <!-- 文件附件名称 --> DOC_NAME, <!-- 文件附件名称 -->
DOC_VERSION, <!-- 文件版本号 --> DOC_VERSION, <!-- 文件版本号 -->
STATUS, <!-- 状态 --> STATUS, <!-- 状态 -->
REMARK <!-- 备注 --> REMARK, <!-- 备注 -->
RELEASE_DATE
) VALUES ( ) VALUES (
#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#deleteFlag#, #companyCode#, #companyName#, #projCode#, #projName#, #deleteFlag#, #companyCode#, #companyName#, #projCode#, #projName#,
#fileId#, #fileType#, #fileName#, #fileId#, #fileType#, #fileName#,
#docId#, #docName#, #docVersion#, #status#, #remark# #docId#, #docName#, #docVersion#, #status#, #remark#, #releaseDate#
) )
</insert> </insert>
...@@ -169,6 +173,16 @@ ...@@ -169,6 +173,16 @@
DOC_VERSION = #docVersion#, <!-- 文件版本号 --> DOC_VERSION = #docVersion#, <!-- 文件版本号 -->
STATUS = #status#, <!-- 状态 --> STATUS = #status#, <!-- 状态 -->
REMARK = #remark#, <!-- 备注 --> REMARK = #remark#, <!-- 备注 -->
RELEASE_DATE = #releaseDate#, <!--发布时间-->
<include refid="SqlBase.updateRevise"/>
WHERE ID = #id#
</update>
<update id="updateReleaseDate">
UPDATE ${hggpSchema}.HGWD001
SET
RELEASE_DATE = #releaseDate#, <!--发布时间-->
STATUS = #status#, <!-- 状态 -->
<include refid="SqlBase.updateRevise"/> <include refid="SqlBase.updateRevise"/>
WHERE ID = #id# WHERE ID = #id#
</update> </update>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment