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
dee1f2ae
Commit
dee1f2ae
authored
Nov 21, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复排序问题和其他入库提交问题
parent
647dec31
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
10 deletions
+20
-10
HGFW001.xml
src/main/java/com/baosight/hggp/hg/fw/sql/HGFW001.xml
+1
-1
ServiceHGKC005.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC005.java
+8
-8
ServiceHGKC006.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC006.java
+1
-0
HGKCTools.java
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
+9
-0
HGZL003.xml
src/main/java/com/baosight/hggp/hg/zl/sql/HGZL003.xml
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/fw/sql/HGFW001.xml
View file @
dee1f2ae
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
$orderBy$
$orderBy$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
ID DESC
AFTER_SALE_DATE DESC,
ID DESC
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
</sql>
</sql>
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC005.java
View file @
dee1f2ae
...
@@ -42,11 +42,7 @@ import com.baosight.iplat4j.ed.util.SequenceGenerator;
...
@@ -42,11 +42,7 @@ import com.baosight.iplat4j.ed.util.SequenceGenerator;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.collections.MapUtils
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @author LiuYang
* @author LiuYang
...
@@ -374,6 +370,9 @@ public class ServiceHGKC005 extends ServiceEPBase {
...
@@ -374,6 +370,9 @@ public class ServiceHGKC005 extends ServiceEPBase {
hgkc006
.
setSource
(
InventorySource
.
INVENTORY
.
getCode
());
hgkc006
.
setSource
(
InventorySource
.
INVENTORY
.
getCode
());
hgkc006
.
setSubmitStatus
(
HGConstant
.
ProductStatus
.
WTJ
);
hgkc006
.
setSubmitStatus
(
HGConstant
.
ProductStatus
.
WTJ
);
hgkc006
.
setSourceCode
(
hgkc005
.
getCheckNo
());
hgkc006
.
setSourceCode
(
hgkc005
.
getCheckNo
());
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgkc006
.
getSource
())
||
hgkc006
.
getSource
()
<=
0
,
"其它入库单数据来源不能为空!"
);
AssertUtils
.
isTrue
(
StringUtils
.
isBlank
(
hgkc006
.
getWhCode
()),
"其它入库单仓库不能为空!"
);
DaoUtils
.
insert
(
HGKC006
.
INSERT
,
hgkc006
);
//明细数据处理
//明细数据处理
HGKC006A
hgkc006A
=
new
HGKC006A
();
HGKC006A
hgkc006A
=
new
HGKC006A
();
hgkc006A
.
setPrimaryId
(
hgkc006
.
getId
());
hgkc006A
.
setPrimaryId
(
hgkc006
.
getId
());
...
@@ -396,9 +395,10 @@ public class ServiceHGKC005 extends ServiceEPBase {
...
@@ -396,9 +395,10 @@ public class ServiceHGKC005 extends ServiceEPBase {
hgkc006A
.
setPrdtSpec
(
hgpz005
.
getSpec
());
hgkc006A
.
setPrdtSpec
(
hgpz005
.
getSpec
());
hgkc006A
.
setSource
(
InventorySource
.
INVENTORY
.
getCode
());
hgkc006A
.
setSource
(
InventorySource
.
INVENTORY
.
getCode
());
hgkc006A
.
setInventTypeDetail
(
hgpz005
.
getInventTypeDetail
());
hgkc006A
.
setInventTypeDetail
(
hgpz005
.
getInventTypeDetail
());
HGKCTools
.
HgKc006
.
checkData
(
hgkc006A
);
hgkc006
.
getDetailList
().
add
(
hgkc006A
);
DaoUtils
.
insert
(
HGKC006A
.
INSERT
,
hgkc006A
);
HGKCTools
.
HgKc006
.
generateHgkc006
(
hgkc006
);
//hgkc006.getDetailList().add(hgkc006A);
//HGKCTools.HgKc006.generateHgkc006(hgkc006);
}
}
}
}
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC006.java
View file @
dee1f2ae
...
@@ -178,6 +178,7 @@ public class ServiceHGKC006 extends ServiceBase {
...
@@ -178,6 +178,7 @@ public class ServiceHGKC006 extends ServiceBase {
hgkc006
=
HGKCTools
.
HgKc006
.
getById
(
hgkc006
.
getId
());
hgkc006
=
HGKCTools
.
HgKc006
.
getById
(
hgkc006
.
getId
());
//查看是否能获取到账期,获取不到就提示
//查看是否能获取到账期,获取不到就提示
HGCWTools
.
HgCw001
.
getAccountPeriod
(
hgkc006
.
getCompanyCode
(),
hgkc006
.
getOtherEnterDate
());
HGCWTools
.
HgCw001
.
getAccountPeriod
(
hgkc006
.
getCompanyCode
(),
hgkc006
.
getOtherEnterDate
());
hgkc006
.
setSubmitStatus
(
HGConstant
.
ProductStatus
.
YTJ
);
DaoUtils
.
update
(
HGKC006
.
CHECK
,
hgkc006
.
toMap
());
DaoUtils
.
update
(
HGKC006
.
CHECK
,
hgkc006
.
toMap
());
}
}
List
<
HGKC006A
>
hgkc006AList
=
HGKCTools
.
HgKc006A
.
getHgkc006aList
(
hgkc006
.
getId
());
List
<
HGKC006A
>
hgkc006AList
=
HGKCTools
.
HgKc006A
.
getHgkc006aList
(
hgkc006
.
getId
());
...
...
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
View file @
dee1f2ae
...
@@ -835,6 +835,15 @@ public class HGKCTools {
...
@@ -835,6 +835,15 @@ public class HGKCTools {
AssertUtils
.
isTrue
(
o
.
getInvWeight
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
,
"其它入库单明细总重小于等于0!"
);
AssertUtils
.
isTrue
(
o
.
getInvWeight
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
,
"其它入库单明细总重小于等于0!"
);
});
});
}
}
public
static
void
checkData
(
HGKC006A
hgkc006a
)
{
AssertUtils
.
isTrue
(
StringUtils
.
isBlank
(
hgkc006a
.
getWhCode
()),
"其它入库单明细仓库不能为空!"
);
AssertUtils
.
isTrue
(
StringUtils
.
isBlank
(
hgkc006a
.
getInventCode
()),
"其它入库单明细存货编码不能为空!"
);
AssertUtils
.
isTrue
(
StringUtils
.
isBlank
(
hgkc006a
.
getInventName
()),
"其它入库单明细存货名称不能为空!"
);
AssertUtils
.
isTrue
(
hgkc006a
.
getInvQty
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
,
"其它入库单明细数量不能小于等于0!"
);
AssertUtils
.
isTrue
(
hgkc006a
.
getInvUnitWeight
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
,
"其它入库单明细单重小于等于0!"
);
AssertUtils
.
isTrue
(
hgkc006a
.
getInvWeight
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
,
"其它入库单明细总重小于等于0!"
);
}
}
}
public
static
class
HgKc006A
{
public
static
class
HgKc006A
{
...
...
src/main/java/com/baosight/hggp/hg/zl/sql/HGZL003.xml
View file @
dee1f2ae
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
$orderBy$
$orderBy$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
id desc
check_date DESC,
id desc
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
...
...
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