Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
0e18137d
Commit
0e18137d
authored
Jan 26, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加按钮显示影藏
parent
dfb525ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
16 deletions
+21
-16
AcceptanceDto.java
.../yeejoin/amos/boot/module/hygf/api/dto/AcceptanceDto.java
+2
-2
NumberUtil.java
...om/yeejoin/amos/boot/module/hygf/api/util/NumberUtil.java
+17
-14
AcceptanceMapper.xml
...-api/src/main/resources/mapper/mysql/AcceptanceMapper.xml
+2
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/AcceptanceDto.java
View file @
0e18137d
...
...
@@ -94,8 +94,8 @@ public class AcceptanceDto extends BaseDto {
private
Long
peasantHouseholdId
;
//验收单id
private
Long
acceptanceCheckItemId
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/util/NumberUtil.java
View file @
0e18137d
...
...
@@ -35,30 +35,33 @@ public class NumberUtil {
//当天生成4位随机不重复数
public
static
Integer
getnum
(){
Random
rand
=
new
Random
();
if
(
needQueryResProductList
.
containsKey
(
"num"
)&&
needQueryResProductList
.
get
(
"num"
)!=
null
&&
needQueryResProductList
.
get
(
"num"
)<
9999
){
Integer
num
=
needQueryResProductList
.
get
(
"num"
)+
rand
.
nextInt
(
100
)
+
1
;
needQueryResProductList
.
put
(
"num"
,
num
);
return
num
;
}
else
{
int
num
=
1000
+
rand
.
nextInt
(
1
00
)
+
1
;
needQueryResProductList
.
put
(
"num"
,
num
);
if
(
needQueryResProductList
.
containsKey
(
"num"
)&&
needQueryResProductList
.
get
(
"num"
)!=
null
&&
needQueryResProductList
.
get
(
"num"
)<
9999
){
Integer
num
=
needQueryResProductList
.
get
(
"num"
)+
rand
.
nextInt
(
100
)
+
1
;
needQueryResProductList
.
put
(
"num"
,
num
);
return
num
;
}
else
{
int
num
=
rand
.
nextInt
(
90
00
)
+
1
;
needQueryResProductList
.
put
(
"num"
,
num
);
return
num
;
}
return
num
;
}
}
public
static
String
getCode
(
String
type
,
String
code
,
String
address
){
code
=
code
+
getChineseStr
(
address
.
replace
(
"省"
,
""
)
.
replace
(
"市"
,
""
)
.
replace
(
"区"
,
""
)
.
replace
(
"县"
,
""
)
.
replace
(
","
,
""
));
.
replace
(
"市"
,
""
)
.
replace
(
"区"
,
""
)
.
replace
(
"县"
,
""
)
.
replace
(
","
,
""
));
code
=
type
+
code
+
dateFormat
()+
getnum
();
return
code
;
return
code
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/AcceptanceMapper.xml
View file @
0e18137d
...
...
@@ -33,6 +33,8 @@
bga.next_executor_ids nextExecutorIds,
bga.next_node_key nextNodeKey,
(select hygf_acceptance_check_item.sequence_nbr from hygf_acceptance_check_item where hygf_acceptance_check_item.work_order_power_station_id=bga.work_order_power_station_id LIMIT 1) acceptanceCheckItemId,
hygf_work_order.region_company_id regionCompanyId,
ph.regional_companies_code AS regionalCompaniesCode,
ph.regional_companies_name AS regionalCompaniesName,
...
...
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