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
575853ed
Commit
575853ed
authored
Apr 24, 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
30498842
e0912831
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
15 deletions
+18
-15
CutterbarWarning.java
...m/baosight/hpjx/equipment/hp/domain/CutterbarWarning.java
+1
-1
ServiceHPKC004.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004.java
+5
-3
ServiceHPKC013.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC013.java
+3
-3
HPKCTools.java
src/main/java/com/baosight/hpjx/hp/kc/tools/HPKCTools.java
+2
-1
HPMT002.xml
src/main/java/com/baosight/hpjx/hp/mt/sql/HPMT002.xml
+4
-4
HPMT003.xml
src/main/java/com/baosight/hpjx/hp/mt/sql/HPMT003.xml
+3
-3
No files found.
src/main/java/com/baosight/hpjx/equipment/hp/domain/CutterbarWarning.java
View file @
575853ed
...
...
@@ -21,7 +21,7 @@ public class CutterbarWarning {
private
String
errorCode
;
/**
* 异常
登记
* 异常
等级
*/
private
String
prio
;
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004.java
View file @
575853ed
...
...
@@ -125,13 +125,15 @@ public class ServiceHPKC004 extends ServiceBase {
newKc004
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
YES_1
);
DaoUtils
.
insert
(
HPKC004
.
INSERT
,
newKc004
);
// 修改库存
if
(
hpkc010
!=
null
)
if
(
hpkc010
!=
null
)
{
HPKCTools
.
updateStock
(
dbKc004
.
getWhCode
(),
hpkc010
.
getInventRecordId
(),
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
().
multiply
(
new
BigDecimal
(
1000
)
),
hpkc010
.
getFactoryCode
());
else
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
(
),
hpkc010
.
getFactoryCode
());
}
else
{
HPKCTools
.
updateProdStock
(
dbKc004
.
getWhCode
(),
dbKc004
.
getProdNo
(),
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
(),
hpkc011
.
getFactoryCode
());
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据删除成功!"
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC013.java
View file @
575853ed
...
...
@@ -93,7 +93,7 @@ public class ServiceHPKC013 extends ServiceBase {
HPKC013
fKc013
=
new
HPKC013
();
fKc013
.
fromMap
(
resultRows
.
get
(
i
));
HPKC013
dbKc013
=
mapKc013
.
get
(
fKc013
.
getReturnNo
());
if
(!
f
Kc013
.
getSubInventCode
().
equals
(
" "
))
{
if
(!
db
Kc013
.
getSubInventCode
().
equals
(
" "
))
{
hpkc011
=
HPKCTools
.
HpKc011
.
listById
(
dbKc013
.
getKcId
());
}
else
{
hpkc010
=
HPKCTools
.
HpKc010
.
listById
(
dbKc013
.
getKcId
());
...
...
@@ -104,7 +104,7 @@ public class ServiceHPKC013 extends ServiceBase {
// 修改库存
if
(
hpkc010
!=
null
)
{
HPKCTools
.
updateStock
(
dbKc013
.
getWhCode
(),
hpkc010
.
getInventRecordId
(),
dbKc013
.
getAmount
(),
dbKc013
.
getWeight
()
.
multiply
(
new
BigDecimal
(
1000
))
,
hpkc010
.
getFactoryCode
());
dbKc013
.
getAmount
(),
dbKc013
.
getWeight
(),
hpkc010
.
getFactoryCode
());
}
else
{
HPKCTools
.
updateProdStock
(
dbKc013
.
getWhCode
(),
dbKc013
.
getProdNo
(),
dbKc013
.
getAmount
(),
dbKc013
.
getWeight
(),
hpkc011
.
getFactoryCode
());
...
...
@@ -164,7 +164,7 @@ public class ServiceHPKC013 extends ServiceBase {
// 修改库存
if
(
hpkc010
!=
null
)
{
HPKCTools
.
updateStock
(
dbKc013
.
getWhCode
(),
hpkc010
.
getInventRecordId
(),
newKc013
.
getAmount
(),
newKc013
.
getWeight
()
.
multiply
(
new
BigDecimal
(
1000
))
,
hpkc010
.
getFactoryCode
());
newKc013
.
getAmount
(),
newKc013
.
getWeight
(),
hpkc010
.
getFactoryCode
());
}
else
{
HPKCTools
.
updateProdStock
(
dbKc013
.
getWhCode
(),
dbKc013
.
getProdNo
(),
newKc013
.
getAmount
(),
newKc013
.
getWeight
(),
hpkc011
.
getFactoryCode
());
...
...
src/main/java/com/baosight/hpjx/hp/kc/tools/HPKCTools.java
View file @
575853ed
...
...
@@ -4,6 +4,7 @@ import com.baosight.hpjx.core.dao.DaoBase;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.constant.HPSqlConstant
;
import
com.baosight.hpjx.hp.kc.domain.*
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
...
...
@@ -441,7 +442,7 @@ public class HPKCTools {
* @param weight
*/
public
static
void
updateStock
(
String
whCode
,
Long
inventRecordId
,
BigDecimal
amount
,
BigDecimal
weight
,
String
factCode
)
{
updateStock
(
whCode
,
inventRecordId
,
amount
,
BigDecimal
.
ZERO
,
weight
,
factCode
);
updateStock
(
whCode
,
inventRecordId
,
amount
,
HPPZTools
.
HpPz006
.
calcUnitWeight
(
inventRecordId
)
,
weight
,
factCode
);
}
/**
...
...
src/main/java/com/baosight/hpjx/hp/mt/sql/HPMT002.xml
View file @
575853ed
...
...
@@ -3,7 +3,7 @@
<sqlMap
namespace=
"HPMT002"
>
<select
id=
"pmProject"
resultClass=
"java.util.HashMap"
>
SELECT * FROM (
<!-- SELECT * FROM (-->
SELECT
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
...
...
@@ -43,12 +43,12 @@
PROJ_NAME LIKE CONCAT('%', #projName#, '%')
</isNotEmpty>
order by STATUS,PLAN_COMPLETION_DATE
) AS A WHERE actualCompletionNum!=num
<!-- ) AS A WHERE actualCompletionNum!=num-->
limit #offset#, #pageSize#
</select>
<select
id=
"pmProjectCount"
resultClass=
"java.util.HashMap"
>
SELECT * FROM (
<!-- SELECT * FROM (-->
SELECT
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
...
...
@@ -88,7 +88,7 @@
PROJ_NAME LIKE CONCAT('%', #projName#, '%')
</isNotEmpty>
order by STATUS,PLAN_COMPLETION_DATE
) AS A WHERE actualCompletionNum!=num
<!-- ) AS A WHERE actualCompletionNum!=num-->
</select>
<select
id=
"pmQuality"
resultClass=
"java.util.HashMap"
>
...
...
src/main/java/com/baosight/hpjx/hp/mt/sql/HPMT003.xml
View file @
575853ed
...
...
@@ -247,10 +247,10 @@
a.PROJ_NAME,
a.DELIVERY_DATE,
concat(left(max(a.PLAN_COMPLETION_DATE),4),'/',substring(max(a.PLAN_COMPLETION_DATE),5,2),'/',right(max(a.PLAN_COMPLETION_DATE),2)) as JHDATE,
concat(format(ifnull(sum(b.NUM*b.UNIT_WT ),0),2),'吨') as JHCL,
concat(format(ifnull(sum(b.NUM*b.UNIT_WT
/1000
),0),2),'吨') as JHCL,
concat(format(ifnull(sum(c.WEIGHT),0),2),'吨') as SJCL,
concat(format((ifnull( sum( c.
WEIGHT ), 0 ) / ifnull( sum( b.NUM*b.UNIT_WT
), 0 ) * 100),2),'%') as SCJD,
concat(format((ifnull( sum( d.WEIGHT ), 0 ) / ifnull( sum( b.NUM*b.UNIT_WT ), 0 ) * 100),2),'%') as FHJD
concat(format((ifnull( sum( c.
AMOUNT*b.UNIT_WT/1000 ), 0 ) / ifnull( sum( b.NUM*b.UNIT_WT/1000
), 0 ) * 100),2),'%') as SCJD,
concat(format((ifnull( sum( d.
AMOUNT*d.UNIT_
WEIGHT ), 0 ) / ifnull( sum( b.NUM*b.UNIT_WT ), 0 ) * 100),2),'%') as FHJD
from hpjx.T_HPSC003 a
join hpjx.T_HPSC004 b on b.PARENT_ID = a.PLAN_INFO_NO
left join hpjx.T_HPkC003 c on c.PROD_ORDER_NO = b.PROD_ORDER_NO
...
...
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