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
283c28b5
Commit
283c28b5
authored
Aug 13, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购计划、采购合同、采购收货增加项目名称字段
parent
60313b26
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
309 additions
and
6 deletions
+309
-6
HGCG001.java
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG001.java
+30
-0
HGCG001A.java
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG001A.java
+32
-0
HGCG002.java
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG002.java
+32
-0
HGCG002B.java
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG002B.java
+32
-0
HGCG003.java
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG003.java
+32
-0
HGCG003B.java
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG003B.java
+32
-0
ServiceHGCG002.java
.../java/com/baosight/hggp/hg/cg/service/ServiceHGCG002.java
+1
-0
HGCG001.xml
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG001.xml
+11
-1
HGCG001A.xml
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG001A.xml
+23
-1
HGCG002.xml
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG002.xml
+11
-1
HGCG002A.xml
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG002A.xml
+24
-1
HGCG003.xml
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG003.xml
+11
-1
HGCG003A.xml
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG003A.xml
+15
-1
HGCGTools.java
src/main/java/com/baosight/hggp/hg/cg/tools/HGCGTools.java
+15
-0
HGSqlConstant.java
...ain/java/com/baosight/hggp/hg/constant/HGSqlConstant.java
+2
-0
HGCG001.jsp
src/main/webapp/HG/CG/HGCG001.jsp
+2
-0
HGCG002.jsp
src/main/webapp/HG/CG/HGCG002.jsp
+2
-0
HGCG003.jsp
src/main/webapp/HG/CG/HGCG003.jsp
+2
-0
No files found.
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG001.java
View file @
283c28b5
...
@@ -146,6 +146,8 @@ public class HGCG001 extends DaoEPBase {
...
@@ -146,6 +146,8 @@ public class HGCG001 extends DaoEPBase {
private
Integer
inventTypeDetail
;
/*存货类型明细 1:构建 2:零件*/
private
Integer
inventTypeDetail
;
/*存货类型明细 1:构建 2:零件*/
private
Long
materialPlanId
=
new
Long
(
0
);
/*材料计划id*/
private
Long
materialPlanId
=
new
Long
(
0
);
/*材料计划id*/
private
Integer
source
;
/* 数据来源 根据采购数据来源小代码 目前默认0材料计划,1手工录入*/
private
Integer
source
;
/* 数据来源 根据采购数据来源小代码 目前默认0材料计划,1手工录入*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
/**
/**
* initialize the metadata.
* initialize the metadata.
...
@@ -332,6 +334,14 @@ public class HGCG001 extends DaoEPBase {
...
@@ -332,6 +334,14 @@ public class HGCG001 extends DaoEPBase {
eiColumn
=
new
EiColumn
(
FIELD_SOURCE
);
eiColumn
=
new
EiColumn
(
FIELD_SOURCE
);
eiColumn
.
setDescName
(
"数据来源"
);
eiColumn
.
setDescName
(
"数据来源"
);
eiMetadata
.
addMeta
(
eiColumn
);
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
);
}
}
/**
/**
...
@@ -926,6 +936,22 @@ public class HGCG001 extends DaoEPBase {
...
@@ -926,6 +936,22 @@ public class HGCG001 extends DaoEPBase {
this
.
source
=
source
;
this
.
source
=
source
;
}
}
public
String
getProjCode
()
{
return
projCode
;
}
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
}
public
String
getProjName
()
{
return
projName
;
}
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -972,6 +998,8 @@ public class HGCG001 extends DaoEPBase {
...
@@ -972,6 +998,8 @@ public class HGCG001 extends DaoEPBase {
setMaterialPlanId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MATERIAL_PLAN_ID
)),
materialPlanId
));
setMaterialPlanId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MATERIAL_PLAN_ID
)),
materialPlanId
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
}
}
/**
/**
...
@@ -1019,6 +1047,8 @@ public class HGCG001 extends DaoEPBase {
...
@@ -1019,6 +1047,8 @@ public class HGCG001 extends DaoEPBase {
map
.
put
(
FIELD_MATERIAL_PLAN_ID
,
StringUtils
.
toString
(
materialPlanId
,
eiMetadata
.
getMeta
(
FIELD_MATERIAL_PLAN_ID
)));
map
.
put
(
FIELD_MATERIAL_PLAN_ID
,
StringUtils
.
toString
(
materialPlanId
,
eiMetadata
.
getMeta
(
FIELD_MATERIAL_PLAN_ID
)));
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
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
)));
return
map
;
return
map
;
}
}
}
}
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG001A.java
View file @
283c28b5
...
@@ -56,6 +56,8 @@ public class HGCG001A extends DaoEPBase {
...
@@ -56,6 +56,8 @@ public class HGCG001A extends DaoEPBase {
public
static
final
String
FIELD_PRIMARY_ID
=
"primaryId"
;
/* 主表id*/
public
static
final
String
FIELD_PRIMARY_ID
=
"primaryId"
;
/* 主表id*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 状态:0-待审核,1-审核中,2-审核通过,3-审核拒绝,4-生成合同,5-部分生成合同*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 状态:0-待审核,1-审核中,2-审核通过,3-审核拒绝,4-生成合同,5-部分生成合同*/
public
static
final
String
FIELD_REMARKS
=
"remarks"
;
/*备注*/
public
static
final
String
FIELD_REMARKS
=
"remarks"
;
/*备注*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
//页面展示
//页面展示
public
static
final
String
FIELD_SOURCE
=
"source"
;
/* 数据来源 根据采购数据来源小代码 目前默认0材料计划,1手工录入*/
public
static
final
String
FIELD_SOURCE
=
"source"
;
/* 数据来源 根据采购数据来源小代码 目前默认0材料计划,1手工录入*/
...
@@ -139,6 +141,8 @@ public class HGCG001A extends DaoEPBase {
...
@@ -139,6 +141,8 @@ public class HGCG001A extends DaoEPBase {
private
Long
primaryId
=
new
Long
(
0
);
/* 主表id*/
private
Long
primaryId
=
new
Long
(
0
);
/* 主表id*/
private
Integer
status
;
/* 状态:0-待审核,1-审核中,2-审核通过,3-审核拒绝,4-生成合同,5-部分生成合同*/
private
Integer
status
;
/* 状态:0-待审核,1-审核中,2-审核通过,3-审核拒绝,4-生成合同,5-部分生成合同*/
private
String
remarks
;
/*备注*/
private
String
remarks
;
/*备注*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
//选择合同需要信息
//选择合同需要信息
private
Integer
source
;
/* 数据来源 根据采购数据来源小代码 目前默认0材料计划,1手工录入*/
private
Integer
source
;
/* 数据来源 根据采购数据来源小代码 目前默认0材料计划,1手工录入*/
...
@@ -356,6 +360,14 @@ public class HGCG001A extends DaoEPBase {
...
@@ -356,6 +360,14 @@ public class HGCG001A extends DaoEPBase {
eiColumn
=
new
EiColumn
(
FIELD_REMARKS
);
eiColumn
=
new
EiColumn
(
FIELD_REMARKS
);
eiColumn
.
setDescName
(
"备注"
);
eiColumn
.
setDescName
(
"备注"
);
eiMetadata
.
addMeta
(
eiColumn
);
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
);
}
}
/**
/**
...
@@ -942,6 +954,22 @@ public class HGCG001A extends DaoEPBase {
...
@@ -942,6 +954,22 @@ public class HGCG001A extends DaoEPBase {
this
.
remarks
=
remarks
;
this
.
remarks
=
remarks
;
}
}
public
String
getProjCode
()
{
return
projCode
;
}
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
}
public
String
getProjName
()
{
return
projName
;
}
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -983,6 +1011,8 @@ public class HGCG001A extends DaoEPBase {
...
@@ -983,6 +1011,8 @@ public class HGCG001A extends DaoEPBase {
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setPrimaryId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRIMARY_ID
)),
primaryId
));
setPrimaryId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRIMARY_ID
)),
primaryId
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRICE
)),
price
));
setPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRICE
)),
price
));
...
@@ -1034,6 +1064,8 @@ public class HGCG001A extends DaoEPBase {
...
@@ -1034,6 +1064,8 @@ public class HGCG001A extends DaoEPBase {
map
.
put
(
FIELD_PRIMARY_ID
,
StringUtils
.
toString
(
primaryId
,
eiMetadata
.
getMeta
(
FIELD_PRIMARY_ID
)));
map
.
put
(
FIELD_PRIMARY_ID
,
StringUtils
.
toString
(
primaryId
,
eiMetadata
.
getMeta
(
FIELD_PRIMARY_ID
)));
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
map
.
put
(
FIELD_REMARKS
,
StringUtils
.
toString
(
remarks
,
eiMetadata
.
getMeta
(
FIELD_REMARKS
)));
map
.
put
(
FIELD_REMARKS
,
StringUtils
.
toString
(
remarks
,
eiMetadata
.
getMeta
(
FIELD_REMARKS
)));
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_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
map
.
put
(
FIELD_PRICE
,
StringUtils
.
toString
(
price
,
eiMetadata
.
getMeta
(
FIELD_PRICE
)));
map
.
put
(
FIELD_PRICE
,
StringUtils
.
toString
(
price
,
eiMetadata
.
getMeta
(
FIELD_PRICE
)));
...
...
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG002.java
View file @
283c28b5
...
@@ -109,6 +109,8 @@ public class HGCG002 extends DaoEPBase {
...
@@ -109,6 +109,8 @@ public class HGCG002 extends DaoEPBase {
public
static
final
String
COL_AUDIT_USER_ID
=
"AUDIT_USER_ID"
;
/* 审核人ID*/
public
static
final
String
COL_AUDIT_USER_ID
=
"AUDIT_USER_ID"
;
/* 审核人ID*/
public
static
final
String
COL_AUDIT_USER_NAME
=
"AUDIT_USER_NAME"
;
/* 审核人名称*/
public
static
final
String
COL_AUDIT_USER_NAME
=
"AUDIT_USER_NAME"
;
/* 审核人名称*/
public
static
final
String
COL_AUDIT_REASON
=
"AUDIT_REASON"
;
/* 审核原因*/
public
static
final
String
COL_AUDIT_REASON
=
"AUDIT_REASON"
;
/* 审核原因*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
COL_PRICE
=
"PRICE"
;
/* 单价*/
public
static
final
String
COL_PRICE
=
"PRICE"
;
/* 单价*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 金额(不含税金额)*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 金额(不含税金额)*/
...
@@ -163,6 +165,8 @@ public class HGCG002 extends DaoEPBase {
...
@@ -163,6 +165,8 @@ public class HGCG002 extends DaoEPBase {
private
String
auditUserName
=
" "
;
/* 审核人名称*/
private
String
auditUserName
=
" "
;
/* 审核人名称*/
private
String
auditReason
=
" "
;
/* 审核原因*/
private
String
auditReason
=
" "
;
/* 审核原因*/
private
Integer
inventTypeDetail
;
/*存货类型明细 1:构建 2:零件*/
private
Integer
inventTypeDetail
;
/*存货类型明细 1:构建 2:零件*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
BigDecimal
price
=
new
BigDecimal
(
0.000
);
/* 单价*/
private
BigDecimal
price
=
new
BigDecimal
(
0.000
);
/* 单价*/
private
BigDecimal
amount
=
new
BigDecimal
(
0.000
);
/* 金额(不含税金额)*/
private
BigDecimal
amount
=
new
BigDecimal
(
0.000
);
/* 金额(不含税金额)*/
...
@@ -399,6 +403,14 @@ public class HGCG002 extends DaoEPBase {
...
@@ -399,6 +403,14 @@ public class HGCG002 extends DaoEPBase {
eiColumn
=
new
EiColumn
(
FIELD_SOURCE
);
eiColumn
=
new
EiColumn
(
FIELD_SOURCE
);
eiColumn
.
setDescName
(
"数据来源"
);
eiColumn
.
setDescName
(
"数据来源"
);
eiMetadata
.
addMeta
(
eiColumn
);
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
);
}
}
/**
/**
...
@@ -1089,6 +1101,22 @@ public class HGCG002 extends DaoEPBase {
...
@@ -1089,6 +1101,22 @@ public class HGCG002 extends DaoEPBase {
this
.
source
=
source
;
this
.
source
=
source
;
}
}
public
String
getProjCode
()
{
return
projCode
;
}
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
}
public
String
getProjName
()
{
return
projName
;
}
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -1143,6 +1171,8 @@ public class HGCG002 extends DaoEPBase {
...
@@ -1143,6 +1171,8 @@ public class HGCG002 extends DaoEPBase {
setTaxRate
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TAX_RATE
)),
taxRate
));
setTaxRate
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TAX_RATE
)),
taxRate
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
}
}
/**
/**
...
@@ -1198,6 +1228,8 @@ public class HGCG002 extends DaoEPBase {
...
@@ -1198,6 +1228,8 @@ public class HGCG002 extends DaoEPBase {
map
.
put
(
FIELD_TAX_RATE
,
StringUtils
.
toString
(
taxRate
,
eiMetadata
.
getMeta
(
FIELD_TAX_RATE
)));
map
.
put
(
FIELD_TAX_RATE
,
StringUtils
.
toString
(
taxRate
,
eiMetadata
.
getMeta
(
FIELD_TAX_RATE
)));
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
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
)));
return
map
;
return
map
;
}
}
...
...
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG002B.java
View file @
283c28b5
...
@@ -56,6 +56,8 @@ public class HGCG002B extends DaoEPBase {
...
@@ -56,6 +56,8 @@ public class HGCG002B extends DaoEPBase {
public
static
final
String
FIELD_INVENT_TYPE_DETAIL
=
"inventTypeDetail"
;
/* 存货类型大类*/
public
static
final
String
FIELD_INVENT_TYPE_DETAIL
=
"inventTypeDetail"
;
/* 存货类型大类*/
public
static
final
String
FIELD_PRIMARY_ID
=
"primaryId"
;
/* 主表id*/
public
static
final
String
FIELD_PRIMARY_ID
=
"primaryId"
;
/* 主表id*/
public
static
final
String
FIELD_PLAN_DETAIL_ID
=
"planDetailId"
;
/* 计划明细ID*/
public
static
final
String
FIELD_PLAN_DETAIL_ID
=
"planDetailId"
;
/* 计划明细ID*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
//页面需要展示
//页面需要展示
public
static
final
String
FIELD_BC_RECEIVE_QTY
=
"bcReceiveQty"
;
/* 本次收货数量*/
public
static
final
String
FIELD_BC_RECEIVE_QTY
=
"bcReceiveQty"
;
/* 本次收货数量*/
public
static
final
String
FIELD_BC_MAX_RECEIVE_QTY
=
"bcMaxReceiveQty"
;
/* 本次最大收货数量*/
public
static
final
String
FIELD_BC_MAX_RECEIVE_QTY
=
"bcMaxReceiveQty"
;
/* 本次最大收货数量*/
...
@@ -144,6 +146,8 @@ public class HGCG002B extends DaoEPBase {
...
@@ -144,6 +146,8 @@ public class HGCG002B extends DaoEPBase {
private
Integer
inventTypeDetail
;
/* 存货类型大类*/
private
Integer
inventTypeDetail
;
/* 存货类型大类*/
private
Long
primaryId
=
new
Long
(
0
);
/* 主表id*/
private
Long
primaryId
=
new
Long
(
0
);
/* 主表id*/
private
Long
planDetailId
=
new
Long
(
0
);
/* 合同明细id*/
private
Long
planDetailId
=
new
Long
(
0
);
/* 合同明细id*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
//页面需要填写、展示字段
//页面需要填写、展示字段
private
BigDecimal
bcReceiveQty
=
new
BigDecimal
(
0.000
);
/* 本次收货数量*/
private
BigDecimal
bcReceiveQty
=
new
BigDecimal
(
0.000
);
/* 本次收货数量*/
...
@@ -384,6 +388,14 @@ public class HGCG002B extends DaoEPBase {
...
@@ -384,6 +388,14 @@ public class HGCG002B extends DaoEPBase {
eiColumn
=
new
EiColumn
(
FIELD_STATUS
);
eiColumn
=
new
EiColumn
(
FIELD_STATUS
);
eiColumn
.
setDescName
(
"状态:0-未审批,1-审核通过,2-审核未通过"
);
eiColumn
.
setDescName
(
"状态:0-未审批,1-审核通过,2-审核未通过"
);
eiMetadata
.
addMeta
(
eiColumn
);
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
);
}
}
/**
/**
...
@@ -1010,6 +1022,22 @@ public class HGCG002B extends DaoEPBase {
...
@@ -1010,6 +1022,22 @@ public class HGCG002B extends DaoEPBase {
this
.
planDetailId
=
planDetailId
;
this
.
planDetailId
=
planDetailId
;
}
}
public
String
getProjCode
()
{
return
projCode
;
}
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
}
public
String
getProjName
()
{
return
projName
;
}
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -1052,6 +1080,8 @@ public class HGCG002B extends DaoEPBase {
...
@@ -1052,6 +1080,8 @@ public class HGCG002B extends DaoEPBase {
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setPrimaryId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRIMARY_ID
)),
primaryId
));
setPrimaryId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRIMARY_ID
)),
primaryId
));
setPlanDetailId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_DETAIL_ID
)),
planDetailId
));
setPlanDetailId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PLAN_DETAIL_ID
)),
planDetailId
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
setBcReceiveQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_BC_RECEIVE_QTY
)),
bcReceiveQty
));
setBcReceiveQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_BC_RECEIVE_QTY
)),
bcReceiveQty
));
setBcMaxReceiveQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_BC_MAX_RECEIVE_QTY
)),
bcMaxReceiveQty
));
setBcMaxReceiveQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_BC_MAX_RECEIVE_QTY
)),
bcMaxReceiveQty
));
...
@@ -1106,6 +1136,8 @@ public class HGCG002B extends DaoEPBase {
...
@@ -1106,6 +1136,8 @@ public class HGCG002B extends DaoEPBase {
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_PRIMARY_ID
,
StringUtils
.
toString
(
primaryId
,
eiMetadata
.
getMeta
(
FIELD_PRIMARY_ID
)));
map
.
put
(
FIELD_PRIMARY_ID
,
StringUtils
.
toString
(
primaryId
,
eiMetadata
.
getMeta
(
FIELD_PRIMARY_ID
)));
map
.
put
(
FIELD_PLAN_DETAIL_ID
,
StringUtils
.
toString
(
planDetailId
,
eiMetadata
.
getMeta
(
FIELD_PLAN_DETAIL_ID
)));
map
.
put
(
FIELD_PLAN_DETAIL_ID
,
StringUtils
.
toString
(
planDetailId
,
eiMetadata
.
getMeta
(
FIELD_PLAN_DETAIL_ID
)));
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_BC_RECEIVE_QTY
,
StringUtils
.
toString
(
bcReceiveQty
,
eiMetadata
.
getMeta
(
FIELD_BC_RECEIVE_QTY
)));
map
.
put
(
FIELD_BC_RECEIVE_QTY
,
StringUtils
.
toString
(
bcReceiveQty
,
eiMetadata
.
getMeta
(
FIELD_BC_RECEIVE_QTY
)));
map
.
put
(
FIELD_BC_MAX_RECEIVE_QTY
,
StringUtils
.
toString
(
bcMaxReceiveQty
,
eiMetadata
.
getMeta
(
FIELD_BC_MAX_RECEIVE_QTY
)));
map
.
put
(
FIELD_BC_MAX_RECEIVE_QTY
,
StringUtils
.
toString
(
bcMaxReceiveQty
,
eiMetadata
.
getMeta
(
FIELD_BC_MAX_RECEIVE_QTY
)));
...
...
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG003.java
View file @
283c28b5
...
@@ -62,6 +62,8 @@ public class HGCG003 extends DaoEPBase {
...
@@ -62,6 +62,8 @@ public class HGCG003 extends DaoEPBase {
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 金额*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 金额*/
public
static
final
String
FIELD_INVENT_TYPE_DETAIL
=
"inventTypeDetail"
;
/*存货类型明细*/
public
static
final
String
FIELD_INVENT_TYPE_DETAIL
=
"inventTypeDetail"
;
/*存货类型明细*/
public
static
final
String
FIELD_IS_INVOICING
=
"isInvoicing"
;
/*是否开票 0否 1是*/
public
static
final
String
FIELD_IS_INVOICING
=
"isInvoicing"
;
/*是否开票 0否 1是*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_SOURCE
=
"source"
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
public
static
final
String
FIELD_SOURCE
=
"source"
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
...
@@ -153,6 +155,8 @@ public class HGCG003 extends DaoEPBase {
...
@@ -153,6 +155,8 @@ public class HGCG003 extends DaoEPBase {
private
Integer
inventTypeDetail
;
/*存货类型明细 1:构建 2:零件*/
private
Integer
inventTypeDetail
;
/*存货类型明细 1:构建 2:零件*/
private
Integer
isInvoicing
=
0
;
private
Integer
isInvoicing
=
0
;
private
Integer
source
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
private
Integer
source
;
/* 数据来源 根据采购数据来源小代码 目前0默认采购合同,1手动录入*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
/**
/**
* initialize the metadata.
* initialize the metadata.
...
@@ -354,6 +358,14 @@ public class HGCG003 extends DaoEPBase {
...
@@ -354,6 +358,14 @@ public class HGCG003 extends DaoEPBase {
eiColumn
=
new
EiColumn
(
FIELD_SOURCE
);
eiColumn
=
new
EiColumn
(
FIELD_SOURCE
);
eiColumn
.
setDescName
(
"数据来源"
);
eiColumn
.
setDescName
(
"数据来源"
);
eiMetadata
.
addMeta
(
eiColumn
);
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
);
}
}
/**
/**
...
@@ -980,6 +992,22 @@ public class HGCG003 extends DaoEPBase {
...
@@ -980,6 +992,22 @@ public class HGCG003 extends DaoEPBase {
this
.
source
=
source
;
this
.
source
=
source
;
}
}
public
String
getProjCode
()
{
return
projCode
;
}
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
}
public
String
getProjName
()
{
return
projName
;
}
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -1029,6 +1057,8 @@ public class HGCG003 extends DaoEPBase {
...
@@ -1029,6 +1057,8 @@ public class HGCG003 extends DaoEPBase {
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setIsInvoicing
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IS_INVOICING
)),
isInvoicing
));
setIsInvoicing
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IS_INVOICING
)),
isInvoicing
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
}
}
/**
/**
...
@@ -1079,6 +1109,8 @@ public class HGCG003 extends DaoEPBase {
...
@@ -1079,6 +1109,8 @@ public class HGCG003 extends DaoEPBase {
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_IS_INVOICING
,
StringUtils
.
toString
(
isInvoicing
,
eiMetadata
.
getMeta
(
FIELD_IS_INVOICING
)));
map
.
put
(
FIELD_IS_INVOICING
,
StringUtils
.
toString
(
isInvoicing
,
eiMetadata
.
getMeta
(
FIELD_IS_INVOICING
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
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
)));
return
map
;
return
map
;
}
}
...
...
src/main/java/com/baosight/hggp/hg/cg/domain/HGCG003B.java
View file @
283c28b5
...
@@ -59,6 +59,8 @@ public class HGCG003B extends DaoEPBase {
...
@@ -59,6 +59,8 @@ public class HGCG003B extends DaoEPBase {
public
static
final
String
FIELD_INVENT_TYPE_DETAIL
=
"inventTypeDetail"
;
/* 存货类型大类*/
public
static
final
String
FIELD_INVENT_TYPE_DETAIL
=
"inventTypeDetail"
;
/* 存货类型大类*/
public
static
final
String
FIELD_PRIMARY_ID
=
"primaryId"
;
/* 主表id*/
public
static
final
String
FIELD_PRIMARY_ID
=
"primaryId"
;
/* 主表id*/
public
static
final
String
FIELD_CONTRACT_DETAIL_ID
=
"contractDetailId"
;
/* 合同明细id*/
public
static
final
String
FIELD_CONTRACT_DETAIL_ID
=
"contractDetailId"
;
/* 合同明细id*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
//页面要展示主表信息
//页面要展示主表信息
public
static
final
String
FIELD_SUP_CODE
=
"supCode"
;
/* 供应商编码*/
public
static
final
String
FIELD_SUP_CODE
=
"supCode"
;
/* 供应商编码*/
...
@@ -151,6 +153,8 @@ public class HGCG003B extends DaoEPBase {
...
@@ -151,6 +153,8 @@ public class HGCG003B extends DaoEPBase {
private
Integer
inventTypeDetail
;
/* 存货类型大类*/
private
Integer
inventTypeDetail
;
/* 存货类型大类*/
private
Long
primaryId
=
new
Long
(
0
);
/* 主表id*/
private
Long
primaryId
=
new
Long
(
0
);
/* 主表id*/
private
Long
contractDetailId
=
new
Long
(
0
);
/* 合同明细id*/
private
Long
contractDetailId
=
new
Long
(
0
);
/* 合同明细id*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
//页面要展示主表信息
//页面要展示主表信息
private
String
supCode
=
" "
;
/* 供应商编码*/
private
String
supCode
=
" "
;
/* 供应商编码*/
...
@@ -368,6 +372,14 @@ public class HGCG003B extends DaoEPBase {
...
@@ -368,6 +372,14 @@ public class HGCG003B extends DaoEPBase {
eiColumn
=
new
EiColumn
(
FIELD_SOURCE
);
eiColumn
=
new
EiColumn
(
FIELD_SOURCE
);
eiColumn
.
setDescName
(
"数据来源"
);
eiColumn
.
setDescName
(
"数据来源"
);
eiMetadata
.
addMeta
(
eiColumn
);
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
);
}
}
/**
/**
...
@@ -1011,6 +1023,22 @@ public class HGCG003B extends DaoEPBase {
...
@@ -1011,6 +1023,22 @@ public class HGCG003B extends DaoEPBase {
this
.
source
=
source
;
this
.
source
=
source
;
}
}
public
String
getProjCode
()
{
return
projCode
;
}
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
}
public
String
getProjName
()
{
return
projName
;
}
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -1062,6 +1090,8 @@ public class HGCG003B extends DaoEPBase {
...
@@ -1062,6 +1090,8 @@ public class HGCG003B extends DaoEPBase {
setPurUserName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PUR_USER_NAME
)),
purUserName
));
setPurUserName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PUR_USER_NAME
)),
purUserName
));
setIsInvoicing
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IS_INVOICING
)),
isInvoicing
));
setIsInvoicing
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IS_INVOICING
)),
isInvoicing
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setSource
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE
)),
source
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
}
}
/**
/**
...
@@ -1114,6 +1144,8 @@ public class HGCG003B extends DaoEPBase {
...
@@ -1114,6 +1144,8 @@ public class HGCG003B extends DaoEPBase {
map
.
put
(
FIELD_PUR_USER_NAME
,
StringUtils
.
toString
(
purUserName
,
eiMetadata
.
getMeta
(
FIELD_PUR_USER_NAME
)));
map
.
put
(
FIELD_PUR_USER_NAME
,
StringUtils
.
toString
(
purUserName
,
eiMetadata
.
getMeta
(
FIELD_PUR_USER_NAME
)));
map
.
put
(
FIELD_IS_INVOICING
,
StringUtils
.
toString
(
isInvoicing
,
eiMetadata
.
getMeta
(
FIELD_IS_INVOICING
)));
map
.
put
(
FIELD_IS_INVOICING
,
StringUtils
.
toString
(
isInvoicing
,
eiMetadata
.
getMeta
(
FIELD_IS_INVOICING
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
map
.
put
(
FIELD_SOURCE
,
StringUtils
.
toString
(
source
,
eiMetadata
.
getMeta
(
FIELD_SOURCE
)));
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
)));
return
map
;
return
map
;
}
}
...
...
src/main/java/com/baosight/hggp/hg/cg/service/ServiceHGCG002.java
View file @
283c28b5
...
@@ -260,6 +260,7 @@ public class ServiceHGCG002 extends ServiceBase {
...
@@ -260,6 +260,7 @@ public class ServiceHGCG002 extends ServiceBase {
fCg002
.
setAuditUserName
(
UserSessionUtils
.
getLoginCName
());
fCg002
.
setAuditUserName
(
UserSessionUtils
.
getLoginCName
());
fCg002
.
setAuditReason
(
""
);
fCg002
.
setAuditReason
(
""
);
DaoUtils
.
update
(
HGSqlConstant
.
HgCg002
.
UPDATE_AUDIT
,
fCg002
);
DaoUtils
.
update
(
HGSqlConstant
.
HgCg002
.
UPDATE_AUDIT
,
fCg002
);
HGCGTools
.
HgCg002B
.
updateStatus
(
fCg002
.
getId
(),
HGConstant
.
CgContractStatus
.
S_2
);
}
}
}
}
...
...
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG001.xml
View file @
283c28b5
...
@@ -40,6 +40,8 @@
...
@@ -40,6 +40,8 @@
AUDIT_REASON as "auditReason",
<!-- 审核原因 -->
AUDIT_REASON as "auditReason",
<!-- 审核原因 -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型明细 -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型明细 -->
SOURCE as "source",
<!-- 数据来源 根据采购数据来源小代码 目前默认0材料计划,1手工录入 -->
SOURCE as "source",
<!-- 数据来源 根据采购数据来源小代码 目前默认0材料计划,1手工录入 -->
PROJ_CODE as "projCode",
PROJ_NAME as "projName",
MATERIAL_PLAN_ID as "materialPlanId"
<!-- 材料计划id -->
MATERIAL_PLAN_ID as "materialPlanId"
<!-- 材料计划id -->
</sql>
</sql>
...
@@ -90,6 +92,12 @@
...
@@ -90,6 +92,12 @@
<isNotEmpty
prepend=
" AND "
property=
"source"
>
<isNotEmpty
prepend=
" AND "
property=
"source"
>
SOURCE = #source#
SOURCE = #source#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME LIKE CONCAT('%', #projName# ,'%')
</isNotEmpty>
</sql>
</sql>
<sql
id=
"idCondition"
>
<sql
id=
"idCondition"
>
...
@@ -171,12 +179,14 @@
...
@@ -171,12 +179,14 @@
STATUS,
<!-- 状态:0-未审批,1-审核通过,2-审核未通过 -->
STATUS,
<!-- 状态:0-未审批,1-审核通过,2-审核未通过 -->
INVENT_TYPE_DETAIL,
<!-- 存货类型明细 -->
INVENT_TYPE_DETAIL,
<!-- 存货类型明细 -->
MATERIAL_PLAN_ID,
<!-- 材料计划id -->
MATERIAL_PLAN_ID,
<!-- 材料计划id -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
SOURCE
<!-- 数据来源 根据采购数据来源小代码 目前默认0材料计划,1手工录入 -->
SOURCE
<!-- 数据来源 根据采购数据来源小代码 目前默认0材料计划,1手工录入 -->
) VALUES (
) VALUES (
#id#,#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#id#,#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#companyCode#, #companyName#, #planDate#, #planNo#, #inventCode#, #inventName#,
#companyCode#, #companyName#, #planDate#, #planNo#, #inventCode#, #inventName#,
#specId#, #spec#, #material#, #unit#, #length#, #width#, #thick#,
#specId#, #spec#, #material#, #unit#, #length#, #width#, #thick#,
#planQty#, #planUnitWeight#, #planWeight#, #status#, #inventTypeDetail#, #materialPlanId#, #source#
#planQty#, #planUnitWeight#, #planWeight#, #status#, #inventTypeDetail#, #materialPlanId#,
#projCode#,#projName#,
#source#
)
)
<selectKey
resultClass=
"long"
keyProperty=
"id"
>
<selectKey
resultClass=
"long"
keyProperty=
"id"
>
SELECT MAX(ID) AS "id" FROM ${hggpSchema}.HGCG001
SELECT MAX(ID) AS "id" FROM ${hggpSchema}.HGCG001
...
...
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG001A.xml
View file @
283c28b5
...
@@ -106,6 +106,12 @@
...
@@ -106,6 +106,12 @@
<isNotEmpty
prepend=
" AND "
property=
"remarks"
>
<isNotEmpty
prepend=
" AND "
property=
"remarks"
>
REMARKS = #remarks#
REMARKS = #remarks#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME LIKE CONCAT('%', #projName# ,'%')
</isNotEmpty>
</sql>
</sql>
<sql
id=
"idCondition"
>
<sql
id=
"idCondition"
>
...
@@ -218,6 +224,12 @@
...
@@ -218,6 +224,12 @@
<isNotEmpty
prepend=
" AND "
property=
"status"
>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
a.STATUS = #status#
a.STATUS = #status#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
a.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
a.PROJ_NAME LIKE CONCAT('%', #projName# ,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"source"
>
<isNotEmpty
prepend=
" AND "
property=
"source"
>
b.SOURCE = #source#
b.SOURCE = #source#
</isNotEmpty>
</isNotEmpty>
...
@@ -272,6 +284,10 @@
...
@@ -272,6 +284,10 @@
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
STATUS as "status",
<!-- 状态:0-未审批,1-审核通过,2-审核未通过 -->
STATUS as "status",
<!-- 状态:0-未审批,1-审核通过,2-审核未通过 -->
REMARKS as "remarks",
<!-- 备注 -->
REMARKS as "remarks",
<!-- 备注 -->
PROJ_CODE as "projCode",
PROJ_NAME as "projName",
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
PRIMARY_ID as "primaryId"
<!-- 主表id -->
PRIMARY_ID as "primaryId"
<!-- 主表id -->
FROM ${hggpSchema}.HGCG001A WHERE 1=1
FROM ${hggpSchema}.HGCG001A WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
...
@@ -326,6 +342,8 @@
...
@@ -326,6 +342,8 @@
a.INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
a.INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
a.REMARKS as "remarks",
<!-- 备注 -->
a.REMARKS as "remarks",
<!-- 备注 -->
a.STATUS as "status",
<!-- 状态:0-未审批,1-审核通过,2-审核未通过 -->
a.STATUS as "status",
<!-- 状态:0-未审批,1-审核通过,2-审核未通过 -->
a.PROJ_CODE as "projCode",
<!-- 项目编码 -->
a.PROJ_NAME as "projName",
<!-- 项目名称 -->
b.SOURCE as "source",
<!-- 数据来源 根据采购数据来源小代码 目前默认0材料计划,1手工录入 -->
b.SOURCE as "source",
<!-- 数据来源 根据采购数据来源小代码 目前默认0材料计划,1手工录入 -->
b.PLAN_DATE as "planDate",
<!-- 计划日期 -->
b.PLAN_DATE as "planDate",
<!-- 计划日期 -->
b.PLAN_NO as "planNo",
<!-- 计划单号 -->
b.PLAN_NO as "planNo",
<!-- 计划单号 -->
...
@@ -378,9 +396,11 @@
...
@@ -378,9 +396,11 @@
INVENT_TYPE_DETAIL,
<!-- 存货类型大类 -->
INVENT_TYPE_DETAIL,
<!-- 存货类型大类 -->
STATUS,
STATUS,
PRIMARY_ID,
<!-- 主表id -->
PRIMARY_ID,
<!-- 主表id -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
REMARKS
REMARKS
)
)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #planDate#, #planNo#, #inventType#, #inventCode#, #inventName#, #spec#, #material#, #unit#, #length#, #width#, #thick#, #planQty#, #planUnitWeight#, #planWeight#, #purQty#, #purUnitWeight#, #purWeight#, #materialPlanId#, #inventTypeDetail#,#status#, #primaryId#, #remarks#)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #planDate#, #planNo#, #inventType#, #inventCode#, #inventName#, #spec#, #material#, #unit#, #length#, #width#, #thick#, #planQty#, #planUnitWeight#, #planWeight#, #purQty#, #purUnitWeight#, #purWeight#, #materialPlanId#, #inventTypeDetail#,#status#, #primaryId#,
#projCode#,#projName#,
#remarks#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
@@ -423,6 +443,8 @@
...
@@ -423,6 +443,8 @@
INVENT_TYPE_DETAIL = #inventTypeDetail#,
<!-- 存货类型大类 -->
INVENT_TYPE_DETAIL = #inventTypeDetail#,
<!-- 存货类型大类 -->
STATUS = #status#,
STATUS = #status#,
REMARKS = #remarks#,
REMARKS = #remarks#,
PROJ_CODE = #projCode#,
<!-- 项目编码 -->
PROJ_NAME = #projName#,
<!-- 项目名称 -->
PRIMARY_ID = #primaryId#
<!-- 主表id -->
PRIMARY_ID = #primaryId#
<!-- 主表id -->
WHERE
WHERE
ID = #id#
ID = #id#
...
...
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG002.xml
View file @
283c28b5
...
@@ -48,6 +48,8 @@
...
@@ -48,6 +48,8 @@
AUDIT_USER_NAME as "auditUserName",
<!-- 审核人名称 -->
AUDIT_USER_NAME as "auditUserName",
<!-- 审核人名称 -->
AUDIT_REASON as "auditReason",
<!-- 审核原因 -->
AUDIT_REASON as "auditReason",
<!-- 审核原因 -->
SOURCE as "source",
<!-- 数据来源 根据采购数据来源小代码 目前默认0采购计划,1手工录入 -->
SOURCE as "source",
<!-- 数据来源 根据采购数据来源小代码 目前默认0采购计划,1手工录入 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
INVENT_TYPE_DETAIL as "inventTypeDetail"
<!-- 存货类型明细 -->
INVENT_TYPE_DETAIL as "inventTypeDetail"
<!-- 存货类型明细 -->
</sql>
</sql>
...
@@ -120,6 +122,12 @@
...
@@ -120,6 +122,12 @@
<isNotEmpty
prepend=
" AND "
property=
"source"
>
<isNotEmpty
prepend=
" AND "
property=
"source"
>
SOURCE = #source#
SOURCE = #source#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME LIKE CONCAT('%', #projName# ,'%')
</isNotEmpty>
</sql>
</sql>
<sql
id=
"idCondition"
>
<sql
id=
"idCondition"
>
...
@@ -214,6 +222,8 @@
...
@@ -214,6 +222,8 @@
TAX_AMOUNT,
<!-- 税额 -->
TAX_AMOUNT,
<!-- 税额 -->
TAX_RATE,
<!-- 税率 -->
TAX_RATE,
<!-- 税率 -->
INVENT_TYPE_DETAIL,
INVENT_TYPE_DETAIL,
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
SOURCE
<!-- 数据来源 根据采购数据来源小代码 目前默认0采购计划,1手工录入 -->
SOURCE
<!-- 数据来源 根据采购数据来源小代码 目前默认0采购计划,1手工录入 -->
) VALUES (
) VALUES (
#id#,#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#id#,#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
...
@@ -221,7 +231,7 @@
...
@@ -221,7 +231,7 @@
#supCode#, #supName#, #purUserId#, #purUserName#, #inventCode#, #inventName#,
#supCode#, #supName#, #purUserId#, #purUserName#, #inventCode#, #inventName#,
#specId#, #spec#, #material#, #unit#, #length#, #width#, #thick#,
#specId#, #spec#, #material#, #unit#, #length#, #width#, #thick#,
#purQty#, #purUnitWeight#, #purWeight#, #status#,
#purQty#, #purUnitWeight#, #purWeight#, #status#,
#price#, #amount#, #taxIncludeAmount#, #taxAmount#, #taxRate#, #inventTypeDetail#, #source#
#price#, #amount#, #taxIncludeAmount#, #taxAmount#, #taxRate#, #inventTypeDetail#,
#projCode#,#projName#,
#source#
)
)
<selectKey
resultClass=
"long"
keyProperty=
"id"
>
<selectKey
resultClass=
"long"
keyProperty=
"id"
>
SELECT MAX(ID) AS "id" FROM ${hggpSchema}.HGCG002
SELECT MAX(ID) AS "id" FROM ${hggpSchema}.HGCG002
...
...
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG002A.xml
View file @
283c28b5
...
@@ -106,6 +106,12 @@
...
@@ -106,6 +106,12 @@
<isNotEmpty
prepend=
" AND "
property=
"planDetailId"
>
<isNotEmpty
prepend=
" AND "
property=
"planDetailId"
>
PLAN_DETAIL_ID = #planDetailId#
PLAN_DETAIL_ID = #planDetailId#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME LIKE CONCAT('%', #projName# ,'%')
</isNotEmpty>
</sql>
</sql>
<!-- 公共修改字段 -->
<!-- 公共修改字段 -->
<sql
id=
"updateRevise"
>
<sql
id=
"updateRevise"
>
...
@@ -162,6 +168,8 @@
...
@@ -162,6 +168,8 @@
TAX_RATE as "taxRate",
<!-- 税率 -->
TAX_RATE as "taxRate",
<!-- 税率 -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
PRIMARY_ID as "primaryId",
<!-- 主表id -->
PRIMARY_ID as "primaryId",
<!-- 主表id -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
PLAN_DETAIL_ID as "planDetailId"
<!-- 计划明细id -->
PLAN_DETAIL_ID as "planDetailId"
<!-- 计划明细id -->
FROM ${hggpSchema}.HGCG002A WHERE 1=1
FROM ${hggpSchema}.HGCG002A WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
...
@@ -215,9 +223,11 @@
...
@@ -215,9 +223,11 @@
TAX_RATE,
<!-- 税率 -->
TAX_RATE,
<!-- 税率 -->
INVENT_TYPE_DETAIL,
<!-- 存货类型大类 -->
INVENT_TYPE_DETAIL,
<!-- 存货类型大类 -->
PRIMARY_ID,
<!-- 主表id -->
PRIMARY_ID,
<!-- 主表id -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
PLAN_DETAIL_ID
PLAN_DETAIL_ID
)
)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #inventType#, #inventCode#, #inventName#, #spec#, #material#, #unit#, #length#, #width#, #thick#, #purQty#, #purUnitWeight#, #purWeight#, #receiveQty#, #receiveWeight#, #price#, #amount#, #taxIncludeAmount#, #taxAmount#, #taxRate#, #inventTypeDetail#, #primaryId#, #planDetailId#)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #inventType#, #inventCode#, #inventName#, #spec#, #material#, #unit#, #length#, #width#, #thick#, #purQty#, #purUnitWeight#, #purWeight#, #receiveQty#, #receiveWeight#, #price#, #amount#, #taxIncludeAmount#, #taxAmount#, #taxRate#, #inventTypeDetail#, #primaryId#,
#projCode#,#projName#,
#planDetailId#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
@@ -260,6 +270,8 @@
...
@@ -260,6 +270,8 @@
TAX_RATE = #taxRate#,
<!-- 税率 -->
TAX_RATE = #taxRate#,
<!-- 税率 -->
INVENT_TYPE_DETAIL = #inventTypeDetail#,
<!-- 存货类型大类 -->
INVENT_TYPE_DETAIL = #inventTypeDetail#,
<!-- 存货类型大类 -->
PRIMARY_ID = #primaryId#,
<!-- 主表id -->
PRIMARY_ID = #primaryId#,
<!-- 主表id -->
PROJ_CODE = #projCode#,
<!-- 项目编码 -->
PROJ_NAME = #projName#,
<!-- 项目名称 -->
PLAN_DETAIL_ID = #planDetailId#
<!-- 计划明细id -->
PLAN_DETAIL_ID = #planDetailId#
<!-- 计划明细id -->
WHERE
WHERE
ID = #id#
ID = #id#
...
@@ -311,6 +323,8 @@
...
@@ -311,6 +323,8 @@
a.INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
a.INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
a.PRIMARY_ID as "primaryId",
<!-- 主表id -->
a.PRIMARY_ID as "primaryId",
<!-- 主表id -->
(a.PUR_QTY - a.RECEIVE_QTY) as "bcMaxReceiveQty",
(a.PUR_QTY - a.RECEIVE_QTY) as "bcMaxReceiveQty",
a.PROJ_CODE as "projCode",
<!-- 项目编码 -->
a.PROJ_NAME as "projName",
<!-- 项目名称 -->
b.STATUS as "status",
<!-- 状态 -->
b.STATUS as "status",
<!-- 状态 -->
b.CONTRACT_DATE as "contractDate",
<!-- 合同日期 -->
b.CONTRACT_DATE as "contractDate",
<!-- 合同日期 -->
b.CONTRACT_NO as "contractNo",
<!-- 合同号 -->
b.CONTRACT_NO as "contractNo",
<!-- 合同号 -->
...
@@ -417,5 +431,14 @@
...
@@ -417,5 +431,14 @@
WHERE ID = #id#
WHERE ID = #id#
</update>
</update>
<!-- 修改状态 -->
<update
id=
"updateStatus"
>
UPDATE ${hggpSchema}.HGCG002A
SET
STATUS = #status#,
<include
refid=
"updateRevise"
/>
WHERE PRIMARY_ID = #primaryId#
</update>
</sqlMap>
</sqlMap>
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG003.xml
View file @
283c28b5
...
@@ -43,6 +43,8 @@
...
@@ -43,6 +43,8 @@
STATUS as "status",
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
STATUS as "status",
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
SOURCE as "source",
<!-- 数据来源 根据采购数据来源小代码 目前默认0采购合同,1手工录入 -->
SOURCE as "source",
<!-- 数据来源 根据采购数据来源小代码 目前默认0采购合同,1手工录入 -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型明细 -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型明细 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
IS_INVOICING as "isInvoicing"
IS_INVOICING as "isInvoicing"
</sql>
</sql>
...
@@ -123,6 +125,12 @@
...
@@ -123,6 +125,12 @@
<isNotEmpty
prepend=
" AND "
property=
"source"
>
<isNotEmpty
prepend=
" AND "
property=
"source"
>
SOURCE = #source#
SOURCE = #source#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME LIKE CONCAT('%', #projName# ,'%')
</isNotEmpty>
</sql>
</sql>
<sql
id=
"idCondition"
>
<sql
id=
"idCondition"
>
...
@@ -210,6 +218,8 @@
...
@@ -210,6 +218,8 @@
STATUS,
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
STATUS,
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
INVENT_TYPE_DETAIL,
INVENT_TYPE_DETAIL,
IS_INVOICING,
IS_INVOICING,
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
SOURCE
<!-- 数据来源 根据采购数据来源小代码 目前默认0采购合同,1手工录入 -->
SOURCE
<!-- 数据来源 根据采购数据来源小代码 目前默认0采购合同,1手工录入 -->
) VALUES (
) VALUES (
#id#,#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#id#,#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
...
@@ -217,7 +227,7 @@
...
@@ -217,7 +227,7 @@
#planNo#, #contractNo#, #supCode#, #supName#, #purUserId#, #purUserName#,
#planNo#, #contractNo#, #supCode#, #supName#, #purUserId#, #purUserName#,
#inventType#, #inventCode#, #inventName#, #specId#, #spec#, #material#,
#inventType#, #inventCode#, #inventName#, #specId#, #spec#, #material#,
#unit#, #length#, #width#, #thick#, #receiveQty#, #receiveUnitWeight#,
#unit#, #length#, #width#, #thick#, #receiveQty#, #receiveUnitWeight#,
#receiveWeight#,#price#, #amount#, #status#,#inventTypeDetail#,#isInvoicing#, #source#
#receiveWeight#,#price#, #amount#, #status#,#inventTypeDetail#,#isInvoicing#,
#projCode#,#projName#,
#source#
)
)
<selectKey
resultClass=
"long"
keyProperty=
"id"
>
<selectKey
resultClass=
"long"
keyProperty=
"id"
>
SELECT MAX(ID) AS "id" FROM ${hggpSchema}.HGCG003
SELECT MAX(ID) AS "id" FROM ${hggpSchema}.HGCG003
...
...
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG003A.xml
View file @
283c28b5
...
@@ -113,6 +113,12 @@
...
@@ -113,6 +113,12 @@
<isNotEmpty
prepend=
" AND "
property=
"contractDetailId"
>
<isNotEmpty
prepend=
" AND "
property=
"contractDetailId"
>
CONTRACT_DETAIL_ID = #contractDetailId#
CONTRACT_DETAIL_ID = #contractDetailId#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME LIKE CONCAT('%', #projName# ,'%')
</isNotEmpty>
</sql>
</sql>
<sql
id=
"idCondition"
>
<sql
id=
"idCondition"
>
...
@@ -172,6 +178,8 @@
...
@@ -172,6 +178,8 @@
AMOUNT as "amount",
<!-- 金额(不含税金额) -->
AMOUNT as "amount",
<!-- 金额(不含税金额) -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
PRIMARY_ID as "primaryId",
<!-- 主表id -->
PRIMARY_ID as "primaryId",
<!-- 主表id -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
CONTRACT_DETAIL_ID as "contractDetailId",
<!-- 合同明细id -->
CONTRACT_DETAIL_ID as "contractDetailId",
<!-- 合同明细id -->
IS_INVOICING as "isInvoicing"
IS_INVOICING as "isInvoicing"
FROM ${hggpSchema}.HGCG003A WHERE 1=1
FROM ${hggpSchema}.HGCG003A WHERE 1=1
...
@@ -230,13 +238,15 @@
...
@@ -230,13 +238,15 @@
INVENT_TYPE_DETAIL,
<!-- 存货类型大类 -->
INVENT_TYPE_DETAIL,
<!-- 存货类型大类 -->
PRIMARY_ID,
<!-- 主表id -->
PRIMARY_ID,
<!-- 主表id -->
CONTRACT_DETAIL_ID,
<!-- 合同明细id -->
CONTRACT_DETAIL_ID,
<!-- 合同明细id -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
IS_INVOICING
IS_INVOICING
)
)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#,
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#,
#updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #receiveDate#, #receiveNo#, #planNo#, #contractNo#,
#updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #receiveDate#, #receiveNo#, #planNo#, #contractNo#,
#inventType#, #inventCode#, #inventName#, #specId#, #spec#, #material#, #unit#, #length#, #width#, #thick#,
#inventType#, #inventCode#, #inventName#, #specId#, #spec#, #material#, #unit#, #length#, #width#, #thick#,
#receiveQty#, #deliverQty#, #depositQty#, #receiveUnitWeight#, #receiveWeight#, #status#, #price#, #amount#,
#receiveQty#, #deliverQty#, #depositQty#, #receiveUnitWeight#, #receiveWeight#, #status#, #price#, #amount#,
#inventTypeDetail#, #primaryId#, #contractDetailId#,#isInvoicing#)
#inventTypeDetail#, #primaryId#, #contractDetailId#,#
projCode#,#projName#,#
isInvoicing#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
@@ -283,6 +293,8 @@
...
@@ -283,6 +293,8 @@
INVENT_TYPE_DETAIL = #inventTypeDetail#,
<!-- 存货类型大类 -->
INVENT_TYPE_DETAIL = #inventTypeDetail#,
<!-- 存货类型大类 -->
PRIMARY_ID = #primaryId#,
<!-- 主表id -->
PRIMARY_ID = #primaryId#,
<!-- 主表id -->
CONTRACT_DETAIL_ID = #contractDetailId#,
<!-- 合同明细id -->
CONTRACT_DETAIL_ID = #contractDetailId#,
<!-- 合同明细id -->
PROJ_CODE = #projCode#,
<!-- 项目编码 -->
PROJ_NAME = #projName#,
<!-- 项目名称 -->
IS_INVOICING = #isInvoicing#
IS_INVOICING = #isInvoicing#
WHERE
WHERE
ID = #id#
ID = #id#
...
@@ -376,6 +388,8 @@
...
@@ -376,6 +388,8 @@
a.INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
a.INVENT_TYPE_DETAIL as "inventTypeDetail",
<!-- 存货类型大类 -->
a.PRIMARY_ID as "primaryId",
<!-- 主表id -->
a.PRIMARY_ID as "primaryId",
<!-- 主表id -->
a.CONTRACT_DETAIL_ID as "contractDetailId",
<!-- 合同明细id -->
a.CONTRACT_DETAIL_ID as "contractDetailId",
<!-- 合同明细id -->
a.PROJ_CODE as "projCode",
<!-- 项目编码 -->
a.PROJ_NAME as "projName",
<!-- 项目名称 -->
b.STATUS as "status",
<!-- 状态 -->
b.STATUS as "status",
<!-- 状态 -->
b.SUP_CODE as "supCode",
<!-- 供应商编码 -->
b.SUP_CODE as "supCode",
<!-- 供应商编码 -->
b.SUP_NAME as "supName",
<!-- 供应商名称 -->
b.SUP_NAME as "supName",
<!-- 供应商名称 -->
...
...
src/main/java/com/baosight/hggp/hg/cg/tools/HGCGTools.java
View file @
283c28b5
...
@@ -578,6 +578,21 @@ public class HGCGTools {
...
@@ -578,6 +578,21 @@ public class HGCGTools {
DaoUtils
.
update
(
HGSqlConstant
.
HgCg002B
.
UPDATE_CHECK
,
paramMap
);
DaoUtils
.
update
(
HGSqlConstant
.
HgCg002B
.
UPDATE_CHECK
,
paramMap
);
}
}
/**
* 修改状态
*
* @param primaryId
* @param status
*/
public
static
void
updateStatus
(
Long
primaryId
,
Integer
status
)
{
AssertUtils
.
isNull
(
primaryId
,
"合同id不能为空!"
);
AssertUtils
.
isNull
(
status
,
"状态不能为空!"
);
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"primaryId"
,
primaryId
);
paramMap
.
put
(
"status"
,
status
);
DaoUtils
.
update
(
HGSqlConstant
.
HgCg002B
.
UPDATE_STATUS
,
paramMap
);
}
}
}
/**
/**
...
...
src/main/java/com/baosight/hggp/hg/constant/HGSqlConstant.java
View file @
283c28b5
...
@@ -81,6 +81,8 @@ public class HGSqlConstant {
...
@@ -81,6 +81,8 @@ public class HGSqlConstant {
private
static
final
String
MODULE_NAME
=
"HGCG002A."
;
private
static
final
String
MODULE_NAME
=
"HGCG002A."
;
// 锁
// 锁
public
static
final
String
LOCK
=
MODULE_NAME
+
"lock"
;
public
static
final
String
LOCK
=
MODULE_NAME
+
"lock"
;
// 修改状态
public
static
final
String
UPDATE_STATUS
=
MODULE_NAME
+
"updateStatus"
;
// 修改收货数量
// 修改收货数量
public
static
final
String
UPDATE_RECEIVE
=
MODULE_NAME
+
"updateReceive"
;
public
static
final
String
UPDATE_RECEIVE
=
MODULE_NAME
+
"updateReceive"
;
// 入库质检修改收货数量
// 入库质检修改收货数量
...
...
src/main/webapp/HG/CG/HGCG001.jsp
View file @
283c28b5
...
@@ -34,6 +34,8 @@
...
@@ -34,6 +34,8 @@
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"80"
align=
"center"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"80"
align=
"center"
/>
<EF:EFColumn
ename=
"companyCode"
cname=
"公司编码"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyCode"
cname=
"公司编码"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"planDate"
cname=
"计划日期"
enable=
"false"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"planDate"
cname=
"计划日期"
enable=
"false"
width=
"100"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
/>
<EF:EFColumn
ename=
"planNo"
cname=
"计划单号"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"planNo"
cname=
"计划单号"
enable=
"false"
width=
"120"
align=
"center"
/>
...
...
src/main/webapp/HG/CG/HGCG002.jsp
View file @
283c28b5
...
@@ -39,6 +39,8 @@
...
@@ -39,6 +39,8 @@
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"80"
align=
"center"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"80"
align=
"center"
/>
<EF:EFColumn
ename=
"companyCode"
cname=
"公司编码"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyCode"
cname=
"公司编码"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"contractDate"
cname=
"合同日期"
enable=
"false"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"contractDate"
cname=
"合同日期"
enable=
"false"
width=
"100"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
/>
<EF:EFColumn
ename=
"contractNo"
cname=
"合同号"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"contractNo"
cname=
"合同号"
enable=
"false"
width=
"120"
align=
"center"
/>
...
...
src/main/webapp/HG/CG/HGCG003.jsp
View file @
283c28b5
...
@@ -55,6 +55,8 @@
...
@@ -55,6 +55,8 @@
<EF:EFOptions
blockId=
"roleCompany"
textField=
"companyName"
valueField=
"companyCode"
/>
<EF:EFOptions
blockId=
"roleCompany"
textField=
"companyName"
valueField=
"companyCode"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"receiveDate"
cname=
"收货日期"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"receiveDate"
cname=
"收货日期"
width=
"100"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
<EF:EFColumn
ename=
"receiveNo"
cname=
"收货单号"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"receiveNo"
cname=
"收货单号"
enable=
"false"
width=
"120"
align=
"center"
/>
...
...
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