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
96c99a74
Commit
96c99a74
authored
Feb 23, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库存日志注解
parent
0b77910d
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
117 additions
and
2 deletions
+117
-2
ServiceHPBI001.java
.../java/com/baosight/hpjx/hp/bi/service/ServiceHPBI001.java
+10
-0
ServiceHPKC001.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC001.java
+8
-0
ServiceHPKC002.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002.java
+4
-0
ServiceHPKC002A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002A.java
+4
-0
ServiceHPKC003.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC003.java
+4
-0
ServiceHPKC003A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC003A.java
+4
-0
ServiceHPKC004.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004.java
+4
-0
ServiceHPKC004A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004A.java
+4
-0
ServiceHPKC005.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC005.java
+7
-0
ServiceHPKC005A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC005A.java
+4
-0
ServiceHPKC006.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC006.java
+8
-0
ServiceHPKC007.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC007.java
+8
-0
ServiceHPKC007A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC007A.java
+4
-0
ServiceHPKC008.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC008.java
+6
-0
ServiceHPKC009.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC009.java
+8
-0
ServiceHPKC009A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC009A.java
+8
-0
ServiceHPKC010.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC010.java
+8
-1
ServiceHPKC010A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC010A.java
+2
-0
ServiceHPKC011.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC011.java
+7
-1
ServiceHPKC011A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC011A.java
+2
-0
ServiceHPKC099.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC099.java
+3
-0
No files found.
src/main/java/com/baosight/hpjx/hp/bi/service/ServiceHPBI001.java
View file @
96c99a74
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baosight.eplat.be.dz.constants.BEDZConstants
;
import
com.baosight.eplat.be.dz.constants.BEDZConstants
;
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.constant.CommonConstant
;
...
@@ -47,6 +48,7 @@ public class ServiceHPBI001 extends ServiceBase {
...
@@ -47,6 +48,7 @@ public class ServiceHPBI001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"报表管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
...
@@ -66,6 +68,7 @@ public class ServiceHPBI001 extends ServiceBase {
...
@@ -66,6 +68,7 @@ public class ServiceHPBI001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"报表管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
EiInfo
outInfo
=
new
EiInfo
();
EiInfo
outInfo
=
new
EiInfo
();
...
@@ -111,6 +114,7 @@ public class ServiceHPBI001 extends ServiceBase {
...
@@ -111,6 +114,7 @@ public class ServiceHPBI001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"报表管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
public
EiInfo
queryCompanyCode
(
EiInfo
inInfo
)
{
public
EiInfo
queryCompanyCode
(
EiInfo
inInfo
)
{
EiInfo
outInfo
=
new
EiInfo
();
EiInfo
outInfo
=
new
EiInfo
();
try
{
try
{
...
@@ -133,6 +137,7 @@ public class ServiceHPBI001 extends ServiceBase {
...
@@ -133,6 +137,7 @@ public class ServiceHPBI001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"报表管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
public
EiInfo
queryZLInfo
(
EiInfo
inInfo
)
{
public
EiInfo
queryZLInfo
(
EiInfo
inInfo
)
{
EiInfo
eiInfo
=
new
EiInfo
();
EiInfo
eiInfo
=
new
EiInfo
();
String
serviceId
=
"S_BE_XP_17"
;
String
serviceId
=
"S_BE_XP_17"
;
...
@@ -189,6 +194,7 @@ public class ServiceHPBI001 extends ServiceBase {
...
@@ -189,6 +194,7 @@ public class ServiceHPBI001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"报表管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
public
EiInfo
queryXMinfo
(
EiInfo
inInfo
)
{
public
EiInfo
queryXMinfo
(
EiInfo
inInfo
)
{
EiInfo
eiInfo
=
new
EiInfo
();
EiInfo
eiInfo
=
new
EiInfo
();
String
serviceId
=
"S_BE_XP_17"
;
String
serviceId
=
"S_BE_XP_17"
;
...
@@ -254,6 +260,7 @@ public class ServiceHPBI001 extends ServiceBase {
...
@@ -254,6 +260,7 @@ public class ServiceHPBI001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"报表管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
public
EiInfo
queryRJCLInfo
(
EiInfo
inInfo
)
{
public
EiInfo
queryRJCLInfo
(
EiInfo
inInfo
)
{
EiInfo
eiInfo
=
new
EiInfo
();
EiInfo
eiInfo
=
new
EiInfo
();
String
serviceId
=
"S_BE_XP_17"
;
String
serviceId
=
"S_BE_XP_17"
;
...
@@ -310,6 +317,7 @@ public class ServiceHPBI001 extends ServiceBase {
...
@@ -310,6 +317,7 @@ public class ServiceHPBI001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"报表管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
public
EiInfo
queryYCLInfo
(
EiInfo
inInfo
)
{
public
EiInfo
queryYCLInfo
(
EiInfo
inInfo
)
{
EiInfo
eiInfo
=
new
EiInfo
();
EiInfo
eiInfo
=
new
EiInfo
();
String
serviceId
=
"S_BE_XP_17"
;
String
serviceId
=
"S_BE_XP_17"
;
...
@@ -366,6 +374,7 @@ public class ServiceHPBI001 extends ServiceBase {
...
@@ -366,6 +374,7 @@ public class ServiceHPBI001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"报表管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
public
EiInfo
queryHAPlanInfo
(
EiInfo
inInfo
)
{
public
EiInfo
queryHAPlanInfo
(
EiInfo
inInfo
)
{
String
paramsStr
=
inInfo
.
getString
(
PARAMS_KEY_STR
);
String
paramsStr
=
inInfo
.
getString
(
PARAMS_KEY_STR
);
JSONArray
jsonArray
=
(
JSONArray
)
JSONArray
.
parse
(
paramsStr
);
JSONArray
jsonArray
=
(
JSONArray
)
JSONArray
.
parse
(
paramsStr
);
...
@@ -431,6 +440,7 @@ public class ServiceHPBI001 extends ServiceBase {
...
@@ -431,6 +440,7 @@ public class ServiceHPBI001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"报表管理"
,
operType
=
"查询"
,
operDesc
=
"测试"
)
public
EiInfo
queryMonWtInfo
(
EiInfo
inInfo
)
{
public
EiInfo
queryMonWtInfo
(
EiInfo
inInfo
)
{
String
paramsStr
=
inInfo
.
getString
(
PARAMS_KEY_STR
);
String
paramsStr
=
inInfo
.
getString
(
PARAMS_KEY_STR
);
JSONArray
jsonArray
=
(
JSONArray
)
JSONArray
.
parse
(
paramsStr
);
JSONArray
jsonArray
=
(
JSONArray
)
JSONArray
.
parse
(
paramsStr
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC001.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
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.constant.CommonConstant
;
...
@@ -45,6 +46,7 @@ public class ServiceHPKC001 extends ServiceBase {
...
@@ -45,6 +46,7 @@ public class ServiceHPKC001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
...
@@ -66,6 +68,7 @@ public class ServiceHPKC001 extends ServiceBase {
...
@@ -66,6 +68,7 @@ public class ServiceHPKC001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -89,6 +92,7 @@ public class ServiceHPKC001 extends ServiceBase {
...
@@ -89,6 +92,7 @@ public class ServiceHPKC001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"插入"
)
@Override
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -123,6 +127,7 @@ public class ServiceHPKC001 extends ServiceBase {
...
@@ -123,6 +127,7 @@ public class ServiceHPKC001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"修改"
,
operDesc
=
"修改"
)
public
EiInfo
update
(
EiInfo
inInfo
)
{
public
EiInfo
update
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
@@ -161,6 +166,7 @@ public class ServiceHPKC001 extends ServiceBase {
...
@@ -161,6 +166,7 @@ public class ServiceHPKC001 extends ServiceBase {
*
*
* @param resultRows
* @param resultRows
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"校验"
,
operDesc
=
"校验保存的数据"
)
private
void
checkSaveData
(
List
<
Map
>
resultRows
)
{
private
void
checkSaveData
(
List
<
Map
>
resultRows
)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC001
fKc001
=
new
HPKC001
();
HPKC001
fKc001
=
new
HPKC001
();
...
@@ -178,6 +184,7 @@ public class ServiceHPKC001 extends ServiceBase {
...
@@ -178,6 +184,7 @@ public class ServiceHPKC001 extends ServiceBase {
*
*
* @param fKc001
* @param fKc001
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"设置"
,
operDesc
=
"设置基础信息"
)
private
void
setBaseInfo
(
HPKC001
fKc001
)
{
private
void
setBaseInfo
(
HPKC001
fKc001
)
{
// 去除日期字符串中的-
// 去除日期字符串中的-
fKc001
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fKc001
.
getReceiptDate
()));
fKc001
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fKc001
.
getReceiptDate
()));
...
@@ -193,6 +200,7 @@ public class ServiceHPKC001 extends ServiceBase {
...
@@ -193,6 +200,7 @@ public class ServiceHPKC001 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"删除"
,
operDesc
=
"删除"
)
public
EiInfo
delete
(
EiInfo
inInfo
)
{
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
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.constant.CommonConstant
;
...
@@ -38,6 +39,7 @@ public class ServiceHPKC002 extends ServiceBase {
...
@@ -38,6 +39,7 @@ public class ServiceHPKC002 extends ServiceBase {
/**
/**
* 画面初始化.
* 画面初始化.
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@Override
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -61,6 +63,7 @@ public class ServiceHPKC002 extends ServiceBase {
...
@@ -61,6 +63,7 @@ public class ServiceHPKC002 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -83,6 +86,7 @@ public class ServiceHPKC002 extends ServiceBase {
...
@@ -83,6 +86,7 @@ public class ServiceHPKC002 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"删除"
,
operDesc
=
"删除"
)
public
EiInfo
delete
(
EiInfo
inInfo
)
{
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002A.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
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.constant.CommonConstant
;
...
@@ -45,6 +46,7 @@ public class ServiceHPKC002A extends ServiceEPBase {
...
@@ -45,6 +46,7 @@ public class ServiceHPKC002A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@Override
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -67,6 +69,7 @@ public class ServiceHPKC002A extends ServiceEPBase {
...
@@ -67,6 +69,7 @@ public class ServiceHPKC002A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -85,6 +88,7 @@ public class ServiceHPKC002A extends ServiceEPBase {
...
@@ -85,6 +88,7 @@ public class ServiceHPKC002A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"生成出库单"
)
public
EiInfo
select
(
EiInfo
inInfo
)
{
public
EiInfo
select
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC003.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
...
@@ -44,6 +45,7 @@ public class ServiceHPKC003 extends ServiceBase {
...
@@ -44,6 +45,7 @@ public class ServiceHPKC003 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
new
HashMap
<
String
,
Object
>(){{
put
(
"inventTypes"
,
new
String
[]{
"2"
,
"3"
});}},
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
new
HashMap
<
String
,
Object
>(){{
put
(
"inventTypes"
,
new
String
[]{
"2"
,
"3"
});}},
false
);
...
@@ -61,6 +63,7 @@ public class ServiceHPKC003 extends ServiceBase {
...
@@ -61,6 +63,7 @@ public class ServiceHPKC003 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -81,6 +84,7 @@ public class ServiceHPKC003 extends ServiceBase {
...
@@ -81,6 +84,7 @@ public class ServiceHPKC003 extends ServiceBase {
* @param eiInfo
* @param eiInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"删除"
,
operDesc
=
"删除"
)
public
EiInfo
delete
(
EiInfo
eiInfo
)
{
public
EiInfo
delete
(
EiInfo
eiInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
eiInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
eiInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC003A.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
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.common.ProdOrderStatusEnum
;
import
com.baosight.hpjx.common.ProdOrderStatusEnum
;
...
@@ -49,6 +50,7 @@ public class ServiceHPKC003A extends ServiceEPBase {
...
@@ -49,6 +50,7 @@ public class ServiceHPKC003A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@Override
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -68,6 +70,7 @@ public class ServiceHPKC003A extends ServiceEPBase {
...
@@ -68,6 +70,7 @@ public class ServiceHPKC003A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -86,6 +89,7 @@ public class ServiceHPKC003A extends ServiceEPBase {
...
@@ -86,6 +89,7 @@ public class ServiceHPKC003A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"生成入库单"
)
public
EiInfo
select
(
EiInfo
inInfo
)
{
public
EiInfo
select
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
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.constant.CommonConstant
;
...
@@ -41,6 +42,7 @@ public class ServiceHPKC004 extends ServiceBase {
...
@@ -41,6 +42,7 @@ public class ServiceHPKC004 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
...
@@ -62,6 +64,7 @@ public class ServiceHPKC004 extends ServiceBase {
...
@@ -62,6 +64,7 @@ public class ServiceHPKC004 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -83,6 +86,7 @@ public class ServiceHPKC004 extends ServiceBase {
...
@@ -83,6 +86,7 @@ public class ServiceHPKC004 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"删除"
,
operDesc
=
"删除"
)
public
EiInfo
delete
(
EiInfo
inInfo
)
{
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004A.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
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.constant.CommonConstant
;
...
@@ -42,6 +43,7 @@ public class ServiceHPKC004A extends ServiceEPBase {
...
@@ -42,6 +43,7 @@ public class ServiceHPKC004A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@Override
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -58,6 +60,7 @@ public class ServiceHPKC004A extends ServiceEPBase {
...
@@ -58,6 +60,7 @@ public class ServiceHPKC004A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -74,6 +77,7 @@ public class ServiceHPKC004A extends ServiceEPBase {
...
@@ -74,6 +77,7 @@ public class ServiceHPKC004A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"生成出库单"
)
public
EiInfo
select
(
EiInfo
inInfo
)
{
public
EiInfo
select
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC005.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
...
@@ -40,6 +41,7 @@ public class ServiceHPKC005 extends ServiceBase {
...
@@ -40,6 +41,7 @@ public class ServiceHPKC005 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
...
@@ -59,6 +61,7 @@ public class ServiceHPKC005 extends ServiceBase {
...
@@ -59,6 +61,7 @@ public class ServiceHPKC005 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -81,6 +84,7 @@ public class ServiceHPKC005 extends ServiceBase {
...
@@ -81,6 +84,7 @@ public class ServiceHPKC005 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"新增"
,
operDesc
=
"新增"
)
@Override
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -113,6 +117,7 @@ public class ServiceHPKC005 extends ServiceBase {
...
@@ -113,6 +117,7 @@ public class ServiceHPKC005 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"修改"
,
operDesc
=
"修改"
)
public
EiInfo
update
(
EiInfo
inInfo
)
{
public
EiInfo
update
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
@@ -137,6 +142,7 @@ public class ServiceHPKC005 extends ServiceBase {
...
@@ -137,6 +142,7 @@ public class ServiceHPKC005 extends ServiceBase {
*
*
* @param fKc005
* @param fKc005
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"设置"
,
operDesc
=
"设置基础信息"
)
private
void
setBaseInfo
(
HPKC005
fKc005
)
{
private
void
setBaseInfo
(
HPKC005
fKc005
)
{
// 去除日期字符串中的-
// 去除日期字符串中的-
fKc005
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fKc005
.
getReceiptDate
()));
fKc005
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fKc005
.
getReceiptDate
()));
...
@@ -156,6 +162,7 @@ public class ServiceHPKC005 extends ServiceBase {
...
@@ -156,6 +162,7 @@ public class ServiceHPKC005 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"删除"
,
operDesc
=
"删除"
)
public
EiInfo
delete
(
EiInfo
inInfo
)
{
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC005A.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
...
@@ -38,6 +39,7 @@ public class ServiceHPKC005A extends ServiceEPBase {
...
@@ -38,6 +39,7 @@ public class ServiceHPKC005A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@Override
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -58,6 +60,7 @@ public class ServiceHPKC005A extends ServiceEPBase {
...
@@ -58,6 +60,7 @@ public class ServiceHPKC005A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -75,6 +78,7 @@ public class ServiceHPKC005A extends ServiceEPBase {
...
@@ -75,6 +78,7 @@ public class ServiceHPKC005A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"生成盘点单"
)
public
EiInfo
select
(
EiInfo
inInfo
)
{
public
EiInfo
select
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC006.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
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.constant.CommonConstant
;
...
@@ -49,6 +50,7 @@ public class ServiceHPKC006 extends ServiceBase {
...
@@ -49,6 +50,7 @@ public class ServiceHPKC006 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
...
@@ -70,6 +72,7 @@ public class ServiceHPKC006 extends ServiceBase {
...
@@ -70,6 +72,7 @@ public class ServiceHPKC006 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -93,6 +96,7 @@ public class ServiceHPKC006 extends ServiceBase {
...
@@ -93,6 +96,7 @@ public class ServiceHPKC006 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"新增"
,
operDesc
=
"新增"
)
@Override
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -139,6 +143,7 @@ public class ServiceHPKC006 extends ServiceBase {
...
@@ -139,6 +143,7 @@ public class ServiceHPKC006 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"修改"
,
operDesc
=
"修改"
)
public
EiInfo
update
(
EiInfo
inInfo
)
{
public
EiInfo
update
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
@@ -177,6 +182,7 @@ public class ServiceHPKC006 extends ServiceBase {
...
@@ -177,6 +182,7 @@ public class ServiceHPKC006 extends ServiceBase {
*
*
* @param resultRows
* @param resultRows
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"校验"
,
operDesc
=
"校验保存的数据"
)
private
void
checkSaveData
(
List
<
Map
>
resultRows
)
{
private
void
checkSaveData
(
List
<
Map
>
resultRows
)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC006
fKc006
=
new
HPKC006
();
HPKC006
fKc006
=
new
HPKC006
();
...
@@ -194,6 +200,7 @@ public class ServiceHPKC006 extends ServiceBase {
...
@@ -194,6 +200,7 @@ public class ServiceHPKC006 extends ServiceBase {
*
*
* @param fKc006
* @param fKc006
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"设置"
,
operDesc
=
"设置基础信息"
)
private
void
setBaseInfo
(
HPKC006
fKc006
)
{
private
void
setBaseInfo
(
HPKC006
fKc006
)
{
// 去除日期字符串中的-
// 去除日期字符串中的-
fKc006
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fKc006
.
getReceiptDate
()));
fKc006
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fKc006
.
getReceiptDate
()));
...
@@ -209,6 +216,7 @@ public class ServiceHPKC006 extends ServiceBase {
...
@@ -209,6 +216,7 @@ public class ServiceHPKC006 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"删除"
,
operDesc
=
"删除"
)
public
EiInfo
delete
(
EiInfo
inInfo
)
{
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC007.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
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.constant.CommonConstant
;
...
@@ -47,6 +48,7 @@ public class ServiceHPKC007 extends ServiceBase {
...
@@ -47,6 +48,7 @@ public class ServiceHPKC007 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
...
@@ -68,6 +70,7 @@ public class ServiceHPKC007 extends ServiceBase {
...
@@ -68,6 +70,7 @@ public class ServiceHPKC007 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -89,6 +92,7 @@ public class ServiceHPKC007 extends ServiceBase {
...
@@ -89,6 +92,7 @@ public class ServiceHPKC007 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"新增"
,
operDesc
=
"新增"
)
@Override
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -123,6 +127,7 @@ public class ServiceHPKC007 extends ServiceBase {
...
@@ -123,6 +127,7 @@ public class ServiceHPKC007 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"修改"
,
operDesc
=
"修改"
)
public
EiInfo
update
(
EiInfo
inInfo
)
{
public
EiInfo
update
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
@@ -162,6 +167,7 @@ public class ServiceHPKC007 extends ServiceBase {
...
@@ -162,6 +167,7 @@ public class ServiceHPKC007 extends ServiceBase {
*
*
* @param resultRows
* @param resultRows
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"校验"
,
operDesc
=
"校验保存的数据"
)
private
void
checkSaveData
(
List
<
Map
>
resultRows
)
{
private
void
checkSaveData
(
List
<
Map
>
resultRows
)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC007
fKc007
=
new
HPKC007
();
HPKC007
fKc007
=
new
HPKC007
();
...
@@ -179,6 +185,7 @@ public class ServiceHPKC007 extends ServiceBase {
...
@@ -179,6 +185,7 @@ public class ServiceHPKC007 extends ServiceBase {
*
*
* @param fKc007
* @param fKc007
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"设置"
,
operDesc
=
"设置基础信息"
)
private
void
setBaseInfo
(
HPKC007
fKc007
)
{
private
void
setBaseInfo
(
HPKC007
fKc007
)
{
// 去除日期字符串中的-
// 去除日期字符串中的-
fKc007
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fKc007
.
getReceiptDate
()));
fKc007
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fKc007
.
getReceiptDate
()));
...
@@ -194,6 +201,7 @@ public class ServiceHPKC007 extends ServiceBase {
...
@@ -194,6 +201,7 @@ public class ServiceHPKC007 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"删除"
,
operDesc
=
"删除"
)
public
EiInfo
delete
(
EiInfo
inInfo
)
{
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC007A.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
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.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
...
@@ -44,6 +45,7 @@ public class ServiceHPKC007A extends ServiceEPBase {
...
@@ -44,6 +45,7 @@ public class ServiceHPKC007A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@Override
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -66,6 +68,7 @@ public class ServiceHPKC007A extends ServiceEPBase {
...
@@ -66,6 +68,7 @@ public class ServiceHPKC007A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -84,6 +87,7 @@ public class ServiceHPKC007A extends ServiceEPBase {
...
@@ -84,6 +87,7 @@ public class ServiceHPKC007A extends ServiceEPBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"生成出库单"
)
public
EiInfo
select
(
EiInfo
inInfo
)
{
public
EiInfo
select
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC008.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
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.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
...
@@ -38,6 +39,7 @@ public class ServiceHPKC008 extends ServiceBase {
...
@@ -38,6 +39,7 @@ public class ServiceHPKC008 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
...
@@ -57,6 +59,7 @@ public class ServiceHPKC008 extends ServiceBase {
...
@@ -57,6 +59,7 @@ public class ServiceHPKC008 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -80,6 +83,7 @@ public class ServiceHPKC008 extends ServiceBase {
...
@@ -80,6 +83,7 @@ public class ServiceHPKC008 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"新增"
)
public
EiInfo
insert
(
EiInfo
inInfo
)
{
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
@@ -111,6 +115,7 @@ public class ServiceHPKC008 extends ServiceBase {
...
@@ -111,6 +115,7 @@ public class ServiceHPKC008 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"修改"
,
operDesc
=
"修改"
)
public
EiInfo
update
(
EiInfo
inInfo
)
{
public
EiInfo
update
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
@@ -140,6 +145,7 @@ public class ServiceHPKC008 extends ServiceBase {
...
@@ -140,6 +145,7 @@ public class ServiceHPKC008 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"删除"
,
operDesc
=
"删除"
)
public
EiInfo
delete
(
EiInfo
inInfo
)
{
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC009.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
...
@@ -54,6 +55,7 @@ public class ServiceHPKC009 extends ServiceBase {
...
@@ -54,6 +55,7 @@ public class ServiceHPKC009 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
...
@@ -73,6 +75,7 @@ public class ServiceHPKC009 extends ServiceBase {
...
@@ -73,6 +75,7 @@ public class ServiceHPKC009 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -96,6 +99,7 @@ public class ServiceHPKC009 extends ServiceBase {
...
@@ -96,6 +99,7 @@ public class ServiceHPKC009 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"按天统计"
)
public
EiInfo
statDay
(
EiInfo
inInfo
)
{
public
EiInfo
statDay
(
EiInfo
inInfo
)
{
try
{
try
{
// 取昨天的日期
// 取昨天的日期
...
@@ -130,6 +134,7 @@ public class ServiceHPKC009 extends ServiceBase {
...
@@ -130,6 +134,7 @@ public class ServiceHPKC009 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"按月统计"
)
public
EiInfo
statMonth
(
EiInfo
inInfo
)
{
public
EiInfo
statMonth
(
EiInfo
inInfo
)
{
try
{
try
{
// 上个月的日期
// 上个月的日期
...
@@ -165,6 +170,7 @@ public class ServiceHPKC009 extends ServiceBase {
...
@@ -165,6 +170,7 @@ public class ServiceHPKC009 extends ServiceBase {
*
*
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"统计库存收发存"
)
private
List
<
HPKC009
>
statData
(
Map
queryMap
)
{
private
List
<
HPKC009
>
statData
(
Map
queryMap
)
{
List
<
HPKC009
>
newKc009s
=
new
ArrayList
<>();
List
<
HPKC009
>
newKc009s
=
new
ArrayList
<>();
// 1.1、期末库存
// 1.1、期末库存
...
@@ -282,6 +288,7 @@ public class ServiceHPKC009 extends ServiceBase {
...
@@ -282,6 +288,7 @@ public class ServiceHPKC009 extends ServiceBase {
*
*
* @param kc009s
* @param kc009s
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"设置"
,
operDesc
=
"设置基础信息"
)
private
void
setBaseInfo
(
List
<
HPKC009
>
kc009s
)
{
private
void
setBaseInfo
(
List
<
HPKC009
>
kc009s
)
{
// 仓库名称
// 仓库名称
List
<
String
>
whCodes
=
kc009s
.
stream
().
map
(
HPKC009:
:
getWhCode
).
collect
(
Collectors
.
toList
());
List
<
String
>
whCodes
=
kc009s
.
stream
().
map
(
HPKC009:
:
getWhCode
).
collect
(
Collectors
.
toList
());
...
@@ -316,6 +323,7 @@ public class ServiceHPKC009 extends ServiceBase {
...
@@ -316,6 +323,7 @@ public class ServiceHPKC009 extends ServiceBase {
* @param inventRecordId
* @param inventRecordId
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"设置"
,
operDesc
=
"构建KEY"
)
private
String
buildKey
(
Object
companyCode
,
Object
depCode
,
Object
inventType
,
Object
inventCode
,
private
String
buildKey
(
Object
companyCode
,
Object
depCode
,
Object
inventType
,
Object
inventCode
,
Object
whCode
,
Object
inventRecordId
)
{
Object
whCode
,
Object
inventRecordId
)
{
return
ObjectUtils
.
trimToEmpty
(
companyCode
)
+
"#"
return
ObjectUtils
.
trimToEmpty
(
companyCode
)
+
"#"
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC009A.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.hp.constant.HPSqlConstant
;
import
com.baosight.hpjx.hp.constant.HPSqlConstant
;
...
@@ -51,6 +52,7 @@ public class ServiceHPKC009A extends ServiceBase {
...
@@ -51,6 +52,7 @@ public class ServiceHPKC009A extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
...
@@ -67,6 +69,7 @@ public class ServiceHPKC009A extends ServiceBase {
...
@@ -67,6 +69,7 @@ public class ServiceHPKC009A extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -90,6 +93,7 @@ public class ServiceHPKC009A extends ServiceBase {
...
@@ -90,6 +93,7 @@ public class ServiceHPKC009A extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"按天统计"
)
public
EiInfo
statDay
(
EiInfo
inInfo
)
{
public
EiInfo
statDay
(
EiInfo
inInfo
)
{
try
{
try
{
// 取昨天的日期
// 取昨天的日期
...
@@ -124,6 +128,7 @@ public class ServiceHPKC009A extends ServiceBase {
...
@@ -124,6 +128,7 @@ public class ServiceHPKC009A extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"按月统计"
)
public
EiInfo
statMonth
(
EiInfo
inInfo
)
{
public
EiInfo
statMonth
(
EiInfo
inInfo
)
{
try
{
try
{
// 上个月的日期
// 上个月的日期
...
@@ -159,6 +164,7 @@ public class ServiceHPKC009A extends ServiceBase {
...
@@ -159,6 +164,7 @@ public class ServiceHPKC009A extends ServiceBase {
*
*
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"统计库存收发存"
)
private
List
<
HPKC009A
>
statData
(
Map
queryMap
)
{
private
List
<
HPKC009A
>
statData
(
Map
queryMap
)
{
List
<
HPKC009A
>
newKc009As
=
new
ArrayList
<>();
List
<
HPKC009A
>
newKc009As
=
new
ArrayList
<>();
// 1.1、期末库存
// 1.1、期末库存
...
@@ -230,6 +236,7 @@ public class ServiceHPKC009A extends ServiceBase {
...
@@ -230,6 +236,7 @@ public class ServiceHPKC009A extends ServiceBase {
*
*
* @param kc009as
* @param kc009as
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"设置"
,
operDesc
=
"设置基础信息"
)
private
void
setBaseInfo
(
List
<
HPKC009A
>
kc009as
)
{
private
void
setBaseInfo
(
List
<
HPKC009A
>
kc009as
)
{
// 仓库名称
// 仓库名称
List
<
String
>
whCodes
=
kc009as
.
stream
().
map
(
HPKC009A:
:
getWhCode
).
collect
(
Collectors
.
toList
());
List
<
String
>
whCodes
=
kc009as
.
stream
().
map
(
HPKC009A:
:
getWhCode
).
collect
(
Collectors
.
toList
());
...
@@ -278,6 +285,7 @@ public class ServiceHPKC009A extends ServiceBase {
...
@@ -278,6 +285,7 @@ public class ServiceHPKC009A extends ServiceBase {
* @param subInventCode
* @param subInventCode
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"设置"
,
operDesc
=
"构建KEY"
)
private
String
buildKey
(
Object
companyCode
,
Object
depCode
,
Object
whCode
,
Object
projCode
,
Object
inventCode
,
private
String
buildKey
(
Object
companyCode
,
Object
depCode
,
Object
whCode
,
Object
projCode
,
Object
inventCode
,
Object
subInventCode
)
{
Object
subInventCode
)
{
return
ObjectUtils
.
trimToEmpty
(
companyCode
)
+
"#"
return
ObjectUtils
.
trimToEmpty
(
companyCode
)
+
"#"
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC010.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.common.DdynamicEnum
;
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
;
...
@@ -39,6 +40,7 @@ public class ServiceHPKC010 extends ServiceBase {
...
@@ -39,6 +40,7 @@ public class ServiceHPKC010 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
HPKC010
HPKC010
=
new
HPKC010
();
HPKC010
HPKC010
=
new
HPKC010
();
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
HPKC010
);
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
HPKC010
);
...
@@ -53,6 +55,7 @@ public class ServiceHPKC010 extends ServiceBase {
...
@@ -53,6 +55,7 @@ public class ServiceHPKC010 extends ServiceBase {
/**
/**
* 查询操作.
* 查询操作.
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -67,6 +70,7 @@ public class ServiceHPKC010 extends ServiceBase {
...
@@ -67,6 +70,7 @@ public class ServiceHPKC010 extends ServiceBase {
/**
/**
* 新增操作.
* 新增操作.
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"新增"
,
operDesc
=
"新增"
)
@Override
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -91,6 +95,7 @@ public class ServiceHPKC010 extends ServiceBase {
...
@@ -91,6 +95,7 @@ public class ServiceHPKC010 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"修改"
,
operDesc
=
"更新库存"
)
public
EiInfo
updateStock
(
EiInfo
inInfo
){
public
EiInfo
updateStock
(
EiInfo
inInfo
){
String
whCode
=
inInfo
.
getString
(
"whCode"
);
String
whCode
=
inInfo
.
getString
(
"whCode"
);
Long
inventRecordId
=
Long
.
parseLong
(
inInfo
.
getString
(
"inventRecordId"
));
Long
inventRecordId
=
Long
.
parseLong
(
inInfo
.
getString
(
"inventRecordId"
));
...
@@ -149,6 +154,7 @@ public class ServiceHPKC010 extends ServiceBase {
...
@@ -149,6 +154,7 @@ public class ServiceHPKC010 extends ServiceBase {
* @param weight
* @param weight
* @reutrn HPKC010
* @reutrn HPKC010
*/
*/
private
HPKC010
generatorBaseInfo
(
String
companyCode
,
String
whCode
,
Long
inventRecordId
,
BigDecimal
amout
,
BigDecimal
weight
)
{
private
HPKC010
generatorBaseInfo
(
String
companyCode
,
String
whCode
,
Long
inventRecordId
,
BigDecimal
amout
,
BigDecimal
weight
)
{
HPKC010
hpkc010
=
new
HPKC010
();
HPKC010
hpkc010
=
new
HPKC010
();
hpkc010
.
setCompanyCode
(
companyCode
);
hpkc010
.
setCompanyCode
(
companyCode
);
...
@@ -167,7 +173,7 @@ public class ServiceHPKC010 extends ServiceBase {
...
@@ -167,7 +173,7 @@ public class ServiceHPKC010 extends ServiceBase {
hpkc010
.
setUpdatedTime
(
time
);
hpkc010
.
setUpdatedTime
(
time
);
return
hpkc010
;
return
hpkc010
;
}
}
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"设置"
,
operDesc
=
"生成库存对象"
)
private
void
generatorBaseInfo
(
HPKC010
hpkc010
)
{
private
void
generatorBaseInfo
(
HPKC010
hpkc010
)
{
String
whName
=
""
;
String
whName
=
""
;
Integer
inventType
=
new
Integer
(
0
);
Integer
inventType
=
new
Integer
(
0
);
...
@@ -216,6 +222,7 @@ public class ServiceHPKC010 extends ServiceBase {
...
@@ -216,6 +222,7 @@ public class ServiceHPKC010 extends ServiceBase {
* @param amout
* @param amout
* @param weight
* @param weight
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"校验"
,
operDesc
=
"校验库存变更请求参数"
)
private
void
checkUpdateStockParam
(
String
companyCode
,
String
whCode
,
Long
inventRecordId
private
void
checkUpdateStockParam
(
String
companyCode
,
String
whCode
,
Long
inventRecordId
,
BigDecimal
amout
,
BigDecimal
weight
){
,
BigDecimal
amout
,
BigDecimal
weight
){
if
(
StringUtils
.
isBlank
(
companyCode
)){
if
(
StringUtils
.
isBlank
(
companyCode
)){
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC010A.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.hp.constant.HPSqlConstant
;
import
com.baosight.hpjx.hp.constant.HPSqlConstant
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.LogUtils
;
...
@@ -23,6 +24,7 @@ public class ServiceHPKC010A extends ServiceBase {
...
@@ -23,6 +24,7 @@ public class ServiceHPKC010A extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"备份数据"
)
public
EiInfo
backup
(
EiInfo
inInfo
)
{
public
EiInfo
backup
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC011.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
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.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
...
@@ -37,6 +38,7 @@ public class ServiceHPKC011 extends ServiceBase {
...
@@ -37,6 +38,7 @@ public class ServiceHPKC011 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查润"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
HPKC011
HPKC011
=
new
HPKC011
();
HPKC011
HPKC011
=
new
HPKC011
();
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
HPKC011
);
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
HPKC011
);
...
@@ -52,6 +54,7 @@ public class ServiceHPKC011 extends ServiceBase {
...
@@ -52,6 +54,7 @@ public class ServiceHPKC011 extends ServiceBase {
/**
/**
* 查询操作.
* 查询操作.
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查润"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -66,6 +69,7 @@ public class ServiceHPKC011 extends ServiceBase {
...
@@ -66,6 +69,7 @@ public class ServiceHPKC011 extends ServiceBase {
/**
/**
* 新增操作.
* 新增操作.
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"新增"
,
operDesc
=
"新增"
)
@Override
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -90,6 +94,7 @@ public class ServiceHPKC011 extends ServiceBase {
...
@@ -90,6 +94,7 @@ public class ServiceHPKC011 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"修改"
,
operDesc
=
"更新库存"
)
public
EiInfo
updateStock
(
EiInfo
inInfo
){
public
EiInfo
updateStock
(
EiInfo
inInfo
){
String
whCode
=
inInfo
.
getString
(
"whCode"
);
String
whCode
=
inInfo
.
getString
(
"whCode"
);
String
prodNo
=
inInfo
.
getString
(
"prodNo"
);
String
prodNo
=
inInfo
.
getString
(
"prodNo"
);
...
@@ -166,7 +171,7 @@ public class ServiceHPKC011 extends ServiceBase {
...
@@ -166,7 +171,7 @@ public class ServiceHPKC011 extends ServiceBase {
hpkc011
.
setUpdatedTime
(
time
);
hpkc011
.
setUpdatedTime
(
time
);
return
hpkc011
;
return
hpkc011
;
}
}
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"设置"
,
operDesc
=
"生成库存对象"
)
private
void
generatorBaseInfo
(
HPKC011
hpkc011
)
{
private
void
generatorBaseInfo
(
HPKC011
hpkc011
)
{
EiInfo
inInfo
=
new
EiInfo
();
EiInfo
inInfo
=
new
EiInfo
();
try
{
try
{
...
@@ -209,6 +214,7 @@ public class ServiceHPKC011 extends ServiceBase {
...
@@ -209,6 +214,7 @@ public class ServiceHPKC011 extends ServiceBase {
* @param amout
* @param amout
* @param weight
* @param weight
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"校验"
,
operDesc
=
"校验库存变更请求参数"
)
private
void
checkUpdateStockParam
(
String
companyCode
,
String
whCode
,
String
prodNo
private
void
checkUpdateStockParam
(
String
companyCode
,
String
whCode
,
String
prodNo
,
BigDecimal
amout
,
BigDecimal
weight
){
,
BigDecimal
amout
,
BigDecimal
weight
){
if
(
StringUtils
.
isBlank
(
companyCode
)){
if
(
StringUtils
.
isBlank
(
companyCode
)){
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC011A.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.hp.constant.HPSqlConstant
;
import
com.baosight.hpjx.hp.constant.HPSqlConstant
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.LogUtils
;
...
@@ -23,6 +24,7 @@ public class ServiceHPKC011A extends ServiceBase {
...
@@ -23,6 +24,7 @@ public class ServiceHPKC011A extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"插入"
,
operDesc
=
"备份数据"
)
public
EiInfo
backup
(
EiInfo
inInfo
)
{
public
EiInfo
backup
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC099.java
View file @
96c99a74
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.hp.sc.domain.HPSC005
;
import
com.baosight.hpjx.hp.sc.domain.HPSC005
;
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
;
...
@@ -14,6 +15,7 @@ public class ServiceHPKC099 extends ServiceBase {
...
@@ -14,6 +15,7 @@ public class ServiceHPKC099 extends ServiceBase {
/**
/**
* 画面初始化.
* 画面初始化.
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询 "
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
HPSC005
HPSC005
=
new
HPSC005
();
HPSC005
HPSC005
=
new
HPSC005
();
inInfo
.
set
(
"inqu_status-0-status"
,
"1"
);
inInfo
.
set
(
"inqu_status-0-status"
,
"1"
);
...
@@ -26,6 +28,7 @@ public class ServiceHPKC099 extends ServiceBase {
...
@@ -26,6 +28,7 @@ public class ServiceHPKC099 extends ServiceBase {
/**
/**
* 查询操作.
* 查询操作.
*/
*/
@OperationLogAnnotation
(
operModul
=
"库存管理"
,
operType
=
"查询 "
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
/* 调用EI查询方法.*/
/* 调用EI查询方法.*/
...
...
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