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
2f572f2b
Commit
2f572f2b
authored
Dec 07, 2022
by
曹盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验和项目资源关联,修改企业审核,修改焊评依赖
parent
649def05
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
61 deletions
+42
-61
CompanyMapper.java
...eejoin/amos/boot/module/ugp/api/mapper/CompanyMapper.java
+3
-0
CompanyController.java
...mos/boot/module/ugp/biz/controller/CompanyController.java
+1
-1
CompanyServiceImpl.java
.../boot/module/ugp/biz/service/impl/CompanyServiceImpl.java
+2
-5
ProjectResourceServiceImpl.java
...dule/ugp/biz/service/impl/ProjectResourceServiceImpl.java
+19
-0
VerifyServiceImpl.java
...s/boot/module/ugp/biz/service/impl/VerifyServiceImpl.java
+15
-54
pom.xml
amos-boot-system-ugp/pom.xml
+2
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/mapper/CompanyMapper.java
View file @
2f572f2b
...
@@ -7,6 +7,7 @@ import com.yeejoin.amos.boot.module.ugp.api.dto.CompanyDto;
...
@@ -7,6 +7,7 @@ import com.yeejoin.amos.boot.module.ugp.api.dto.CompanyDto;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Company
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Company
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
java.util.List
;
import
java.util.List
;
...
@@ -21,4 +22,6 @@ public interface CompanyMapper extends BaseMapper<Company> {
...
@@ -21,4 +22,6 @@ public interface CompanyMapper extends BaseMapper<Company> {
IPage
<
CompanyDto
>
queryCompanyPage
(
IPage
<
CompanyDto
>
page
,
Company
companyParam
);
IPage
<
CompanyDto
>
queryCompanyPage
(
IPage
<
CompanyDto
>
page
,
Company
companyParam
);
CompanyDto
queryBySeq1
(
Long
sequenceNbr
);
CompanyDto
queryBySeq1
(
Long
sequenceNbr
);
@Select
(
"select * from tz_ugp_company where sequence_nbr= #{sequenceNbr}"
)
Company
qById
(
Long
sequenceNbr
);
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/CompanyController.java
View file @
2f572f2b
...
@@ -222,7 +222,7 @@ public class CompanyController extends BaseController {
...
@@ -222,7 +222,7 @@ public class CompanyController extends BaseController {
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"check"
)
@PostMapping
(
value
=
"
/
check"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据sequenceNbr更新,并创建单位及管理员"
,
notes
=
"根据sequenceNbr更新,并创建单位及管理员"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据sequenceNbr更新,并创建单位及管理员"
,
notes
=
"根据sequenceNbr更新,并创建单位及管理员"
)
public
ResponseModel
<
Boolean
>
companyCheck
(
@RequestBody
CompanyDto
model
,
Long
sequenceNbr
,
String
bizOrgType
)
throws
Exception
{
public
ResponseModel
<
Boolean
>
companyCheck
(
@RequestBody
CompanyDto
model
,
Long
sequenceNbr
,
String
bizOrgType
)
throws
Exception
{
return
ResponseHelper
.
buildResponse
(
companyServiceImpl
.
companyCheck
(
model
,
sequenceNbr
,
bizOrgType
));
return
ResponseHelper
.
buildResponse
(
companyServiceImpl
.
companyCheck
(
model
,
sequenceNbr
,
bizOrgType
));
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/CompanyServiceImpl.java
View file @
2f572f2b
...
@@ -173,12 +173,9 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
...
@@ -173,12 +173,9 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
Map
<
Long
,
List
<
Long
>>
roleSeqsMap
=
new
HashMap
<>();
Map
<
Long
,
List
<
Long
>>
roleSeqsMap
=
new
HashMap
<>();
Map
<
Long
,
List
<
RoleModel
>>
orgRoles
=
new
HashMap
<>();
Map
<
Long
,
List
<
RoleModel
>>
orgRoles
=
new
HashMap
<>();
Set
<
String
>
appCodeSet
=
new
HashSet
<>();
Set
<
String
>
appCodeSet
=
new
HashSet
<>();
Company
company
=
companyMapper
.
selectById
(
sequenceNbr
);
if
(!
ValidationUtil
.
isEmpty
(
company
)&&
"已审核"
.
equals
(
company
.
getApproved
())){
Company
company
=
this
.
getById
(
sequenceNbr
);
company
.
setApproved
(
model
.
getApproved
());
company
.
setApproved
(
model
.
getApproved
());
if
(
company
.
getApproved
().
equals
(
"已审核"
)){
final
CompanyModel
companyModel
=
new
CompanyModel
();
final
CompanyModel
companyModel
=
new
CompanyModel
();
AgencyUserModel
agencyUserModel
=
new
AgencyUserModel
();
AgencyUserModel
agencyUserModel
=
new
AgencyUserModel
();
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectResourceServiceImpl.java
View file @
2f572f2b
...
@@ -360,4 +360,22 @@ public class ProjectResourceServiceImpl extends BaseService<ProjectResourceDto,P
...
@@ -360,4 +360,22 @@ public class ProjectResourceServiceImpl extends BaseService<ProjectResourceDto,P
return
page
;
return
page
;
}
}
public
ProjectResource
getprojectResource
(
Long
resourceId
,
Long
sequenceNbr
,
String
type
){
LambdaQueryWrapper
<
ProjectResource
>
wrapper
=
new
LambdaQueryWrapper
<>();
ProjectResource
projectResource
=
null
;
if
(
sequenceNbr
==
null
)
{
wrapper
.
eq
(
resourceId
!=
null
,
ProjectResource:
:
getResourceId
,
resourceId
)
.
eq
(!
ValidationUtil
.
isEmpty
(
type
),
ProjectResource:
:
getType
,
type
);
projectResource
=
projectResourceMapper
.
selectOne
(
wrapper
);
return
projectResource
;
}
if
(
resourceId
==
null
)
{
wrapper
.
eq
(
resourceId
!=
null
,
ProjectResource:
:
getSequenceNbr
,
sequenceNbr
)
.
eq
(!
ValidationUtil
.
isEmpty
(
type
),
ProjectResource:
:
getType
,
type
);
projectResource
=
projectResourceMapper
.
selectOne
(
wrapper
);
return
projectResource
;
}
return
projectResource
;
}
}
}
\ No newline at end of file
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 @
2f572f2b
...
@@ -3,7 +3,6 @@ import com.alibaba.fastjson.JSONArray;
...
@@ -3,7 +3,6 @@ import com.alibaba.fastjson.JSONArray;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
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.*
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.*
;
...
@@ -11,85 +10,44 @@ import com.yeejoin.amos.boot.module.ugp.api.dto.*;
...
@@ -11,85 +10,44 @@ import com.yeejoin.amos.boot.module.ugp.api.dto.*;
import
com.yeejoin.amos.boot.module.ugp.api.entity.*
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.*
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.VerifyMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.VerifyMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.WeldMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.WeldMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IVerifyService
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IVerifyService
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
jnr.ffi.Struct
;
import
lombok.var
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.ValidationUtils
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
javax.imageio.ImageIO
;
import
java.awt.*
;
import
java.awt.image.BufferedImage
;
import
java.io.File
;
import
java.io.IOException
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
import
java.util.List
;
import
java.util.List
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
static
org
.
springframework
.
data
.
elasticsearch
.
annotations
.
DateFormat
.
year
;
/**
/**
* 智能监检管理表服务实现类
* 智能监检管理表服务实现类
*
* @author system_generator
* @author system_generator
* @date 2022-09-22
* @date 2022-09-22
*/
*/
@Service
@Service
public
class
VerifyServiceImpl
extends
BaseService
<
VerifyDto
,
Verify
,
VerifyMapper
>
implements
IVerifyService
{
public
class
VerifyServiceImpl
extends
BaseService
<
VerifyDto
,
Verify
,
VerifyMapper
>
implements
IVerifyService
{
@Autowired
@Autowired
InstallNoticeServiceImpl
installNoticeService
;
InstallNoticeServiceImpl
installNoticeService
;
@Autowired
@Autowired
WeldServiceImpl
weldService
;
WeldServiceImpl
weldService
;
@Autowired
@Autowired
WeldMapper
weldMapper
;
WeldMapper
weldMapper
;
@Autowired
@Autowired
OrgServiceImpl
orgService
;
OrgServiceImpl
orgService
;
@Autowired
@Autowired
private
MaterialServiceImpl
materialService
;
private
MaterialServiceImpl
materialService
;
@Autowired
@Autowired
VerifyMapper
verifyMapper
;
VerifyMapper
verifyMapper
;
@Autowired
@Autowired
private
EquipmentServiceImpl
equipmentService
;
private
EquipmentServiceImpl
equipmentService
;
@Autowired
@Autowired
private
QualityProblemServiceImpl
qualityProblemService
;
private
QualityProblemServiceImpl
qualityProblemService
;
@Autowired
@Autowired
private
ProjectServiceImpl
projectServiceImpl
;
private
ProjectServiceImpl
projectServiceImpl
;
...
@@ -97,7 +55,6 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
...
@@ -97,7 +55,6 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
private
ProjectResourceServiceImpl
projectResourceService
;
private
ProjectResourceServiceImpl
projectResourceService
;
@Autowired
@Autowired
private
AttachmentServiceImpl
attachmentService
;
private
AttachmentServiceImpl
attachmentService
;
@Autowired
@Autowired
private
ProblemInitiationServiceImpl
problemInitiationService
;
private
ProblemInitiationServiceImpl
problemInitiationService
;
@Autowired
@Autowired
...
@@ -125,6 +82,7 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
...
@@ -125,6 +82,7 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
* stage 阶段
* stage 阶段
* page 分页
* page 分页
*/
*/
@Override
public
Page
<
SmartListDto
>
commonality
(
String
stage
,
Page
<
SmartListDto
>
page
,
SmartListDto
smartListDto
){
public
Page
<
SmartListDto
>
commonality
(
String
stage
,
Page
<
SmartListDto
>
page
,
SmartListDto
smartListDto
){
Page
<
Verify
>
objectPage
=
new
Page
<>(
);
Page
<
Verify
>
objectPage
=
new
Page
<>(
);
objectPage
.
setCurrent
(
page
.
getCurrent
());
objectPage
.
setCurrent
(
page
.
getCurrent
());
...
@@ -304,9 +262,9 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
...
@@ -304,9 +262,9 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
//失败
//失败
//属性赋值
//属性赋值
jsonObject
.
put
(
CheckEnum
.
符合
.
getKey
(),
CheckEnum
.
符合
.
getName
());
//人脸
jsonObject
.
put
(
CheckEnum
.
符合
.
getKey
(),
CheckEnum
.
符合
.
getName
());
//人脸
if
(
welderId
!=
null
)
{
if
(
welderId
!=
null
)
{
ProjectResource
resource
=
projectResourceService
.
getprojectResource
(
welderId
,
null
,
"welder"
);
if
(!
ValidationUtil
.
isEmpty
(
resource
))
{
Map
map
=
orgService
.
getdetialInfo
(
welderId
.
toString
(
));
Map
map
=
orgService
.
getdetialInfo
(
welderId
.
toString
(
));
String
certValidDate
=
String
.
valueOf
(
map
.
get
(
"certValidDate"
));
String
certValidDate
=
String
.
valueOf
(
map
.
get
(
"certValidDate"
));
if
(
certValidDate
!=
null
&&
!
certValidDate
.
equals
(
""
))
{
if
(
certValidDate
!=
null
&&
!
certValidDate
.
equals
(
""
))
{
...
@@ -326,6 +284,7 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
...
@@ -326,6 +284,7 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
}
}
}
}
}
}
}
Boolean
flag
=
true
;
Boolean
flag
=
true
;
if
(!
CheckEnum
.
符合
.
getName
().
equals
(
jsonObject
.
getString
(
CheckEnum
.
符合
.
getKey
()))
||
if
(!
CheckEnum
.
符合
.
getName
().
equals
(
jsonObject
.
getString
(
CheckEnum
.
符合
.
getKey
()))
||
!
CheckEnum
.
有效
.
getName
().
equals
(
jsonObject
.
getString
(
CheckEnum
.
有效
.
getKey
())))
{
!
CheckEnum
.
有效
.
getName
().
equals
(
jsonObject
.
getString
(
CheckEnum
.
有效
.
getKey
())))
{
...
@@ -351,8 +310,10 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
...
@@ -351,8 +310,10 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
/**校验*/
/**校验*/
Boolean
flag
=
false
;
Boolean
flag
=
false
;
if
(!
ValidationUtil
.
isEmpty
(
materialCode
))
{
if
(!
ValidationUtil
.
isEmpty
(
materialCode
))
{
//由于通过管材编号查询,项目资源中没有管材编号,先查管材资源,在通过管材资源id查询项目资源
Material
material
=
materialService
.
getMaterial
(
materialCode
);
Material
material
=
materialService
.
getMaterial
(
materialCode
);
if
(!
ValidationUtil
.
isEmpty
(
material
))
{
ProjectResource
resource
=
projectResourceService
.
getprojectResource
(
null
,
material
.
getSequenceNbr
(),
"material"
);
if
(!
ValidationUtil
.
isEmpty
(
material
)
&&
!
ValidationUtil
.
isEmpty
(
resource
))
{
jsonObject
.
put
(
CheckEnum
.
有效
.
getKey
(),
CheckEnum
.
有效
.
getName
());
jsonObject
.
put
(
CheckEnum
.
有效
.
getKey
(),
CheckEnum
.
有效
.
getName
());
jsonObject
.
put
(
CheckEnum
.
符合
.
getKey
(),
CheckEnum
.
符合
.
getName
());
jsonObject
.
put
(
CheckEnum
.
符合
.
getKey
(),
CheckEnum
.
符合
.
getName
());
if
(!
ValidationUtil
.
isEmpty
(
material
.
getManufacturer
()))
{
if
(!
ValidationUtil
.
isEmpty
(
material
.
getManufacturer
()))
{
...
@@ -384,8 +345,9 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
...
@@ -384,8 +345,9 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
Boolean
flag
=
false
;
Boolean
flag
=
false
;
//后面需要修改此处
//后面需要修改此处
if
(!
ValidationUtil
.
isEmpty
(
weldingId
))
{
if
(!
ValidationUtil
.
isEmpty
(
weldingId
))
{
ProjectResource
resource
=
projectResourceService
.
getprojectResource
(
weldingId
,
null
,
"material"
);
Equipment
equipment
=
equipmentService
.
getEquipment
(
weldingId
);
Equipment
equipment
=
equipmentService
.
getEquipment
(
weldingId
);
if
(!
ValidationUtil
.
isEmpty
(
equipment
))
{
if
(!
ValidationUtil
.
isEmpty
(
equipment
)
&&
!
ValidationUtil
.
isEmpty
(
resource
)
)
{
jsonObject
.
put
(
CheckEnum
.
有效
.
getKey
(),
CheckEnum
.
有效
.
getName
());
jsonObject
.
put
(
CheckEnum
.
有效
.
getKey
(),
CheckEnum
.
有效
.
getName
());
jsonObject
.
put
(
CheckEnum
.
符合
.
getKey
(),
CheckEnum
.
符合
.
getName
());
jsonObject
.
put
(
CheckEnum
.
符合
.
getKey
(),
CheckEnum
.
符合
.
getName
());
jsonObject
.
put
(
CheckEnum
.
合格期内
.
getKey
(),
CheckEnum
.
合格期内
.
getName
());
jsonObject
.
put
(
CheckEnum
.
合格期内
.
getKey
(),
CheckEnum
.
合格期内
.
getName
());
...
@@ -396,7 +358,6 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
...
@@ -396,7 +358,6 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
jsonObject
.
put
(
"facilityNumber"
,
equipment
.
getCode
());
jsonObject
.
put
(
"facilityNumber"
,
equipment
.
getCode
());
}
}
flag
=
true
;
flag
=
true
;
}
else
{
}
else
{
jsonObject
.
put
(
CheckEnum
.
已过期
.
getKey
(),
CheckEnum
.
已过期
.
getName
());
jsonObject
.
put
(
CheckEnum
.
已过期
.
getKey
(),
CheckEnum
.
已过期
.
getName
());
jsonObject
.
put
(
CheckEnum
.
不符合
.
getKey
(),
CheckEnum
.
不符合
.
getName
());
jsonObject
.
put
(
CheckEnum
.
不符合
.
getKey
(),
CheckEnum
.
不符合
.
getName
());
...
@@ -463,8 +424,6 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
...
@@ -463,8 +424,6 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
}
}
//效验通过
//效验通过
this
.
addSuccessData
(
verify
,
null
,
jsonObject
);
this
.
addSuccessData
(
verify
,
null
,
jsonObject
);
/**注意: app那边没有 暂时耐压假数据*/
/**注意: app那边没有 暂时耐压假数据*/
Verify
v1
=
new
Verify
(
);
Verify
v1
=
new
Verify
(
);
JSONObject
object
=
new
JSONObject
(
);
JSONObject
object
=
new
JSONObject
(
);
...
@@ -690,8 +649,11 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
...
@@ -690,8 +649,11 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
String
stage
=
StageEnum
.
getDetailVerifyNameMap
.
get
(
jsonObject
.
getString
(
"stage"
));
//获取效验阶段
String
stage
=
StageEnum
.
getDetailVerifyNameMap
.
get
(
jsonObject
.
getString
(
"stage"
));
//获取效验阶段
qualityProblem
.
setGenerateStage
(
stage
);
qualityProblem
.
setGenerateStage
(
stage
);
qualityProblem
.
setProblemDescribe
(
stage
+
"不通过"
);
qualityProblem
.
setProblemDescribe
(
stage
+
"不通过"
);
//获取智能监检表id
//获取智能监检表id(项目id和检验时间)
Verify
verify1
=
verifyMapper
.
selectByTargetInfo
(
verify
.
getTargetInfo
(
));
LambdaQueryWrapper
<
Verify
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
Verify:
:
getVerifyTime
,
verify
.
getVerifyTime
())
.
eq
(
Verify:
:
getProjectId
,
verify
.
getProjectId
());
Verify
verify1
=
verifyMapper
.
selectOne
(
wrapper
);
Long
sequenceNbr
=
verify1
.
getSequenceNbr
(
);
Long
sequenceNbr
=
verify1
.
getSequenceNbr
(
);
qualityProblem
.
setStageVerifyId
(
sequenceNbr
);
qualityProblem
.
setStageVerifyId
(
sequenceNbr
);
qualityProblemService
.
save
(
qualityProblem
);
qualityProblemService
.
save
(
qualityProblem
);
...
@@ -718,11 +680,10 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
...
@@ -718,11 +680,10 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
String
code
=
jsonObject
.
getString
(
"code"
);
//获取焊口编号
String
code
=
jsonObject
.
getString
(
"code"
);
//获取焊口编号
// 通过焊口码和项目id查询
// 通过焊口码和项目id查询
if
(!
StringUtils
.
isEmpty
(
code
)&&
verify
.
getProjectId
()
!=
null
)
{
if
(!
StringUtils
.
isEmpty
(
code
)&&
verify
.
getProjectId
()
!=
null
)
{
Weld
weld
=
weldMapper
.
getWeldByCodeAndProjectId
(
code
,
verify
.
getProjectId
());
Weld
weld
=
weldMapper
.
getWeldByCodeAndProjectId
(
code
,
verify
.
getProjectId
());
if
(
weld
!=
null
)
{
if
(
weld
!=
null
)
{
//判断是哪一个阶段
//判断是哪一个阶段
String
stage
=
verify
.
getStage
(
);
String
stage
=
verify
.
getStage
();
Map
<
String
,
String
>
mapEnum
=
StageEnum
.
getStageByNameMap
;
Map
<
String
,
String
>
mapEnum
=
StageEnum
.
getStageByNameMap
;
//修改的值
//修改的值
String
name
=
mapEnum
.
get
(
stage
);
String
name
=
mapEnum
.
get
(
stage
);
...
...
amos-boot-system-ugp/pom.xml
View file @
2f572f2b
...
@@ -28,7 +28,8 @@
...
@@ -28,7 +28,8 @@
<dependency>
<dependency>
<groupId>
fakepath
</groupId>
<groupId>
fakepath
</groupId>
<artifactId>
ugp-welding-evaluation-inspection-sdk
</artifactId>
<artifactId>
ugp-welding-evaluation-inspection-sdk
</artifactId>
<version>
1.0
</version>
<version>
1.2.0
</version>
<type>
pom
</type>
</dependency>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
...
...
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