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
a155e034
Commit
a155e034
authored
Oct 25, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-24 打包单
parent
2fcef0eb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
123 additions
and
24 deletions
+123
-24
HGConstant.java
src/main/java/com/baosight/hggp/hg/constant/HGConstant.java
+3
-0
HgKcConst.java
...main/java/com/baosight/hggp/hg/kc/constant/HgKcConst.java
+23
-0
HGKC010.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC010.xml
+3
-2
HGKCTools.java
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
+94
-22
No files found.
src/main/java/com/baosight/hggp/hg/constant/HGConstant.java
View file @
a155e034
...
@@ -195,6 +195,9 @@ public class HGConstant {
...
@@ -195,6 +195,9 @@ public class HGConstant {
//采购询价单号
//采购询价单号
public
static
final
String
INQUIRY_NUMBER
=
"INQUIRY_NUMBER"
;
public
static
final
String
INQUIRY_NUMBER
=
"INQUIRY_NUMBER"
;
//打包单号
public
static
final
String
PACK_CODE
=
"PACK_CODE"
;
}
}
/**
/**
...
...
src/main/java/com/baosight/hggp/hg/kc/constant/HgKcConst.java
View file @
a155e034
...
@@ -59,4 +59,27 @@ public class HgKcConst {
...
@@ -59,4 +59,27 @@ public class HgKcConst {
public
static
final
Integer
S3
=
3
;
public
static
final
Integer
S3
=
3
;
}
}
}
}
/**
* HGKC014 定义
*
* @author:songx
* @date:2024/1/20,16:45
*/
public
static
class
HgKc017
{
/**
* 提交状态
*
* @author:songx
* @date:2024/5/15,15:18
*/
public
static
class
Status
{
// 未提交
public
static
final
Integer
S0
=
0
;
// 已提交
public
static
final
Integer
S1
=
1
;
}
}
}
}
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC010.xml
View file @
a155e034
...
@@ -331,13 +331,14 @@
...
@@ -331,13 +331,14 @@
LENGTH as "length",
<!-- 长度 -->
LENGTH as "length",
<!-- 长度 -->
WIDTH as "width",
<!-- 宽度 -->
WIDTH as "width",
<!-- 宽度 -->
THICK as "thick",
<!-- 厚度 -->
THICK as "thick",
<!-- 厚度 -->
INV_QTY
as "invQty",
<!-- 库存数量 -->
SUM(INV_QTY)
as "invQty",
<!-- 库存数量 -->
INV_UNIT_WEIGHT as "invUnitWeight",
<!-- 库存单重 -->
INV_UNIT_WEIGHT as "invUnitWeight",
<!-- 库存单重 -->
INV_WEIGHT
as "invWeight",
<!-- 库存重量 -->
SUM(INV_WEIGHT)
as "invWeight",
<!-- 库存重量 -->
INVENT_TYPE_DETAIL as "inventTypeDetail"
INVENT_TYPE_DETAIL as "inventTypeDetail"
FROM ${hggpSchema}.HGKC010
FROM ${hggpSchema}.HGKC010
WHERE 1=1
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
group by INVENT_TYPE, INVENT_CODE, INVENT_NAME, SPEC_ID, SPEC, LENGTH, WIDTH, THICK, INV_UNIT_WEIGHT, INVENT_TYPE_DETAIL
</select>
</select>
<!--规格下拉框-->
<!--规格下拉框-->
...
...
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
View file @
a155e034
...
@@ -11,27 +11,7 @@ import com.baosight.hggp.hg.constant.HGConstant;
...
@@ -11,27 +11,7 @@ import com.baosight.hggp.hg.constant.HGConstant;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.kc.constant.HgKcSqlConst
;
import
com.baosight.hggp.hg.kc.constant.HgKcSqlConst
;
import
com.baosight.hggp.hg.kc.constant.HgKcSqlConstant
;
import
com.baosight.hggp.hg.kc.constant.HgKcSqlConstant
;
import
com.baosight.hggp.hg.kc.domain.HGKC001
;
import
com.baosight.hggp.hg.kc.domain.*
;
import
com.baosight.hggp.hg.kc.domain.HGKC002
;
import
com.baosight.hggp.hg.kc.domain.HGKC003
;
import
com.baosight.hggp.hg.kc.domain.HGKC004
;
import
com.baosight.hggp.hg.kc.domain.HGKC004A
;
import
com.baosight.hggp.hg.kc.domain.HGKC005
;
import
com.baosight.hggp.hg.kc.domain.HGKC006
;
import
com.baosight.hggp.hg.kc.domain.HGKC006A
;
import
com.baosight.hggp.hg.kc.domain.HGKC007
;
import
com.baosight.hggp.hg.kc.domain.HGKC007A
;
import
com.baosight.hggp.hg.kc.domain.HGKC008
;
import
com.baosight.hggp.hg.kc.domain.HGKC008A
;
import
com.baosight.hggp.hg.kc.domain.HGKC010
;
import
com.baosight.hggp.hg.kc.domain.HGKC010A
;
import
com.baosight.hggp.hg.kc.domain.HGKC011
;
import
com.baosight.hggp.hg.kc.domain.HGKC013
;
import
com.baosight.hggp.hg.kc.domain.HGKC013A
;
import
com.baosight.hggp.hg.kc.domain.HGKC014
;
import
com.baosight.hggp.hg.kc.domain.HGKC014A
;
import
com.baosight.hggp.hg.kc.domain.HGKC015
;
import
com.baosight.hggp.hg.kc.domain.HGKC015A
;
import
com.baosight.hggp.hg.kc.utils.HGKCUtils
;
import
com.baosight.hggp.hg.kc.utils.HGKCUtils
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005A
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005A
;
...
@@ -1786,5 +1766,97 @@ public class HGKCTools {
...
@@ -1786,5 +1766,97 @@ public class HGKCTools {
}
}
}
}
}
}
public
static
class
HgKc016
{
public
static
HGKC016
getById
(
Long
id
)
{
AssertUtils
.
isEmpty
(
Collections
.
singleton
(
id
),
"打包库存ID不能为空"
);
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"id"
,
id
);
paramMap
.
put
(
"deleteFlag"
,
0
);
List
<
HGKC016
>
list
=
DaoBase
.
getInstance
().
query
(
HGKC016
.
QUERY
,
paramMap
);
return
CollectionUtils
.
isEmpty
(
list
)
?
null
:
list
.
get
(
0
);
}
public
static
List
<
HGKC016
>
getById
(
List
<
Long
>
ids
)
{
if
(
Objects
.
isNull
(
ids
))
{
return
new
ArrayList
<>();
}
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"ids"
,
ids
);
paramMap
.
put
(
"deleteFlag"
,
0
);
List
<
HGKC016
>
list
=
DaoBase
.
getInstance
().
query
(
HGKC016
.
QUERY
,
paramMap
);
return
CollectionUtils
.
isEmpty
(
list
)
?
null
:
list
;
}
}
public
static
class
HgKc016a
{
public
static
List
<
HGKC016A
>
getByParentId
(
Long
parentId
)
{
if
(
Objects
.
isNull
(
parentId
))
{
return
new
ArrayList
<>();
}
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"parentId"
,
parentId
);
paramMap
.
put
(
"deleteFlag"
,
0
);
List
<
HGKC016A
>
list
=
DaoBase
.
getInstance
().
query
(
HGKC016A
.
QUERY
,
paramMap
);
return
CollectionUtils
.
isEmpty
(
list
)
?
null
:
list
;
}
public
static
List
<
HGKC016A
>
getByParentId
(
List
<
Long
>
parentIds
)
{
if
(
Objects
.
isNull
(
parentIds
))
{
return
new
ArrayList
<>();
}
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"parentIds"
,
parentIds
);
paramMap
.
put
(
"deleteFlag"
,
0
);
List
<
HGKC016A
>
list
=
DaoBase
.
getInstance
().
query
(
HGKC016A
.
QUERY
,
paramMap
);
return
CollectionUtils
.
isEmpty
(
list
)
?
null
:
list
;
}
}
public
static
class
HgKc017
{
public
static
HGKC017
getById
(
Long
id
)
{
AssertUtils
.
isEmpty
(
Collections
.
singleton
(
id
),
"打包单ID不能为空!"
);
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"parentId"
,
id
);
paramMap
.
put
(
"deleteFlag"
,
0
);
List
<
HGKC017
>
list
=
DaoBase
.
getInstance
().
query
(
HGKC017
.
QUERY
,
paramMap
);
return
CollectionUtils
.
isEmpty
(
list
)
?
null
:
list
.
get
(
0
);
}
public
static
List
<
HGKC017
>
getById
(
List
<
Long
>
ids
)
{
if
(
Objects
.
isNull
(
ids
))
{
return
new
ArrayList
<>();
}
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"ids"
,
ids
);
paramMap
.
put
(
"deleteFlag"
,
0
);
List
<
HGKC017
>
list
=
DaoBase
.
getInstance
().
query
(
HGKC017
.
QUERY
,
paramMap
);
return
CollectionUtils
.
isEmpty
(
list
)
?
null
:
list
;
}
}
public
static
class
HgKc017a
{
public
static
List
<
HGKC017A
>
getByParentId
(
Long
parentId
)
{
if
(
Objects
.
isNull
(
parentId
))
{
return
new
ArrayList
<>();
}
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"parentId"
,
parentId
);
paramMap
.
put
(
"deleteFlag"
,
0
);
List
<
HGKC017A
>
list
=
DaoBase
.
getInstance
().
query
(
HGKC017A
.
QUERY
,
paramMap
);
return
CollectionUtils
.
isEmpty
(
list
)
?
null
:
list
;
}
public
static
List
<
HGKC017A
>
getByParentId
(
List
<
Long
>
parentIds
)
{
if
(
Objects
.
isNull
(
parentIds
))
{
return
new
ArrayList
<>();
}
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"parentIds"
,
parentIds
);
paramMap
.
put
(
"deleteFlag"
,
0
);
List
<
HGKC017A
>
list
=
DaoBase
.
getInstance
().
query
(
HGKC017A
.
QUERY
,
paramMap
);
return
CollectionUtils
.
isEmpty
(
list
)
?
null
:
list
;
}
}
}
}
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