Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
62bcb9ac
Commit
62bcb9ac
authored
May 30, 2024
by
13420
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购收票调整
parent
60b613c3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1196 additions
and
5 deletions
+1196
-5
HGCW012A.java
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW012A.java
+817
-0
HGCW012.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
+1
-1
HGCW012A.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012A.xml
+374
-0
HGCW012.js
src/main/webapp/HG/CW/HGCW012.js
+3
-3
HGCW012.jsp
src/main/webapp/HG/CW/HGCW012.jsp
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW012A.java
0 → 100644
View file @
62bcb9ac
package
com
.
baosight
.
hggp
.
hg
.
cw
.
domain
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
java.math.BigDecimal
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* Project: <br>
* Title:HGCW008.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-05-22 13:50:20 create
*/
public
class
HGCW012A
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
public
static
final
String
FIELD_ACCOUNT_CODE
=
"accountCode"
;
/* 企业编码*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 公司编码*/
public
static
final
String
FIELD_COMPANY_NAME
=
"companyName"
;
/* 公司名称*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_CONTRACT_NUMBER
=
"contractNumber"
;
/* 合同号*/
public
static
final
String
FIELD_CONTRACT_NAME
=
"contractName"
;
/* 合同名称*/
public
static
final
String
FIELD_SETTLEMENT_NUMBER
=
"settlementNumber"
;
/* 结算编号*/
public
static
final
String
FIELD_SETTLEMENT_TYPE
=
"settlementType"
;
/* 结算类别;1部分结算2最终结算*/
public
static
final
String
FIELD_CONTRACT_DATE
=
"contractDate"
;
/* 结算日期*/
public
static
final
String
FIELD_TAX_POINTS
=
"taxPoints"
;
/* 税点*/
public
static
final
String
FIELD_PRICE_TAX_SEPARATION
=
"priceTaxSeparation"
;
/* 价税分离;1是2否*/
public
static
final
String
FIELD_THIS_SETTLEMENT_AMOUNT
=
"thisSettlementAmount"
;
/* 本次结算金额*/
public
static
final
String
FIELD_THIS_SETTLEMENT_TAX
=
"thisSettlementTax"
;
/* 本次结算税金*/
public
static
final
String
FIELD_THIS_PRICE_TAX
=
"thisPriceTax"
;
/* 本次结算价税合计金额*/
public
static
final
String
FIELD_TOTAL_CONTRACT_PRICE
=
"totalContractPrice"
;
/* 合同金额(元)*/
public
static
final
String
FIELD_CUMULATIVE_SETTLEMENT_AMOUNT
=
"cumulativeSettlementAmount"
;
/* 累计结算金额*/
public
static
final
String
FIELD_CUMULATIVE_SETTLEMENT_TAX
=
"cumulativeSettlementTax"
;
/* 累计结算税金*/
public
static
final
String
FIELD_CUMULATIVE_PRICE_TAX
=
"cumulativePriceTax"
;
/* 累计结算价税合计金额*/
public
static
final
String
FIELD_REMAINING_AMOUNT
=
"remainingAmount"
;
/* 累计结算价税合计金额*/
public
static
final
String
FIELD_REVIEW_STATUS
=
"reviewStatus"
;
/* 审核状态*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 记录创建者*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 记录创建名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 记录创建时间*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 记录修改者*/
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 记录修改名称*/
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 记录修改时间*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 企业编码*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 公司编码*/
public
static
final
String
COL_COMPANY_NAME
=
"COMPANY_NAME"
;
/* 公司名称*/
public
static
final
String
COL_PROJ_CODE
=
"PROJ_CODE"
;
/* 项目编码*/
public
static
final
String
COL_PROJ_NAME
=
"PROJ_NAME"
;
/* 项目名称*/
public
static
final
String
COL_CONTRACT_NUMBER
=
"CONTRACT_NUMBER"
;
/* 合同号*/
public
static
final
String
COL_CONTRACT_NAME
=
"CONTRACT_NAME"
;
/* 合同名称*/
public
static
final
String
COL_SETTLEMENT_NUMBER
=
"SETTLEMENT_NUMBER"
;
/* 结算编号*/
public
static
final
String
COL_SETTLEMENT_TYPE
=
"SETTLEMENT_TYPE"
;
/* 结算类别;1部分结算2最终结算*/
public
static
final
String
COL_CONTRACT_DATE
=
"CONTRACT_DATE"
;
/* 结算日期*/
public
static
final
String
COL_TAX_POINTS
=
"TAX_POINTS"
;
/* 税点*/
public
static
final
String
COL_PRICE_TAX_SEPARATION
=
"PRICE_TAX_SEPARATION"
;
/* 价税分离;1是2否*/
public
static
final
String
COL_THIS_SETTLEMENT_AMOUNT
=
"THIS_SETTLEMENT_AMOUNT"
;
/* 本次结算金额*/
public
static
final
String
COL_THIS_SETTLEMENT_TAX
=
"THIS_SETTLEMENT_TAX"
;
/* 本次结算税金*/
public
static
final
String
COL_THIS_PRICE_TAX
=
"THIS_PRICE_TAX"
;
/* 本次结算价税合计金额*/
public
static
final
String
COL_TOTAL_CONTRACT_PRICE
=
"TOTAL_CONTRACT_PRICE"
;
/* 合同金额(元)*/
public
static
final
String
COL_CUMULATIVE_SETTLEMENT_AMOUNT
=
"CUMULATIVE_SETTLEMENT_AMOUNT"
;
/* 累计结算金额*/
public
static
final
String
COL_CUMULATIVE_SETTLEMENT_TAX
=
"CUMULATIVE_SETTLEMENT_TAX"
;
/* 累计结算税金*/
public
static
final
String
COL_CUMULATIVE_PRICE_TAX
=
"CUMULATIVE_PRICE_TAX"
;
/* 累计结算价税合计金额*/
public
static
final
String
COL_REMAINING_AMOUNT
=
"REMAINING_AMOUNT"
;
/* 累计结算价税合计金额*/
public
static
final
String
COL_REVIEW_STATUS
=
"REVIEW_STATUS"
;
/* 审核状态*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 记录创建者*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 记录创建名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 记录创建时间*/
public
static
final
String
COL_UPDATED_BY
=
"UPDATED_BY"
;
/* 记录修改者*/
public
static
final
String
COL_UPDATED_NAME
=
"UPDATED_NAME"
;
/* 记录修改名称*/
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 记录修改时间*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
QUERY
=
"HGCW008.query"
;
public
static
final
String
COUNT
=
"HGCW008.count"
;
public
static
final
String
INSERT
=
"HGCW008.insert"
;
public
static
final
String
UPDATE
=
"HGCW008.update"
;
public
static
final
String
DELETE
=
"HGCW008.delete"
;
private
Long
id
=
new
Long
(
0
);
private
String
accountCode
=
" "
;
/* 企业编码*/
private
String
companyCode
=
" "
;
/* 公司编码*/
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
String
contractNumber
=
" "
;
/* 合同号*/
private
String
contractName
=
" "
;
/* 合同名称*/
private
String
settlementNumber
=
" "
;
/* 结算编号*/
private
Integer
settlementType
;
/* 结算类别;1部分结算2最终结算*/
private
String
contractDate
=
" "
;
/* 结算日期*/
private
Integer
taxPoints
=
new
Integer
(
0
);
/* 税点*/
private
Integer
priceTaxSeparation
=
new
Integer
(
0
);
/* 价税分离;1是2否*/
private
BigDecimal
thisSettlementAmount
=
new
BigDecimal
(
"0"
);
/* 本次结算金额*/
private
BigDecimal
thisSettlementTax
=
new
BigDecimal
(
"0"
);
/* 本次结算税金*/
private
BigDecimal
thisPriceTax
=
new
BigDecimal
(
"0"
);
/* 本次结算价税合计金额*/
private
BigDecimal
totalContractPrice
=
new
BigDecimal
(
"0"
);
/* 合同金额(元)*/
private
BigDecimal
cumulativeSettlementAmount
=
new
BigDecimal
(
"0"
);
/* 累计结算金额*/
private
BigDecimal
cumulativeSettlementTax
=
new
BigDecimal
(
"0"
);
/* 累计结算税金*/
private
BigDecimal
cumulativePriceTax
=
new
BigDecimal
(
"0"
);
/* 累计结算价税合计金额*/
private
BigDecimal
remainingAmount
=
new
BigDecimal
(
"0"
);
/* 累计结算价税合计金额*/
private
Integer
reviewStatus
;
/* 审核状态*/
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdTime
=
" "
;
/* 记录创建时间*/
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
String
depCode
=
" "
;
/* 部门编码*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ACCOUNT_CODE
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setDescName
(
"公司编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_NAME
);
eiColumn
.
setDescName
(
"公司名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_CODE
);
eiColumn
.
setDescName
(
"项目编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_NAME
);
eiColumn
.
setDescName
(
"项目名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CONTRACT_NUMBER
);
eiColumn
.
setDescName
(
"合同号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CONTRACT_NAME
);
eiColumn
.
setDescName
(
"合同名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SETTLEMENT_NUMBER
);
eiColumn
.
setDescName
(
"结算编号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SETTLEMENT_TYPE
);
eiColumn
.
setDescName
(
"结算类别;1部分结算2最终结算"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CONTRACT_DATE
);
eiColumn
.
setDescName
(
"结算日期"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TAX_POINTS
);
eiColumn
.
setDescName
(
"税点"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRICE_TAX_SEPARATION
);
eiColumn
.
setDescName
(
"价税分离;1是2否"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_THIS_SETTLEMENT_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"本次结算金额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_THIS_SETTLEMENT_TAX
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"本次结算税金"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_THIS_PRICE_TAX
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"本次结算价税合计金额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TOTAL_CONTRACT_PRICE
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"合同金额(元)"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CUMULATIVE_SETTLEMENT_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"累计结算金额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CUMULATIVE_SETTLEMENT_TAX
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"累计结算税金"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CUMULATIVE_PRICE_TAX
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"累计结算价税合计金额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_REMAINING_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"剩余开票/收票金额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_REVIEW_STATUS
);
eiColumn
.
setDescName
(
"审核状态"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"记录创建名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"记录创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"记录修改者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"记录修改名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"记录修改时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HGCW012A
()
{
initMetaData
();
}
/**
* get the id .
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id .
*
* @param id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* get the accountCode - 企业编码.
* @return the accountCode
*/
public
String
getAccountCode
()
{
return
this
.
accountCode
;
}
/**
* set the accountCode - 企业编码.
*
* @param accountCode - 企业编码
*/
public
void
setAccountCode
(
String
accountCode
)
{
this
.
accountCode
=
accountCode
;
}
/**
* get the companyCode - 公司编码.
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 公司编码.
*
* @param companyCode - 公司编码
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the companyName - 公司名称.
* @return the companyName
*/
public
String
getCompanyName
()
{
return
this
.
companyName
;
}
/**
* set the companyName - 公司名称.
*
* @param companyName - 公司名称
*/
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
/**
* get the projCode - 项目编码.
* @return the projCode
*/
public
String
getProjCode
()
{
return
this
.
projCode
;
}
/**
* set the projCode - 项目编码.
*
* @param projCode - 项目编码
*/
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
}
/**
* get the projName - 项目名称.
* @return the projName
*/
public
String
getProjName
()
{
return
this
.
projName
;
}
/**
* set the projName - 项目名称.
*
* @param projName - 项目名称
*/
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
}
/**
* get the contractNumber - 合同号.
* @return the contractNumber
*/
public
String
getContractNumber
()
{
return
this
.
contractNumber
;
}
/**
* set the contractNumber - 合同号.
*
* @param contractNumber - 合同号
*/
public
void
setContractNumber
(
String
contractNumber
)
{
this
.
contractNumber
=
contractNumber
;
}
/**
* get the contractName - 合同名称.
* @return the contractName
*/
public
String
getContractName
()
{
return
this
.
contractName
;
}
/**
* set the contractName - 合同名称.
*
* @param contractName - 合同名称
*/
public
void
setContractName
(
String
contractName
)
{
this
.
contractName
=
contractName
;
}
/**
* get the settlementNumber - 结算编号.
* @return the settlementNumber
*/
public
String
getSettlementNumber
()
{
return
this
.
settlementNumber
;
}
/**
* set the settlementNumber - 结算编号.
*
* @param settlementNumber - 结算编号
*/
public
void
setSettlementNumber
(
String
settlementNumber
)
{
this
.
settlementNumber
=
settlementNumber
;
}
/**
* get the settlementType - 结算类别;1部分结算2最终结算.
* @return the settlementType
*/
public
Integer
getSettlementType
()
{
return
this
.
settlementType
;
}
/**
* set the settlementType - 结算类别;1部分结算2最终结算.
*
* @param settlementType - 结算类别;1部分结算2最终结算
*/
public
void
setSettlementType
(
Integer
settlementType
)
{
this
.
settlementType
=
settlementType
;
}
/**
* get the contractDate - 结算日期.
* @return the contractDate
*/
public
String
getContractDate
()
{
return
this
.
contractDate
;
}
/**
* set the contractDate - 结算日期.
*
* @param contractDate - 结算日期
*/
public
void
setContractDate
(
String
contractDate
)
{
this
.
contractDate
=
contractDate
;
}
/**
* get the taxPoints - 税点.
* @return the taxPoints
*/
public
Integer
getTaxPoints
()
{
return
this
.
taxPoints
;
}
/**
* set the taxPoints - 税点.
*
* @param taxPoints - 税点
*/
public
void
setTaxPoints
(
Integer
taxPoints
)
{
this
.
taxPoints
=
taxPoints
;
}
/**
* get the priceTaxSeparation - 价税分离;1是2否.
* @return the priceTaxSeparation
*/
public
Integer
getPriceTaxSeparation
()
{
return
this
.
priceTaxSeparation
;
}
/**
* set the priceTaxSeparation - 价税分离;1是2否.
*
* @param priceTaxSeparation - 价税分离;1是2否
*/
public
void
setPriceTaxSeparation
(
Integer
priceTaxSeparation
)
{
this
.
priceTaxSeparation
=
priceTaxSeparation
;
}
/**
* get the thisSettlementAmount - 本次结算金额.
* @return the thisSettlementAmount
*/
public
BigDecimal
getThisSettlementAmount
()
{
return
this
.
thisSettlementAmount
;
}
/**
* set the thisSettlementAmount - 本次结算金额.
*
* @param thisSettlementAmount - 本次结算金额
*/
public
void
setThisSettlementAmount
(
BigDecimal
thisSettlementAmount
)
{
this
.
thisSettlementAmount
=
thisSettlementAmount
;
}
/**
* get the thisSettlementTax - 本次结算税金.
* @return the thisSettlementTax
*/
public
BigDecimal
getThisSettlementTax
()
{
return
this
.
thisSettlementTax
;
}
/**
* set the thisSettlementTax - 本次结算税金.
*
* @param thisSettlementTax - 本次结算税金
*/
public
void
setThisSettlementTax
(
BigDecimal
thisSettlementTax
)
{
this
.
thisSettlementTax
=
thisSettlementTax
;
}
/**
* get the thisPriceTax - 本次结算价税合计金额.
* @return the thisPriceTax
*/
public
BigDecimal
getThisPriceTax
()
{
return
this
.
thisPriceTax
;
}
/**
* set the thisPriceTax - 本次结算价税合计金额.
*
* @param thisPriceTax - 本次结算价税合计金额
*/
public
void
setThisPriceTax
(
BigDecimal
thisPriceTax
)
{
this
.
thisPriceTax
=
thisPriceTax
;
}
/**
* get the totalContractPrice - 合同金额(元).
* @return the totalContractPrice
*/
public
BigDecimal
getTotalContractPrice
()
{
return
this
.
totalContractPrice
;
}
/**
* set the totalContractPrice - 合同金额(元).
*
* @param totalContractPrice - 合同金额(元)
*/
public
void
setTotalContractPrice
(
BigDecimal
totalContractPrice
)
{
this
.
totalContractPrice
=
totalContractPrice
;
}
/**
* get the cumulativeSettlementAmount - 累计结算金额.
* @return the cumulativeSettlementAmount
*/
public
BigDecimal
getCumulativeSettlementAmount
()
{
return
this
.
cumulativeSettlementAmount
;
}
/**
* set the cumulativeSettlementAmount - 累计结算金额.
*
* @param cumulativeSettlementAmount - 累计结算金额
*/
public
void
setCumulativeSettlementAmount
(
BigDecimal
cumulativeSettlementAmount
)
{
this
.
cumulativeSettlementAmount
=
cumulativeSettlementAmount
;
}
/**
* get the cumulativeSettlementTax - 累计结算税金.
* @return the cumulativeSettlementTax
*/
public
BigDecimal
getCumulativeSettlementTax
()
{
return
this
.
cumulativeSettlementTax
;
}
/**
* set the cumulativeSettlementTax - 累计结算税金.
*
* @param cumulativeSettlementTax - 累计结算税金
*/
public
void
setCumulativeSettlementTax
(
BigDecimal
cumulativeSettlementTax
)
{
this
.
cumulativeSettlementTax
=
cumulativeSettlementTax
;
}
/**
* get the cumulativePriceTax - 累计结算价税合计金额.
* @return the cumulativePriceTax
*/
public
BigDecimal
getCumulativePriceTax
()
{
return
this
.
cumulativePriceTax
;
}
/**
* set the cumulativePriceTax - 累计结算价税合计金额.
*
* @param cumulativePriceTax - 累计结算价税合计金额
*/
public
void
setCumulativePriceTax
(
BigDecimal
cumulativePriceTax
)
{
this
.
cumulativePriceTax
=
cumulativePriceTax
;
}
/**
* get the reviewStatus - 审核状态.
* @return the reviewStatus
*/
public
Integer
getReviewStatus
()
{
return
this
.
reviewStatus
;
}
/**
* set the reviewStatus - 审核状态.
*
* @param reviewStatus - 审核状态
*/
public
void
setReviewStatus
(
Integer
reviewStatus
)
{
this
.
reviewStatus
=
reviewStatus
;
}
/**
* get the createdBy - 记录创建者.
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 记录创建者.
*
* @param createdBy - 记录创建者
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdName - 记录创建名称.
* @return the createdName
*/
public
String
getCreatedName
()
{
return
this
.
createdName
;
}
/**
* set the createdName - 记录创建名称.
*
* @param createdName - 记录创建名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
}
/**
* get the createdTime - 记录创建时间.
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 记录创建时间.
*
* @param createdTime - 记录创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the updatedBy - 记录修改者.
* @return the updatedBy
*/
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
}
/**
* set the updatedBy - 记录修改者.
*
* @param updatedBy - 记录修改者
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* get the updatedName - 记录修改名称.
* @return the updatedName
*/
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
}
/**
* set the updatedName - 记录修改名称.
*
* @param updatedName - 记录修改名称
*/
public
void
setUpdatedName
(
String
updatedName
)
{
this
.
updatedName
=
updatedName
;
}
/**
* get the updatedTime - 记录修改时间.
* @return the updatedTime
*/
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
}
/**
* set the updatedTime - 记录修改时间.
*
* @param updatedTime - 记录修改时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public
String
getDepCode
()
{
return
this
.
depCode
;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public
void
setDepCode
(
String
depCode
)
{
this
.
depCode
=
depCode
;
}
public
BigDecimal
getRemainingAmount
()
{
return
remainingAmount
;
}
public
void
setRemainingAmount
(
BigDecimal
remainingAmount
)
{
this
.
remainingAmount
=
remainingAmount
;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setCompanyName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_NAME
)),
companyName
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
setContractNumber
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CONTRACT_NUMBER
)),
contractNumber
));
setContractName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CONTRACT_NAME
)),
contractName
));
setSettlementNumber
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SETTLEMENT_NUMBER
)),
settlementNumber
));
setSettlementType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SETTLEMENT_TYPE
)),
settlementType
));
setContractDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CONTRACT_DATE
)),
contractDate
));
setTaxPoints
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TAX_POINTS
)),
taxPoints
));
setPriceTaxSeparation
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRICE_TAX_SEPARATION
)),
priceTaxSeparation
));
setThisSettlementAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_THIS_SETTLEMENT_AMOUNT
)),
thisSettlementAmount
));
setThisSettlementTax
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_THIS_SETTLEMENT_TAX
)),
thisSettlementTax
));
setThisPriceTax
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_THIS_PRICE_TAX
)),
thisPriceTax
));
setTotalContractPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TOTAL_CONTRACT_PRICE
)),
totalContractPrice
));
setCumulativeSettlementAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CUMULATIVE_SETTLEMENT_AMOUNT
)),
cumulativeSettlementAmount
));
setCumulativeSettlementTax
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CUMULATIVE_SETTLEMENT_TAX
)),
cumulativeSettlementTax
));
setCumulativePriceTax
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CUMULATIVE_PRICE_TAX
)),
cumulativePriceTax
));
setRemainingAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMAINING_AMOUNT
)),
remainingAmount
));
setReviewStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REVIEW_STATUS
)),
reviewStatus
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
}
/**
* set the value to Map.
*/
@Override
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
map
.
put
(
FIELD_ID
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
FIELD_ID
)));
map
.
put
(
FIELD_ACCOUNT_CODE
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT_CODE
)));
map
.
put
(
FIELD_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_CODE
)));
map
.
put
(
FIELD_COMPANY_NAME
,
StringUtils
.
toString
(
companyName
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_NAME
)));
map
.
put
(
FIELD_PROJ_CODE
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
FIELD_PROJ_CODE
)));
map
.
put
(
FIELD_PROJ_NAME
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
FIELD_PROJ_NAME
)));
map
.
put
(
FIELD_CONTRACT_NUMBER
,
StringUtils
.
toString
(
contractNumber
,
eiMetadata
.
getMeta
(
FIELD_CONTRACT_NUMBER
)));
map
.
put
(
FIELD_CONTRACT_NAME
,
StringUtils
.
toString
(
contractName
,
eiMetadata
.
getMeta
(
FIELD_CONTRACT_NAME
)));
map
.
put
(
FIELD_SETTLEMENT_NUMBER
,
StringUtils
.
toString
(
settlementNumber
,
eiMetadata
.
getMeta
(
FIELD_SETTLEMENT_NUMBER
)));
map
.
put
(
FIELD_SETTLEMENT_TYPE
,
StringUtils
.
toString
(
settlementType
,
eiMetadata
.
getMeta
(
FIELD_SETTLEMENT_TYPE
)));
map
.
put
(
FIELD_CONTRACT_DATE
,
StringUtils
.
toString
(
contractDate
,
eiMetadata
.
getMeta
(
FIELD_CONTRACT_DATE
)));
map
.
put
(
FIELD_TAX_POINTS
,
StringUtils
.
toString
(
taxPoints
,
eiMetadata
.
getMeta
(
FIELD_TAX_POINTS
)));
map
.
put
(
FIELD_PRICE_TAX_SEPARATION
,
StringUtils
.
toString
(
priceTaxSeparation
,
eiMetadata
.
getMeta
(
FIELD_PRICE_TAX_SEPARATION
)));
map
.
put
(
FIELD_THIS_SETTLEMENT_AMOUNT
,
StringUtils
.
toString
(
thisSettlementAmount
,
eiMetadata
.
getMeta
(
FIELD_THIS_SETTLEMENT_AMOUNT
)));
map
.
put
(
FIELD_THIS_SETTLEMENT_TAX
,
StringUtils
.
toString
(
thisSettlementTax
,
eiMetadata
.
getMeta
(
FIELD_THIS_SETTLEMENT_TAX
)));
map
.
put
(
FIELD_THIS_PRICE_TAX
,
StringUtils
.
toString
(
thisPriceTax
,
eiMetadata
.
getMeta
(
FIELD_THIS_PRICE_TAX
)));
map
.
put
(
FIELD_TOTAL_CONTRACT_PRICE
,
StringUtils
.
toString
(
totalContractPrice
,
eiMetadata
.
getMeta
(
FIELD_TOTAL_CONTRACT_PRICE
)));
map
.
put
(
FIELD_CUMULATIVE_SETTLEMENT_AMOUNT
,
StringUtils
.
toString
(
cumulativeSettlementAmount
,
eiMetadata
.
getMeta
(
FIELD_CUMULATIVE_SETTLEMENT_AMOUNT
)));
map
.
put
(
FIELD_CUMULATIVE_SETTLEMENT_TAX
,
StringUtils
.
toString
(
cumulativeSettlementTax
,
eiMetadata
.
getMeta
(
FIELD_CUMULATIVE_SETTLEMENT_TAX
)));
map
.
put
(
FIELD_CUMULATIVE_PRICE_TAX
,
StringUtils
.
toString
(
cumulativePriceTax
,
eiMetadata
.
getMeta
(
FIELD_CUMULATIVE_PRICE_TAX
)));
map
.
put
(
FIELD_REMAINING_AMOUNT
,
StringUtils
.
toString
(
remainingAmount
,
eiMetadata
.
getMeta
(
FIELD_REMAINING_AMOUNT
)));
map
.
put
(
FIELD_REVIEW_STATUS
,
StringUtils
.
toString
(
reviewStatus
,
eiMetadata
.
getMeta
(
FIELD_REVIEW_STATUS
)));
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
map
.
put
(
FIELD_UPDATED_BY
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_BY
)));
map
.
put
(
FIELD_UPDATED_NAME
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_NAME
)));
map
.
put
(
FIELD_UPDATED_TIME
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_TIME
)));
map
.
put
(
FIELD_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
View file @
62bcb9ac
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
</sql>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.
service
.HGCW012"
>
resultClass=
"com.baosight.hggp.hg.cw.
domain
.HGCW012"
>
SELECT
SELECT
ID as "id",
ID as "id",
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012A.xml
0 → 100644
View file @
62bcb9ac
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-05-22 13:50:20
Version : 1.0
schema : hggp
tableName : HGCW008
ID BIGINT NOT NULL primarykey,
ACCOUNT_CODE VARCHAR,
COMPANY_CODE VARCHAR,
COMPANY_NAME VARCHAR,
PROJ_CODE VARCHAR,
PROJ_NAME VARCHAR,
CONTRACT_NUMBER VARCHAR,
CONTRACT_NAME VARCHAR,
SETTLEMENT_NUMBER VARCHAR,
SETTLEMENT_TYPE TINYINT,
CONTRACT_DATE VARCHAR,
TAX_POINTS INTEGER,
PRICE_TAX_SEPARATION INTEGER,
THIS_SETTLEMENT_AMOUNT DECIMAL,
THIS_SETTLEMENT_TAX DECIMAL,
THIS_PRICE_TAX DECIMAL,
TOTAL_CONTRACT_PRICE DECIMAL,
CUMULATIVE_SETTLEMENT_AMOUNT DECIMAL,
CUMULATIVE_SETTLEMENT_TAX DECIMAL,
CUMULATIVE_PRICE_TAX DECIMAL,
REVIEW_STATUS TINYINT,
CREATED_BY VARCHAR NOT NULL,
CREATED_NAME VARCHAR NOT NULL,
CREATED_TIME VARCHAR NOT NULL,
UPDATED_BY VARCHAR NOT NULL,
UPDATED_NAME VARCHAR NOT NULL,
UPDATED_TIME VARCHAR NOT NULL,
DEP_CODE VARCHAR
-->
<sqlMap
namespace=
"HGCW012A"
>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
T1.ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
T1.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
T1.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
T1.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
T1.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
T1.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractNumber"
>
T1.CONTRACT_NUMBER like ('%$contractNumber$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractName"
>
T1.CONTRACT_NAME like ('%$contractName$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"settlementNumber"
>
T1.SETTLEMENT_NUMBER like ('%$settlementNumber$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"settlementType"
>
T1.SETTLEMENT_TYPE = #settlementType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractDate"
>
T1.CONTRACT_DATE = #contractDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractDateFrom"
>
T1.CONTRACT_DATE
>
= REPLACE(#signingDateFrom#, '-', '')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractDateTo"
>
T1.CONTRACT_DATE
<
= REPLACE(#signingDateTo#, '-', '')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"taxPoints"
>
T1.TAX_POINTS = #taxPoints#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"priceTaxSeparation"
>
T1.PRICE_TAX_SEPARATION = #priceTaxSeparation#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"thisSettlementAmount"
>
T1.THIS_SETTLEMENT_AMOUNT = #thisSettlementAmount#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"thisSettlementTax"
>
T1.THIS_SETTLEMENT_TAX = #thisSettlementTax#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"thisPriceTax"
>
T1.THIS_PRICE_TAX = #thisPriceTax#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"totalContractPrice"
>
T1.TOTAL_CONTRACT_PRICE = #totalContractPrice#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"cumulativeSettlementAmount"
>
T1.CUMULATIVE_SETTLEMENT_AMOUNT = #cumulativeSettlementAmount#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"cumulativeSettlementTax"
>
T1.CUMULATIVE_SETTLEMENT_TAX = #cumulativeSettlementTax#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"cumulativePriceTax"
>
T1.CUMULATIVE_PRICE_TAX = #cumulativePriceTax#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"reviewStatus"
>
T1.REVIEW_STATUS = #reviewStatus#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
T1.CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
T1.CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
T1.CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
T1.UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
T1.UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
T1.UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
T1.DEP_CODE = #depCode#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW008"
>
SELECT
T1.ID as "id",
T1.ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
T1.COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
T1.COMPANY_NAME as "companyName",
<!-- 公司名称 -->
T1.PROJ_CODE as "projCode",
<!-- 项目编码 -->
T1.PROJ_NAME as "projName",
<!-- 项目名称 -->
T1.CONTRACT_NUMBER as "contractNumber",
<!-- 合同号 -->
T1.CONTRACT_NAME as "contractName",
<!-- 合同名称 -->
T1.SETTLEMENT_NUMBER as "settlementNumber",
<!-- 结算编号 -->
T1.SETTLEMENT_TYPE as "settlementType",
<!-- 结算类别;1部分结算2最终结算 -->
T1.CONTRACT_DATE as "contractDate",
<!-- 结算日期 -->
T1.TAX_POINTS as "taxPoints",
<!-- 税点 -->
T1.PRICE_TAX_SEPARATION as "priceTaxSeparation",
<!-- 价税分离;1是2否 -->
T1.THIS_SETTLEMENT_AMOUNT as "thisSettlementAmount",
<!-- 本次结算金额 -->
T1.THIS_SETTLEMENT_TAX as "thisSettlementTax",
<!-- 本次结算税金 -->
T1.THIS_PRICE_TAX as "thisPriceTax",
<!-- 本次结算价税合计金额 -->
T1.TOTAL_CONTRACT_PRICE as "totalContractPrice",
<!-- 合同金额(元) -->
T1.CUMULATIVE_SETTLEMENT_AMOUNT as "cumulativeSettlementAmount",
<!-- 累计结算金额 -->
T1.CUMULATIVE_SETTLEMENT_TAX as "cumulativeSettlementTax",
<!-- 累计结算税金 -->
T1.CUMULATIVE_PRICE_TAX as "cumulativePriceTax",
<!-- 累计结算价税合计金额 -->
T1.REMAINING_AMOUNT as "remainingAmount",
<!-- 累计结算价税合计金额 -->
T1.REVIEW_STATUS as "reviewStatus",
<!-- 审核状态 -->
T1.CREATED_BY as "createdBy",
<!-- 记录创建者 -->
T1.CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
T1.CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
T1.UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
T1.UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
T1.UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
T1.DEP_CODE as "depCode"
<!-- 部门编码 -->
FROM ${hggpSchema}.HGCW008 T1 LEFT JOIN
${hggpSchema}.HGCW002 B
ON T1.PROJ_CODE = B.PROJ_CODE
AND T1.CONTRACT_NUMBER = B.CONTRACT_NUMBER
AND T1.COMPANY_CODE = B.COMPANY_CODE
WHERE 1=1 AND B.CONTRACT_TYPE = 1 AND T1.SETTLEMENT_TYPE = 2
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
T1.ID asc
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGCW008 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
PROJ_NAME = #projName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="contractNumber">
CONTRACT_NUMBER = #contractNumber#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="contractName">
CONTRACT_NAME = #contractName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="settlementNumber">
SETTLEMENT_NUMBER = #settlementNumber#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="settlementType">
SETTLEMENT_TYPE = #settlementType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="contractDate">
CONTRACT_DATE = #contractDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="taxPoints">
TAX_POINTS = #taxPoints#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="priceTaxSeparation">
PRICE_TAX_SEPARATION = #priceTaxSeparation#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="thisSettlementAmount">
THIS_SETTLEMENT_AMOUNT = #thisSettlementAmount#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="thisSettlementTax">
THIS_SETTLEMENT_TAX = #thisSettlementTax#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="thisPriceTax">
THIS_PRICE_TAX = #thisPriceTax#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="totalContractPrice">
TOTAL_CONTRACT_PRICE = #totalContractPrice#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="cumulativeSettlementAmount">
CUMULATIVE_SETTLEMENT_AMOUNT = #cumulativeSettlementAmount#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="cumulativeSettlementTax">
CUMULATIVE_SETTLEMENT_TAX = #cumulativeSettlementTax#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="cumulativePriceTax">
CUMULATIVE_PRICE_TAX = #cumulativePriceTax#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="reviewStatus">
REVIEW_STATUS = #reviewStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGCW008 (ID,
ACCOUNT_CODE,
<!-- 企业编码 -->
COMPANY_CODE,
<!-- 公司编码 -->
COMPANY_NAME,
<!-- 公司名称 -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
CONTRACT_NUMBER,
<!-- 合同号 -->
CONTRACT_NAME,
<!-- 合同名称 -->
SETTLEMENT_NUMBER,
<!-- 结算编号 -->
SETTLEMENT_TYPE,
<!-- 结算类别;1部分结算2最终结算 -->
CONTRACT_DATE,
<!-- 结算日期 -->
TAX_POINTS,
<!-- 税点 -->
PRICE_TAX_SEPARATION,
<!-- 价税分离;1是2否 -->
THIS_SETTLEMENT_AMOUNT,
<!-- 本次结算金额 -->
THIS_SETTLEMENT_TAX,
<!-- 本次结算税金 -->
THIS_PRICE_TAX,
<!-- 本次结算价税合计金额 -->
TOTAL_CONTRACT_PRICE,
<!-- 合同金额(元) -->
CUMULATIVE_SETTLEMENT_AMOUNT,
<!-- 累计结算金额 -->
CUMULATIVE_SETTLEMENT_TAX,
<!-- 累计结算税金 -->
CUMULATIVE_PRICE_TAX,
<!-- 累计结算价税合计金额 -->
REMAINING_AMOUNT,
<!-- 累计结算价税合计金额 -->
REVIEW_STATUS,
<!-- 审核状态 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
UPDATED_BY,
<!-- 记录修改者 -->
UPDATED_NAME,
<!-- 记录修改名称 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
DEP_CODE
<!-- 部门编码 -->
)
VALUES (#id#, #accountCode#, #companyCode#, #companyName#, #projCode#, #projName#, #contractNumber#, #contractName#, #settlementNumber#, #settlementType#, #contractDate#, #taxPoints#, #priceTaxSeparation#, #thisSettlementAmount#, #thisSettlementTax#, #thisPriceTax#, #totalContractPrice#, #cumulativeSettlementAmount#, #cumulativeSettlementTax#, #cumulativePriceTax#,#remainingAmount#, #reviewStatus#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #depCode#)
<selectKey
resultClass=
"long"
keyProperty=
"id"
>
SELECT MAX(ID) AS "id" FROM ${hggpSchema}.HGCW008
</selectKey>
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hggpSchema}.HGCW008 WHERE
ID = #id#
</delete>
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGCW008
SET
PROJ_CODE = #projCode#,
<!-- 项目编码 -->
PROJ_NAME = #projName#,
<!-- 项目名称 -->
CONTRACT_NUMBER = #contractNumber#,
<!-- 合同号 -->
CONTRACT_NAME = #contractName#,
<!-- 合同名称 -->
SETTLEMENT_NUMBER = #settlementNumber#,
<!-- 结算编号 -->
SETTLEMENT_TYPE = #settlementType#,
<!-- 结算类别;1部分结算2最终结算 -->
CONTRACT_DATE = #contractDate#,
<!-- 结算日期 -->
TAX_POINTS = #taxPoints#,
<!-- 税点 -->
PRICE_TAX_SEPARATION = #priceTaxSeparation#,
<!-- 价税分离;1是2否 -->
THIS_SETTLEMENT_AMOUNT = #thisSettlementAmount#,
<!-- 本次结算金额 -->
THIS_SETTLEMENT_TAX = #thisSettlementTax#,
<!-- 本次结算税金 -->
THIS_PRICE_TAX = #thisPriceTax#,
<!-- 本次结算价税合计金额 -->
TOTAL_CONTRACT_PRICE = #totalContractPrice#,
<!-- 合同金额(元) -->
CUMULATIVE_SETTLEMENT_AMOUNT = #cumulativeSettlementAmount#,
<!-- 累计结算金额 -->
CUMULATIVE_SETTLEMENT_TAX = #cumulativeSettlementTax#,
<!-- 累计结算税金 -->
CUMULATIVE_PRICE_TAX = #cumulativePriceTax#,
<!-- 累计结算价税合计金额 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#
<!-- 记录修改时间 -->
WHERE
ID = #id#
</update>
<select
id=
"queryCalculateAmount"
resultClass=
"java.util.HashMap"
>
SELECT
IFNULL(SUM( CUMULATIVE_SETTLEMENT_AMOUNT ),0) as "sumCumulativeSettlementAmount",
IFNULL(SUM( CUMULATIVE_SETTLEMENT_TAX ),0) as "sumCumulativeSettlementTax"
FROM ${hggpSchema}.HGCW008 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<update
id=
"submit"
>
UPDATE ${hggpSchema}.HGCW008
SET
REVIEW_STATUS = #reviewStatus#,
<!-- 审核状态 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#
<!-- 记录修改时间 -->
WHERE
ID = #id#
</update>
<update
id=
"updateDeductionAmount"
>
UPDATE ${hggpSchema}.HGCW008
SET
REMAINING_AMOUNT = #remainingAmount#,
<!-- 审核状态 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#
<!-- 记录修改时间 -->
WHERE
ID = #id#
</update>
</sqlMap>
src/main/webapp/HG/CW/HGCW012.js
View file @
62bcb9ac
...
@@ -64,7 +64,7 @@ let query = function () {
...
@@ -64,7 +64,7 @@ let query = function () {
*/
*/
function
addFunc
()
{
function
addFunc
()
{
JSColorbox
.
open
({
JSColorbox
.
open
({
href
:
"HGCW01
0
A?methodName=initLoad&efParentFormEname=HGCW010"
,
href
:
"HGCW01
2
A?methodName=initLoad&efParentFormEname=HGCW010"
,
title
:
"<div style='text-align: center;'>结算单</div>"
,
title
:
"<div style='text-align: center;'>结算单</div>"
,
width
:
"90%"
,
width
:
"90%"
,
height
:
"90%"
,
height
:
"90%"
,
...
@@ -100,7 +100,7 @@ function windowCallback() {
...
@@ -100,7 +100,7 @@ function windowCallback() {
function
contractDetailFunc
(
id
)
{
function
contractDetailFunc
(
id
)
{
JSColorbox
.
open
({
JSColorbox
.
open
({
href
:
"HGCW01
1?methodName=initLoad&id="
+
id
+
"&efParentFormEname=HGCW011
"
,
href
:
"HGCW01
2?methodName=initLoad&id="
+
id
+
"&efParentFormEname=HGCW012
"
,
title
:
"<div style='text-align: center;'>明细详情</div>"
,
title
:
"<div style='text-align: center;'>明细详情</div>"
,
width
:
"90%"
,
width
:
"90%"
,
height
:
"90%"
,
height
:
"90%"
,
...
@@ -136,7 +136,7 @@ function submitFunc() {
...
@@ -136,7 +136,7 @@ function submitFunc() {
ok
:
function
()
{
ok
:
function
()
{
var
info
=
new
EiInfo
();
var
info
=
new
EiInfo
();
info
.
addBlock
(
JSUtils
.
checkedRows2Block
(
"result"
));
info
.
addBlock
(
JSUtils
.
checkedRows2Block
(
"result"
));
EiCommunicator
.
send
(
"HGCW01
0
"
,
"submit"
,
info
,
{
EiCommunicator
.
send
(
"HGCW01
2
"
,
"submit"
,
info
,
{
onSuccess
:
function
(
ei
)
{
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
try
{
try
{
...
...
src/main/webapp/HG/CW/HGCW012.jsp
View file @
62bcb9ac
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<head>
<head>
</head>
</head>
<EF:EFPage
title=
"
销售开
票"
>
<EF:EFPage
title=
"
采购收
票"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment