Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warehouse
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
胡懿
warehouse
Commits
084cb8a6
Commit
084cb8a6
authored
Jul 18, 2023
by
胡懿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改入库表单代码逻辑
parent
eb01a724
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
GoodsController.java
.../jeeplus/modules/warehouse/goods/web/GoodsController.java
+2
-2
DrawQrcodeUtil.java
...jeeplus/modules/warehouse/qrcode/util/DrawQrcodeUtil.java
+3
-1
ShelvesUtil.java
.../jeeplus/modules/warehouse/shelves/utils/ShelvesUtil.java
+2
-2
StorageInfoMapper.xml
...odules/warehouse/storage/mapper/xml/StorageInfoMapper.xml
+5
-0
No files found.
src/main/java/com/jeeplus/modules/warehouse/goods/web/GoodsController.java
View file @
084cb8a6
...
@@ -95,10 +95,10 @@ public class GoodsController extends BaseController {
...
@@ -95,10 +95,10 @@ public class GoodsController extends BaseController {
@RequiresPermissions
(
value
={
"warehouse:goods:goods:view"
,
"warehouse:goods:goods:add"
,
"warehouse:goods:goods:edit"
},
logical
=
Logical
.
OR
)
@RequiresPermissions
(
value
={
"warehouse:goods:goods:view"
,
"warehouse:goods:goods:add"
,
"warehouse:goods:goods:edit"
},
logical
=
Logical
.
OR
)
@RequestMapping
(
value
=
"form/{mode}"
)
@RequestMapping
(
value
=
"form/{mode}"
)
public
String
form
(
@PathVariable
String
mode
,
Goods
goods
,
Model
model
)
{
public
String
form
(
@PathVariable
String
mode
,
Goods
goods
,
Model
model
)
{
if
(
mode
.
equals
(
"add"
))
{
/*
if (mode.equals("add")) {
String batchNum = CodeUtil.code("PC", StaticNumSeq.PC);
String batchNum = CodeUtil.code("PC", StaticNumSeq.PC);
goods.setBatchNum(batchNum);
goods.setBatchNum(batchNum);
}
}
*/
goods
.
setTime
(
new
Date
());
goods
.
setTime
(
new
Date
());
goods
.
setOperator
(
UserUtils
.
getUser
());
goods
.
setOperator
(
UserUtils
.
getUser
());
...
...
src/main/java/com/jeeplus/modules/warehouse/qrcode/util/DrawQrcodeUtil.java
View file @
084cb8a6
...
@@ -21,6 +21,7 @@ import java.io.*;
...
@@ -21,6 +21,7 @@ import java.io.*;
import
java.text.AttributedString
;
import
java.text.AttributedString
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Iterator
;
import
java.util.Iterator
;
import
java.util.Locale
;
public
class
DrawQrcodeUtil
{
public
class
DrawQrcodeUtil
{
/**
/**
...
@@ -253,7 +254,8 @@ public class DrawQrcodeUtil {
...
@@ -253,7 +254,8 @@ public class DrawQrcodeUtil {
,
RenderingHints
.
VALUE_ALPHA_INTERPOLATION_QUALITY
);
,
RenderingHints
.
VALUE_ALPHA_INTERPOLATION_QUALITY
);
g2
.
setRenderingHints
(
rh
);
g2
.
setRenderingHints
(
rh
);
Font
font
=
new
Font
(
"黑体"
,
Font
.
BOLD
,
14
*
qRcodeSize
.
getInitfontSize
());
Font
font
=
new
Font
(
"微软雅黑"
,
Font
.
PLAIN
,
150
);
g2
.
setFont
(
font
);
//设置字体:字体、字号、大小
g2
.
setFont
(
font
);
//设置字体:字体、字号、大小
g2
.
setColor
(
qRcodeSize
.
color
);
//设置背景颜色
g2
.
setColor
(
qRcodeSize
.
color
);
//设置背景颜色
// g2.setBackground(c);
// g2.setBackground(c);
...
...
src/main/java/com/jeeplus/modules/warehouse/shelves/utils/ShelvesUtil.java
View file @
084cb8a6
...
@@ -69,7 +69,7 @@ public class ShelvesUtil {
...
@@ -69,7 +69,7 @@ public class ShelvesUtil {
tem
.
setDelFlag
(
"0"
);
tem
.
setDelFlag
(
"0"
);
List
<
Shelves
>
list
=
shelvesMapper
.
findList
(
tem
);
List
<
Shelves
>
list
=
shelvesMapper
.
findList
(
tem
);
for
(
Shelves
s
:
list
)
{
for
(
Shelves
s
:
list
)
{
CacheUtils
.
put
(
SHELCES_CACHE
,
SHELCES_ID
+
s
.
getId
());
CacheUtils
.
put
(
SHELCES_CACHE
,
SHELCES_ID
+
s
.
getId
()
,
s
);
}
}
shelves
=
(
Shelves
)
CacheUtils
.
get
(
SHELCES_CACHE
,
SHELCES_ID
+
id
);
shelves
=
(
Shelves
)
CacheUtils
.
get
(
SHELCES_CACHE
,
SHELCES_ID
+
id
);
resultList
.
add
(
shelves
);
resultList
.
add
(
shelves
);
...
@@ -99,7 +99,7 @@ public class ShelvesUtil {
...
@@ -99,7 +99,7 @@ public class ShelvesUtil {
tem
.
setDelFlag
(
"0"
);
tem
.
setDelFlag
(
"0"
);
List
<
Warehouse
>
list
=
warehouseMapper
.
findList
(
tem
);
List
<
Warehouse
>
list
=
warehouseMapper
.
findList
(
tem
);
for
(
Warehouse
w
:
list
)
{
for
(
Warehouse
w
:
list
)
{
CacheUtils
.
put
(
WAREHOUSE_CACHE
,
WAREHOUSE_ID
+
w
.
getId
());
CacheUtils
.
put
(
WAREHOUSE_CACHE
,
WAREHOUSE_ID
+
w
.
getId
()
,
w
);
}
}
warehouse
=
(
Warehouse
)
CacheUtils
.
get
(
WAREHOUSE_CACHE
,
WAREHOUSE_ID
+
id
);
warehouse
=
(
Warehouse
)
CacheUtils
.
get
(
WAREHOUSE_CACHE
,
WAREHOUSE_ID
+
id
);
resultList
.
add
(
warehouse
);
resultList
.
add
(
warehouse
);
...
...
src/main/java/com/jeeplus/modules/warehouse/storage/mapper/xml/StorageInfoMapper.xml
View file @
084cb8a6
...
@@ -23,6 +23,8 @@
...
@@ -23,6 +23,8 @@
type.name AS "type.name",
type.name AS "type.name",
type.code AS "type.code",
type.code AS "type.code",
type.amount AS "type.amount",
type.unit AS "type.unit",
qr.code AS "qrCode.code",
qr.code AS "qrCode.code",
qr.state AS "qrCode.state"
qr.state AS "qrCode.state"
...
@@ -122,6 +124,7 @@
...
@@ -122,6 +124,7 @@
warehouse_id,
warehouse_id,
qr_id,
qr_id,
amount,
amount,
num,
remarks,
remarks,
create_by,
create_by,
create_date,
create_date,
...
@@ -139,6 +142,7 @@
...
@@ -139,6 +142,7 @@
#{warehouseIds},
#{warehouseIds},
#{qrCode.id},
#{qrCode.id},
#{amount},
#{amount},
#{num},
#{remarks},
#{remarks},
#{createBy.id},
#{createBy.id},
#{createDate},
#{createDate},
...
@@ -158,6 +162,7 @@
...
@@ -158,6 +162,7 @@
shelves_id = #{shelvesIds},
shelves_id = #{shelvesIds},
warehouse_id = #{warehouseIds},
warehouse_id = #{warehouseIds},
amount = #{amount},
amount = #{amount},
num = #{num},
remarks = #{remarks},
remarks = #{remarks},
update_by = #{updateBy.id},
update_by = #{updateBy.id},
update_date = #{updateDate}
update_date = #{updateDate}
...
...
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