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
4dea03c6
Commit
4dea03c6
authored
Apr 24, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-04-24 排除库存为0的库存
parent
64609263
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
7 deletions
+17
-7
ServiceHPKC010.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC010.java
+3
-0
ServiceHPKC011.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC011.java
+3
-0
HPKC010.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC010.xml
+4
-2
HPKC011.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC011.xml
+7
-5
No files found.
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC010.java
View file @
4dea03c6
...
@@ -10,6 +10,7 @@ import com.baosight.hpjx.hp.pz.domain.HPPZ006;
...
@@ -10,6 +10,7 @@ import com.baosight.hpjx.hp.pz.domain.HPPZ006;
import
com.baosight.hpjx.hp.pz.domain.HPPZ007
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ007
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
...
@@ -65,6 +66,7 @@ public class ServiceHPKC010 extends ServiceBase {
...
@@ -65,6 +66,7 @@ public class ServiceHPKC010 extends ServiceBase {
@OperationLogAnnotation
(
operModul
=
"实时库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@OperationLogAnnotation
(
operModul
=
"实时库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"isAmount"
,
0
);
inInfo
=
super
.
query
(
inInfo
,
"HPKC010.query"
,
new
HPKC010
());
inInfo
=
super
.
query
(
inInfo
,
"HPKC010.query"
,
new
HPKC010
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
@@ -117,6 +119,7 @@ public class ServiceHPKC010 extends ServiceBase {
...
@@ -117,6 +119,7 @@ public class ServiceHPKC010 extends ServiceBase {
put
(
"companyCode"
,
companyCode
);
put
(
"companyCode"
,
companyCode
);
put
(
"whCode"
,
whCode
);
put
(
"whCode"
,
whCode
);
put
(
"inventRecordId"
,
inventRecordId
);
put
(
"inventRecordId"
,
inventRecordId
);
put
(
"isAmount"
,
0
);
}});
}});
if
(
CollectionUtils
.
isEmpty
(
list
))
{
if
(
CollectionUtils
.
isEmpty
(
list
))
{
//新增
//新增
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC011.java
View file @
4dea03c6
...
@@ -12,6 +12,7 @@ import com.baosight.hpjx.hp.sc.domain.HPSC005;
...
@@ -12,6 +12,7 @@ import com.baosight.hpjx.hp.sc.domain.HPSC005;
import
com.baosight.hpjx.hp.sc.tools.HPSCTools
;
import
com.baosight.hpjx.hp.sc.tools.HPSCTools
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
...
@@ -59,6 +60,7 @@ public class ServiceHPKC011 extends ServiceBase {
...
@@ -59,6 +60,7 @@ public class ServiceHPKC011 extends ServiceBase {
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"isAmount"
,
0
);
inInfo
=
super
.
query
(
inInfo
,
"HPKC011.query"
,
new
HPKC011
());
inInfo
=
super
.
query
(
inInfo
,
"HPKC011.query"
,
new
HPKC011
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
@@ -110,6 +112,7 @@ public class ServiceHPKC011 extends ServiceBase {
...
@@ -110,6 +112,7 @@ public class ServiceHPKC011 extends ServiceBase {
put
(
"companyCode"
,
companyCode
);
put
(
"companyCode"
,
companyCode
);
put
(
"whCode"
,
whCode
);
put
(
"whCode"
,
whCode
);
put
(
"prodNo"
,
prodNo
);
put
(
"prodNo"
,
prodNo
);
put
(
"isAmount"
,
0
);
}});
}});
if
(
CollectionUtils
.
isEmpty
(
list
)){
if
(
CollectionUtils
.
isEmpty
(
list
)){
//新增
//新增
...
...
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC010.xml
View file @
4dea03c6
...
@@ -82,7 +82,9 @@
...
@@ -82,7 +82,9 @@
<isNotEmpty
prepend=
" AND "
property=
"factoryName"
>
<isNotEmpty
prepend=
" AND "
property=
"factoryName"
>
FACTORY_NAME = #factoryName#
FACTORY_NAME = #factoryName#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"isAmount"
>
AMOUNT != 0
</isNotEmpty>
</sql>
</sql>
<sql
id=
"customCondition"
>
<sql
id=
"customCondition"
>
...
@@ -105,7 +107,7 @@
...
@@ -105,7 +107,7 @@
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC010"
>
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC010"
>
SELECT
<include
refid=
"column"
/>
SELECT
<include
refid=
"column"
/>
FROM hpjx.T_HPKC010
FROM hpjx.T_HPKC010
WHERE 1=1
AND AMOUNT!=0
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
...
...
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC011.xml
View file @
4dea03c6
...
@@ -100,7 +100,9 @@
...
@@ -100,7 +100,9 @@
<isNotEmpty
prepend=
" AND "
property=
"factoryName"
>
<isNotEmpty
prepend=
" AND "
property=
"factoryName"
>
a.FACTORY_NAME = #factoryName#
a.FACTORY_NAME = #factoryName#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"isAmount"
>
a.AMOUNT != 0
</isNotEmpty>
</sql>
</sql>
<sql
id=
"customCondition"
>
<sql
id=
"customCondition"
>
...
@@ -113,7 +115,7 @@
...
@@ -113,7 +115,7 @@
SELECT
<include
refid=
"column"
/>
SELECT
<include
refid=
"column"
/>
FROM hpjx.T_HPKC011 a
FROM hpjx.T_HPKC011 a
JOIN hpjx.T_HPSC001 b on a.PROJ_CODE = b.PROJ_CODE
JOIN hpjx.T_HPSC001 b on a.PROJ_CODE = b.PROJ_CODE
WHERE 1=1
AND a.AMOUNT!=0
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
...
@@ -130,7 +132,7 @@
...
@@ -130,7 +132,7 @@
SELECT
<include
refid=
"column"
/>
SELECT
<include
refid=
"column"
/>
FROM hpjx.T_HPKC011 a
FROM hpjx.T_HPKC011 a
JOIN hpjx.T_HPSC001 b on a.PROJ_CODE = b.PROJ_CODE
JOIN hpjx.T_HPSC001 b on a.PROJ_CODE = b.PROJ_CODE
WHERE 1=1
AND a.AMOUNT!=0
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
...
@@ -147,7 +149,7 @@
...
@@ -147,7 +149,7 @@
SELECT
<include
refid=
"column"
/>
SELECT
<include
refid=
"column"
/>
FROM hpjx.T_HPKC011 a
FROM hpjx.T_HPKC011 a
JOIN hpjx.T_HPSC001 b on a.PROJ_CODE = b.PROJ_CODE
JOIN hpjx.T_HPSC001 b on a.PROJ_CODE = b.PROJ_CODE
WHERE 1=1
AND a.AMOUNT!=0
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
</select>
</select>
...
@@ -156,7 +158,7 @@
...
@@ -156,7 +158,7 @@
SELECT COUNT(*)
SELECT COUNT(*)
FROM hpjx.T_HPKC011 a
FROM hpjx.T_HPKC011 a
JOIN hpjx.T_HPSC001 b on a.PROJ_CODE = b.PROJ_CODE
JOIN hpjx.T_HPSC001 b on a.PROJ_CODE = b.PROJ_CODE
WHERE 1=1
AND a.AMOUNT!=0
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
</select>
</select>
...
...
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