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
50cb8d4b
Commit
50cb8d4b
authored
Oct 20, 2022
by
wanglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
f624ef9c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
7 deletions
+32
-7
WeldCodeEnum.java
...m/yeejoin/amos/boot/module/ugp/api/Enum/WeldCodeEnum.java
+1
-3
WeldMethodEnum.java
...yeejoin/amos/boot/module/ugp/api/Enum/WeldMethodEnum.java
+26
-0
VerifyServiceImpl.java
...s/boot/module/ugp/biz/service/impl/VerifyServiceImpl.java
+3
-3
WeldServiceImpl.java
...mos/boot/module/ugp/biz/service/impl/WeldServiceImpl.java
+2
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/Enum/WeldCodeEnum.java
View file @
50cb8d4b
...
@@ -13,12 +13,10 @@ import java.util.Map;
...
@@ -13,12 +13,10 @@ import java.util.Map;
public
enum
WeldCodeEnum
{
public
enum
WeldCodeEnum
{
//焊口编码赋码状态
//焊口编码赋码状态
未赋值
(
"未赋值"
,
"0"
),
未赋值
(
"未赋值"
,
"0"
),
已赋值
(
"已赋值"
,
"1"
)
,
已赋值
(
"已赋值"
,
"1"
)
;
/**
/**
* 焊口编码赋码方式
* 焊口编码赋码方式
*/
*/
自动赋码
(
"自动赋码"
,
"0"
),
手动赋码
(
"手动赋码"
,
"1"
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/Enum/WeldMethodEnum.java
0 → 100644
View file @
50cb8d4b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
Enum
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
java.util.HashMap
;
import
java.util.Map
;
@Getter
@AllArgsConstructor
public
enum
WeldMethodEnum
{
自动赋码
(
"自动赋码"
,
"0"
),
手动赋码
(
"手动赋码"
,
"1"
);
private
String
name
;
private
String
state
;
public
static
final
Map
<
String
,
String
>
map
=
new
HashMap
<>();
static
{
for
(
WeldMethodEnum
weldMethodEnum:
WeldMethodEnum
.
values
()){
map
.
put
(
weldMethodEnum
.
getState
(),
weldMethodEnum
.
getName
());
}
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/VerifyServiceImpl.java
View file @
50cb8d4b
...
@@ -216,9 +216,9 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
...
@@ -216,9 +216,9 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
if
(
i
)
{
if
(
i
)
{
verify
.
setStatus
(
VerifyEnum
.
已通过
.
getStatus
());
verify
.
setStatus
(
VerifyEnum
.
已通过
.
getStatus
());
LambdaQueryWrapper
<
Weld
>
wrapper
1
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
Weld
>
wrapper
Weld
=
new
LambdaQueryWrapper
<>();
wrapper
1
.
eq
(
Weld:
:
getCode
,
jsonObject
.
getString
(
"code"
));
wrapper
Weld
.
eq
(
Weld:
:
getCode
,
jsonObject
.
getString
(
"code"
));
Weld
weld
=
weldMapper
.
selectOne
(
wrapper
1
);
Weld
weld
=
weldMapper
.
selectOne
(
wrapper
Weld
);
weld
.
setSuperInspecStatus
(
StageEnum
.
焊接工艺
.
getStage
());
weld
.
setSuperInspecStatus
(
StageEnum
.
焊接工艺
.
getStage
());
weldService
.
updateById
(
weld
);
weldService
.
updateById
(
weld
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/WeldServiceImpl.java
View file @
50cb8d4b
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.WeldCodeEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.WeldCodeEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.WeldMethodEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.WeldDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.WeldDto
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.SuperviseRule
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.SuperviseRule
;
...
@@ -159,7 +160,7 @@ class WeldServiceImpl extends BaseService<WeldDto, Weld, WeldMapper> implements
...
@@ -159,7 +160,7 @@ class WeldServiceImpl extends BaseService<WeldDto, Weld, WeldMapper> implements
weld
.
setInstallCompany
(
project
.
getInstallationUnitId
());
weld
.
setInstallCompany
(
project
.
getInstallationUnitId
());
weld
.
setCode
(
code
);
weld
.
setCode
(
code
);
weld
.
setRegion
(
project
.
getAddress
());
weld
.
setRegion
(
project
.
getAddress
());
weld
.
setCodingMethod
(
Weld
Code
Enum
.
自动赋码
.
getState
());
weld
.
setCodingMethod
(
Weld
Method
Enum
.
自动赋码
.
getState
());
weld
.
setCodingStatus
(
WeldCodeEnum
.
已赋值
.
getState
());
weld
.
setCodingStatus
(
WeldCodeEnum
.
已赋值
.
getState
());
weld
.
setCodingDate
(
new
Date
());
weld
.
setCodingDate
(
new
Date
());
welds
.
add
(
weld
);
welds
.
add
(
weld
);
...
...
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