Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
80be0ed2
Commit
80be0ed2
authored
Apr 28, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com/platform/hp-smart
into dev-ly
parents
e4184e50
0c775e13
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
84 additions
and
24 deletions
+84
-24
HPCG003.java
src/main/java/com/baosight/hpjx/hp/cg/domain/HPCG003.java
+4
-4
HPCG003A.java
src/main/java/com/baosight/hpjx/hp/cg/domain/HPCG003A.java
+4
-4
ServiceHPCG002A.java
...java/com/baosight/hpjx/hp/cg/service/ServiceHPCG002A.java
+51
-3
HPCG002.xml
src/main/java/com/baosight/hpjx/hp/cg/sql/HPCG002.xml
+10
-1
HPCG002A.xml
src/main/java/com/baosight/hpjx/hp/cg/sql/HPCG002A.xml
+6
-4
HPConstant.java
src/main/java/com/baosight/hpjx/hp/constant/HPConstant.java
+2
-0
HPCG002.jsp
src/main/webapp/HP/CG/HPCG002.jsp
+4
-5
HPCG002A.jsp
src/main/webapp/HP/CG/HPCG002A.jsp
+3
-3
No files found.
src/main/java/com/baosight/hpjx/hp/cg/domain/HPCG003.java
View file @
80be0ed2
...
@@ -68,7 +68,7 @@ public class HPCG003 extends DaoEPBase {
...
@@ -68,7 +68,7 @@ public class HPCG003 extends DaoEPBase {
private
String
updatedBy
=
" "
;
/* 修改人*/
private
String
updatedBy
=
" "
;
/* 修改人*/
private
String
updatedName
=
" "
;
/* 修改人名称*/
private
String
updatedName
=
" "
;
/* 修改人名称*/
private
String
updatedTime
=
" "
;
/* 修改时间*/
private
String
updatedTime
=
" "
;
/* 修改时间*/
private
Boolean
deleteFlag
;
/* 是否删除 0-否1-是*/
private
Integer
deleteFlag
=
0
;
/* 是否删除 0-否1-是*/
private
String
proOrderDate
=
" "
;
/* 采购订单日期*/
private
String
proOrderDate
=
" "
;
/* 采购订单日期*/
private
String
proOrderNo
=
" "
;
/* 采购订单单号*/
private
String
proOrderNo
=
" "
;
/* 采购订单单号*/
private
String
proPlanNo
=
" "
;
/* 采购计划单号*/
private
String
proPlanNo
=
" "
;
/* 采购计划单号*/
...
@@ -300,7 +300,7 @@ public class HPCG003 extends DaoEPBase {
...
@@ -300,7 +300,7 @@ public class HPCG003 extends DaoEPBase {
* get the deleteFlag - 是否删除 0-否1-是.
* get the deleteFlag - 是否删除 0-否1-是.
* @return the deleteFlag
* @return the deleteFlag
*/
*/
public
Boolean
getDeleteFlag
()
{
public
Integer
getDeleteFlag
()
{
return
this
.
deleteFlag
;
return
this
.
deleteFlag
;
}
}
...
@@ -309,7 +309,7 @@ public class HPCG003 extends DaoEPBase {
...
@@ -309,7 +309,7 @@ public class HPCG003 extends DaoEPBase {
*
*
* @param deleteFlag - 是否删除 0-否1-是
* @param deleteFlag - 是否删除 0-否1-是
*/
*/
public
void
setDeleteFlag
(
Boolean
deleteFlag
)
{
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
this
.
deleteFlag
=
deleteFlag
;
}
}
/**
/**
...
@@ -409,7 +409,7 @@ public class HPCG003 extends DaoEPBase {
...
@@ -409,7 +409,7 @@ public class HPCG003 extends DaoEPBase {
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setDeleteFlag
(
NumberUtils
.
to
Boolean
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setDeleteFlag
(
NumberUtils
.
to
Integer
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setProOrderDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRO_ORDER_DATE
)),
proOrderDate
));
setProOrderDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRO_ORDER_DATE
)),
proOrderDate
));
setProOrderNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRO_ORDER_NO
)),
proOrderNo
));
setProOrderNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRO_ORDER_NO
)),
proOrderNo
));
setProPlanNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRO_PLAN_NO
)),
proPlanNo
));
setProPlanNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRO_PLAN_NO
)),
proPlanNo
));
...
...
src/main/java/com/baosight/hpjx/hp/cg/domain/HPCG003A.java
View file @
80be0ed2
...
@@ -89,7 +89,7 @@ public class HPCG003A extends DaoEPBase {
...
@@ -89,7 +89,7 @@ public class HPCG003A extends DaoEPBase {
private
String
updatedBy
=
" "
;
/* 修改人*/
private
String
updatedBy
=
" "
;
/* 修改人*/
private
String
updatedName
=
" "
;
/* 修改人名称*/
private
String
updatedName
=
" "
;
/* 修改人名称*/
private
String
updatedTime
=
" "
;
/* 修改时间*/
private
String
updatedTime
=
" "
;
/* 修改时间*/
private
Boolean
deleteFlag
;
/* 是否删除 0-否1-是*/
private
Integer
deleteFlag
=
0
;
/* 是否删除 0-否1-是*/
private
String
whCode
=
" "
;
/* 仓库编码*/
private
String
whCode
=
" "
;
/* 仓库编码*/
private
String
whName
=
" "
;
/* 仓库名称*/
private
String
whName
=
" "
;
/* 仓库名称*/
private
String
inventType
=
" "
;
/* 存货类型*/
private
String
inventType
=
" "
;
/* 存货类型*/
...
@@ -386,7 +386,7 @@ public class HPCG003A extends DaoEPBase {
...
@@ -386,7 +386,7 @@ public class HPCG003A extends DaoEPBase {
* get the deleteFlag - 是否删除 0-否1-是.
* get the deleteFlag - 是否删除 0-否1-是.
* @return the deleteFlag
* @return the deleteFlag
*/
*/
public
Boolean
getDeleteFlag
()
{
public
Integer
getDeleteFlag
()
{
return
this
.
deleteFlag
;
return
this
.
deleteFlag
;
}
}
...
@@ -395,7 +395,7 @@ public class HPCG003A extends DaoEPBase {
...
@@ -395,7 +395,7 @@ public class HPCG003A extends DaoEPBase {
*
*
* @param deleteFlag - 是否删除 0-否1-是
* @param deleteFlag - 是否删除 0-否1-是
*/
*/
public
void
setDeleteFlag
(
Boolean
deleteFlag
)
{
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
this
.
deleteFlag
=
deleteFlag
;
}
}
/**
/**
...
@@ -655,7 +655,7 @@ public class HPCG003A extends DaoEPBase {
...
@@ -655,7 +655,7 @@ public class HPCG003A extends DaoEPBase {
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setDeleteFlag
(
NumberUtils
.
to
Boolean
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setDeleteFlag
(
NumberUtils
.
to
Integer
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setWhCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WH_CODE
)),
whCode
));
setWhCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WH_CODE
)),
whCode
));
setWhName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WH_NAME
)),
whName
));
setWhName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WH_NAME
)),
whName
));
setInventType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE
)),
inventType
));
setInventType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE
)),
inventType
));
...
...
src/main/java/com/baosight/hpjx/hp/cg/service/ServiceHPCG002A.java
View file @
80be0ed2
...
@@ -3,16 +3,17 @@ package com.baosight.hpjx.hp.cg.service;
...
@@ -3,16 +3,17 @@ package com.baosight.hpjx.hp.cg.service;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.common.InventTypeEnum
;
import
com.baosight.hpjx.common.InventTypeEnum
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
import
com.baosight.hpjx.hp.cg.domain.HPCG002
;
import
com.baosight.hpjx.hp.cg.domain.*
;
import
com.baosight.hpjx.hp.cg.domain.HPCG002A
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.kc.domain.HPKC001
;
import
com.baosight.hpjx.hp.kc.domain.HPKC001
;
import
com.baosight.hpjx.hp.xs.domain.HPXS006
;
import
com.baosight.hpjx.hp.xs.domain.HPXS006
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.StringUtil
;
import
com.baosight.hpjx.util.contants.ACConstants
;
import
com.baosight.hpjx.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
@@ -22,6 +23,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
...
@@ -22,6 +23,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
/**
*
*
...
@@ -150,6 +152,7 @@ public class ServiceHPCG002A extends ServiceBase {
...
@@ -150,6 +152,7 @@ public class ServiceHPCG002A extends ServiceBase {
EiInfo
inInfo
=
new
EiInfo
();
EiInfo
inInfo
=
new
EiInfo
();
HPCG002
hpcg002
=
new
HPCG002
();
HPCG002
hpcg002
=
new
HPCG002
();
try
{
try
{
//更新选中数据提交状态
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hpcg002A
.
fromMap
(
map
);
hpcg002A
.
fromMap
(
map
);
...
@@ -158,21 +161,66 @@ public class ServiceHPCG002A extends ServiceBase {
...
@@ -158,21 +161,66 @@ public class ServiceHPCG002A extends ServiceBase {
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HPCG002A
.
FIELD_PARENT_ID
,
hpcg002A
.
getParentId
());
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HPCG002A
.
FIELD_PARENT_ID
,
hpcg002A
.
getParentId
());
DaoUtils
.
update
(
HPCG002A
.
CHECK
,
hpcg002A
.
toMap
());
DaoUtils
.
update
(
HPCG002A
.
CHECK
,
hpcg002A
.
toMap
());
}
}
//统计提交状态
EiInfo
outInfo
=
super
.
query
(
inInfo
,
HPCG002A
.
QUERY
,
new
HPCG002A
());
EiInfo
outInfo
=
super
.
query
(
inInfo
,
HPCG002A
.
QUERY
,
new
HPCG002A
());
EiBlock
outBlock
=
outInfo
.
getBlock
(
EiConstant
.
resultBlock
);
EiBlock
outBlock
=
outInfo
.
getBlock
(
EiConstant
.
resultBlock
);
String
inventType
=
""
;
Integer
num
=
0
;
Integer
num
=
0
;
for
(
int
i
=
0
;
i
<
outBlock
.
getRowCount
();
i
++)
{
for
(
int
i
=
0
;
i
<
outBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
outBlock
.
getRow
(
i
);
Map
<?,
?>
map
=
outBlock
.
getRow
(
i
);
hpcg002A
.
fromMap
(
map
);
hpcg002A
.
fromMap
(
map
);
inventType
=
hpcg002A
.
getInventType
();
if
(
hpcg002A
.
getProApplyStatus
()==
1
){
if
(
hpcg002A
.
getProApplyStatus
()==
1
){
num
=
num
+
1
;
num
=
num
+
1
;
}
}
DaoUtils
.
update
(
HPCG002A
.
CHECK
,
hpcg002A
.
toMap
());
}
}
if
(
num
==
outBlock
.
getRowCount
()&&
hpcg002
.
getProPlanStatus
()!=
2
){
if
(
num
==
outBlock
.
getRowCount
()&&
hpcg002
.
getProPlanStatus
()!=
2
){
//全提交更新状态
hpcg002
.
setProPlanStatus
(
2
);
hpcg002
.
setProPlanStatus
(
2
);
DaoUtils
.
update
(
HPCG002
.
CHECK
,
hpcg002
.
toMap
());
DaoUtils
.
update
(
HPCG002
.
CHECK
,
hpcg002
.
toMap
());
//全部提交后,生成采购订单
List
<
Map
<
Object
,
Object
>>
list
=
outBlock
.
getRows
();
Map
<
Object
,
List
<
Map
>>
listMap
=
list
.
stream
().
collect
(
Collectors
.
groupingBy
(
map
->
map
.
get
(
HPCG002A
.
FIELD_CUST_CODE
)));
//获取采购计划
List
<
HPCG002
>
hpcg002s
=
this
.
dao
.
query
(
HPCG002
.
QUERY
,
new
HashMap
<
String
,
Object
>(){{
put
(
HPCG002
.
FIELD_ID
,
hpcg002
.
getId
());
}});
//生成采购订单详情
for
(
Object
str:
listMap
.
keySet
())
{
HPCG003
hpcg003
=
new
HPCG003
();
hpcg003
.
toMap
();
hpcg003
.
setProOrderDate
(
StringUtil
.
removeHorizontalLine
(
DateUtils
.
date
()));
hpcg003
.
setCustCode
(
str
.
toString
());
hpcg003
.
setInventType
(
inventType
);
hpcg003
.
setProPlanNo
(
hpcg002s
.
get
(
0
).
getProPlanNo
());
//生成采购订单单号
hpcg003
.
setProPlanNo
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
PRO_ORDER_NO
));
//添加采购订单
DaoUtils
.
insert
(
HPCG003
.
INSERT
,
hpcg003
);
List
<
HPCG003
>
hpcg003s
=
this
.
dao
.
query
(
HPCG003
.
QUERY
,
new
HashMap
<
String
,
Object
>(){{
put
(
HPCG003
.
FIELD_INVENT_TYPE
,
hpcg003
.
getInventType
());
put
(
HPCG003
.
FIELD_PRO_ORDER_DATE
,
hpcg003
.
getProOrderDate
());
put
(
HPCG003
.
FIELD_PRO_ORDER_NO
,
hpcg003
.
getProOrderNo
());
put
(
HPCG003
.
FIELD_PRO_PLAN_NO
,
hpcg003
.
getProPlanNo
());
put
(
HPCG003
.
COL_CUST_CODE
,
hpcg003
.
getCustCode
());
}});
List
<
Map
>
hpcg002aList
=
listMap
.
get
(
str
);
for
(
Map
value
:
hpcg002aList
)
{
HPCG002A
hpcg002a
=
new
HPCG002A
();
hpcg002a
.
fromMap
(
value
);
//添加采购订单详情
HPCG003A
hpcg003a
=
new
HPCG003A
();
hpcg003a
.
fromMap
(
value
);
hpcg003a
.
setParentId
(
hpcg003s
.
get
(
0
).
getId
());
hpcg003a
.
setId
(
0L
);
hpcg003a
.
setProAmount
(
hpcg002a
.
getPlanAmount
());
hpcg003a
.
setProWeight
(
hpcg002a
.
getPlanWeight
());
DaoUtils
.
insert
(
HPCG003A
.
INSERT
,
hpcg003a
);
}
}
}
else
if
(
num
!=
outBlock
.
getRowCount
()&&
hpcg002
.
getProPlanStatus
()!=
1
){
}
else
if
(
num
!=
outBlock
.
getRowCount
()&&
hpcg002
.
getProPlanStatus
()!=
1
){
//部分交更新状态
hpcg002
.
setProPlanStatus
(
1
);
hpcg002
.
setProPlanStatus
(
1
);
DaoUtils
.
update
(
HPCG002
.
CHECK
,
hpcg002
.
toMap
());
DaoUtils
.
update
(
HPCG002
.
CHECK
,
hpcg002
.
toMap
());
}
}
...
...
src/main/java/com/baosight/hpjx/hp/cg/sql/HPCG002.xml
View file @
80be0ed2
...
@@ -31,6 +31,9 @@
...
@@ -31,6 +31,9 @@
</sql>
</sql>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
COMPANY_CODE = #companyCode#
</isNotEmpty>
</isNotEmpty>
...
@@ -52,6 +55,12 @@
...
@@ -52,6 +55,12 @@
<isNotEmpty
prepend=
" AND "
property=
"proPlanStatus"
>
<isNotEmpty
prepend=
" AND "
property=
"proPlanStatus"
>
PRO_PLAN_STATUS = #proPlanStatus#
PRO_PLAN_STATUS = #proPlanStatus#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdDateFrom"
>
PRO_PLAN_DATE
>
= #createdDateFrom#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdDateTo"
>
PRO_PLAN_DATE
<
= #createdDateTo#
</isNotEmpty>
</sql>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
parameterClass=
"java.util.HashMap"
...
@@ -79,7 +88,7 @@
...
@@ -79,7 +88,7 @@
$orderBy$
$orderBy$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
ID a
sc
CREATED_TIME de
sc
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
...
...
src/main/java/com/baosight/hpjx/hp/cg/sql/HPCG002A.xml
View file @
80be0ed2
...
@@ -134,13 +134,15 @@
...
@@ -134,13 +134,15 @@
A.PARENT_ID as "parentId",
<!-- 父级ID -->
A.PARENT_ID as "parentId",
<!-- 父级ID -->
ifnull(B.AMOUNT,0) as "invAmount",
<!-- 库存数量 -->
ifnull(B.AMOUNT,0) as "invAmount",
<!-- 库存数量 -->
ifnull(B.WEIGHT,0) as "invWeight",
<!-- 库存重量 -->
ifnull(B.WEIGHT,0) as "invWeight",
<!-- 库存重量 -->
case when A.APPLY_AMOUNT > ifnull(B.AMOUNT,0)
A.PLAN_AMOUNT as "planAmount",
<!-- 计划数量 -->
A.PLAN_WEIGHT as "planWeight",
<!-- 计划重量 -->
<!-- case when A.APPLY_AMOUNT > ifnull(B.AMOUNT,0)
then A.APPLY_AMOUNT - ifnull(B.AMOUNT,0)
then A.APPLY_AMOUNT - ifnull(B.AMOUNT,0)
else A.APPLY_AMOUNT end as "planAmount",
<!-- 计划数量 -->
else A.APPLY_AMOUNT end as "planAmount",
<!– 计划数量 –>
case when A.PLAN_WEIGHT != 0 then A.PLAN_WEIGHT
case when A.PLAN_WEIGHT != 0 then A.PLAN_WEIGHT
when A.PLAN_WEIGHT != 0 and A.APPLY_AMOUNT > ifnull(B.AMOUNT,0)
when A.PLAN_WEIGHT != 0 and A.APPLY_AMOUNT > ifnull(B.AMOUNT,0)
then (A.APPLY_AMOUNT - ifnull(B.AMOUNT,0))*A.APPLY_UNIT_WEIGHT
then (A.APPLY_AMOUNT - ifnull(B.AMOUNT,0))*A.APPLY_UNIT_WEIGHT
else A.APPLY_WEIGHT end as "planWeight",
<!-- 计划重量
-->
else A.APPLY_WEIGHT end as "planWeight",
<!– 计划重量 –>
-->
C.PRO_PLAN_STATUS as "proPlanStatus"
<!-- 采购计划提交状态 0-未提交 1-部分提交 2-全部提交 -->
C.PRO_PLAN_STATUS as "proPlanStatus"
<!-- 采购计划提交状态 0-未提交 1-部分提交 2-全部提交 -->
FROM ${hpjxSchema}.T_HPCG002A A
FROM ${hpjxSchema}.T_HPCG002A A
LEFT JOIN ${hpjxSchema}.T_HPKC010 B ON A.WH_CODE = B.WH_CODE AND A.INVENT_CODE = B.INVENT_CODE AND A.INVENT_RECORD_ID = B.INVENT_RECORD_ID
LEFT JOIN ${hpjxSchema}.T_HPKC010 B ON A.WH_CODE = B.WH_CODE AND A.INVENT_CODE = B.INVENT_CODE AND A.INVENT_RECORD_ID = B.INVENT_RECORD_ID
...
@@ -154,7 +156,7 @@
...
@@ -154,7 +156,7 @@
$orderBy$
$orderBy$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
ID a
sc
A.CREATED_TIME de
sc
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
...
...
src/main/java/com/baosight/hpjx/hp/constant/HPConstant.java
View file @
80be0ed2
...
@@ -70,6 +70,8 @@ public class HPConstant {
...
@@ -70,6 +70,8 @@ public class HPConstant {
public
static
final
String
PRO_APPLY_NO
=
"PRO_APPLY_NO"
;
public
static
final
String
PRO_APPLY_NO
=
"PRO_APPLY_NO"
;
//采购计划单号
//采购计划单号
public
static
final
String
PRO_PLAN_NO
=
"PRO_PLAN_NO"
;
public
static
final
String
PRO_PLAN_NO
=
"PRO_PLAN_NO"
;
//采购订单单号
public
static
final
String
PRO_ORDER_NO
=
"PRO_ORDER_NO"
;
}
}
/**
/**
...
...
src/main/webapp/HP/CG/HPCG002.jsp
View file @
80be0ed2
...
@@ -37,14 +37,13 @@
...
@@ -37,14 +37,13 @@
<EF:EFColumn ename="id" primaryKey="true" cname="主键" hidden="true"/>
<EF:EFColumn ename="id" primaryKey="true" cname="主键" hidden="true"/>
<EF:EFColumn ename="companyCode" cname="公司编码" hidden="true"/>
<EF:EFColumn ename="companyCode" cname="公司编码" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="120" align="center"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="120" align="center"/>
<EF:EFColumn ename="proPlanDate" cname="采购计划日期" width="100" align="center" editType="date" readonly="
fals
e"
<EF:EFColumn ename="proPlanDate" cname="采购计划日期" width="100" align="center" editType="date" readonly="
tru
e"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']"
required="true"
/>
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" />
<EF:EFColumn ename="proPlanNo" cname="采购计划单号" enable="false" width="140" align="center"/>
<EF:EFColumn ename="proPlanNo" cname="采购计划单号" enable="false" width="140" align="center"/>
<EF:EFComboColumn ename="inventType" cname="存货类型" width="80" align="center" required="true"
<EF:EFComboColumn ename="inventType" cname="存货类型" width="80" align="center" readonly="true">
readonly="true">
<EF:EFCodeOption codeName="hpjx.hpkc.inventType" condition="ITEM_CODE IN ('1', '2')"/>
<EF:EFCodeOption codeName="hpjx.hpkc.inventType" condition="ITEM_CODE IN ('1', '2')"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFComboColumn ename="proPlanStatus" cname="提交状态" width="80" align="center" readonly="true"
required="true"
defaultValue="0">
<EF:EFComboColumn ename="proPlanStatus" cname="提交状态" width="80" align="center" readonly="true" defaultValue="0">
<EF:EFCodeOption codeName="hpjx.hpcg.proPlanStatus"/>
<EF:EFCodeOption codeName="hpjx.hpcg.proPlanStatus"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<%-- <EF:EFColumn cname="创建人" ename="createdName" align="center" width="150" readonly="true" required="false" enable="false"/>
<%-- <EF:EFColumn cname="创建人" ename="createdName" align="center" width="150" readonly="true" required="false" enable="false"/>
...
...
src/main/webapp/HP/CG/HPCG002A.jsp
View file @
80be0ed2
...
@@ -16,10 +16,11 @@
...
@@ -16,10 +16,11 @@
<EF:EFRegion id="inqu" title="查询条件">
<EF:EFRegion id="inqu" title="查询条件">
<div class="row">
<div class="row">
<EF:EFInput cname="采购申请单号" ename="inqu_status-0-proApplyNo" colWidth="3"/>
<EF:EFInput cname="采购申请单号" ename="inqu_status-0-proApplyNo" colWidth="3"/>
<EF:EFSelect cname="供应商名称" ename="inqu_status-0-
repCustomId
" colWidth="3" filter="contains" defultValue="">
<EF:EFSelect cname="供应商名称" ename="inqu_status-0-
custCode
" colWidth="3" filter="contains" defultValue="">
<EF:EFOption label="全部" value=""/>
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="supplier_record_block_id" textField="textField" valueField="valueField"/>
<EF:EFOptions blockId="supplier_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFInput cname="父ID" ename="inqu_status-0-parentId" colWidth="3" type="hidden"/>
</div>
</div>
</EF:EFRegion>
</EF:EFRegion>
...
@@ -42,8 +43,7 @@
...
@@ -42,8 +43,7 @@
filter="contains" readonly="true">
filter="contains" readonly="true">
<EF:EFOptions blockId="factory_record_block_id" valueField="valueField" textField="textField"/>
<EF:EFOptions blockId="factory_record_block_id" valueField="valueField" textField="textField"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFComboColumn ename="inventType" cname="存货类型" width="80" align="center" required="true"
<EF:EFComboColumn ename="inventType" cname="存货类型" width="80" align="center" readonly="true">
readonly="true">
<EF:EFCodeOption codeName="hpjx.hpkc.inventType" condition="ITEM_CODE IN ('1', '2')"/>
<EF:EFCodeOption codeName="hpjx.hpkc.inventType" condition="ITEM_CODE IN ('1', '2')"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="whCode" cname="仓库名称" width="120" align="center" readonly="true"/>
<EF:EFColumn ename="whCode" cname="仓库名称" width="120" align="center" readonly="true"/>
...
...
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