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
703aba19
Commit
703aba19
authored
Jan 31, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.检验设备冗余设备监管码,3方对接及页面回显需要
2.检验结果表冗余设备监管码,3方对接及页面回显需要
parent
c74ca2ba
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
8 deletions
+24
-8
JyjcInspectionApplicationEquip.java
...odule/jyjc/api/entity/JyjcInspectionApplicationEquip.java
+6
-0
JyjcInspectionResult.java
...mos/boot/module/jyjc/api/entity/JyjcInspectionResult.java
+6
-0
JyjcInspectionApplicationEquipModel.java
...e/jyjc/api/model/JyjcInspectionApplicationEquipModel.java
+5
-3
JyjcInspectionResultMapper.xml
.../src/main/resources/mapper/JyjcInspectionResultMapper.xml
+1
-0
JyjcInspectionApplicationEquipServiceImpl.java
...rvice/impl/JyjcInspectionApplicationEquipServiceImpl.java
+1
-1
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+2
-3
JyjcInspectionResultServiceImpl.java
...yjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
+3
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/entity/JyjcInspectionApplicationEquip.java
View file @
703aba19
...
...
@@ -59,4 +59,10 @@ public class JyjcInspectionApplicationEquip extends BaseEntity {
@TableField
(
"equ_define"
)
private
String
equDefine
;
/**
* 监管码
*/
@TableField
(
value
=
"supervisory_code"
)
private
String
supervisoryCode
;
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/entity/JyjcInspectionResult.java
View file @
703aba19
...
...
@@ -195,4 +195,10 @@ public class JyjcInspectionResult extends BaseEntity {
*/
@TableField
(
value
=
"application_unit_name"
)
private
String
applicationUnitName
;
/**
* 监管码
*/
@TableField
(
value
=
"supervisory_code"
)
private
String
supervisoryCode
;
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/model/JyjcInspectionApplicationEquipModel.java
View file @
703aba19
...
...
@@ -99,16 +99,18 @@ public class JyjcInspectionApplicationEquipModel extends BaseModel {
@ApiModelProperty
(
value
=
"设备名称 "
)
private
String
productName
;
@ApiModelProperty
(
value
=
"品牌"
)
private
String
brandName
;
@ApiModelProperty
(
value
=
"监管码"
)
private
String
supervisoryCode
;
@ApiModelProperty
(
value
=
"型号"
)
private
String
equType
;
@ApiModelProperty
(
value
=
"制造单位名称"
)
private
String
produceUnitName
;
@ApiModelProperty
(
value
=
"制造日期"
)
private
String
produceDate
;
// @ApiModelProperty(value = "使用年限")
// private String use;
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcInspectionResultMapper.xml
View file @
703aba19
...
...
@@ -104,6 +104,7 @@
ibjri.use_org_code,
res.equ_define,
res.result_type,
res.supervisory_code,
ibjui.ADDRESS equUseAddress
FROM
tz_jyjc_inspection_result res
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationEquipServiceImpl.java
View file @
703aba19
...
...
@@ -35,7 +35,7 @@ public class JyjcInspectionApplicationEquipServiceImpl extends BaseService<JyjcI
return
this
.
queryForList
(
""
,
false
);
}
public
List
<
JyjcInspectionApplicationEquipModel
>
listApplicationEquipByApplicationSeq
(
Long
applicationSeq
)
{
public
List
listApplicationEquipByApplicationSeq
(
Long
applicationSeq
)
{
// this.queryForList 尽量不要重载方法
List
<
JyjcInspectionApplicationEquip
>
entitys
=
this
.
lambdaQuery
().
eq
(
JyjcInspectionApplicationEquip:
:
getApplicationSeq
,
applicationSeq
).
list
();
if
(
ValidationUtil
.
isEmpty
(
entitys
))
{
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationServiceImpl.java
View file @
703aba19
...
...
@@ -194,7 +194,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
equipInfo
.
setEquList
(
equip
.
getEquListCode
());
equipInfo
.
setEquipUnicode
(
equip
.
getSequenceNbr
());
equipInfo
.
setEquCategory
(
equip
.
getEquCategoryCode
());
// equipInfo.setApplicationSeq(model.getSequenceNbr
());
equipInfo
.
setSupervisoryCode
(
equip
.
getSupervisoryCode
());
equipInfos
.
add
(
equipInfo
);
}
model
.
setEquList
(
model
.
getEquip
().
get
(
0
).
getOrDefault
(
"EQU_LIST"
,
""
).
toString
());
...
...
@@ -532,7 +532,6 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
lambda
.
eq
(
JyjcInspectionApplication:
:
getSequenceNbr
,
sequenceNbr
);
JyjcInspectionApplication
entity
=
this
.
getBaseMapper
().
selectOne
(
lambda
);
ArrayList
<
String
>
roleList
=
new
ArrayList
<>();
String
taskId
=
entity
.
getNextTaskId
();
//组装信息
TaskResultDTO
task
=
new
TaskResultDTO
();
...
...
@@ -606,7 +605,6 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
resultModel
.
setResultStatus
(
ResultStatusEnum
.
NO_RESULT
.
getCode
());
resultModel
.
setApplicationDate
(
inspectionApplicationModel
.
getApplicationDate
());
resultModel
.
setResultType
(
inspectionApplicationModel
.
getResultType
());
//resultModel.setResultType("input");
resultModel
.
setInspectionType
(
inspectionApplicationModel
.
getInspectionType
());
resultModel
.
setInspectionTypeName
(
this
.
getDictNameByCode
(
inspectionApplicationModel
.
getInspectionType
()));
// 解析设备
...
...
@@ -614,6 +612,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
resultModel
.
setResultNo
(
codes
.
get
(
i
));
//设备唯一标识
resultModel
.
setEquipUnicode
(
applicationEquipModels
.
get
(
i
).
getEquipUnicode
());
resultModel
.
setSupervisoryCode
(
applicationEquipModels
.
get
(
i
).
getSupervisoryCode
());
resultModel
.
setEquDefine
(
applicationEquipModels
.
get
(
i
).
getEquDefine
());
resultModel
.
setEquCategory
(
applicationEquipModels
.
get
(
i
).
getEquCategory
());
resultModel
.
setEquList
(
applicationEquipModels
.
get
(
i
).
getEquList
());
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
View file @
703aba19
...
...
@@ -420,6 +420,7 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
resultParam
.
setRecUserId
(
RequestContext
.
getExeUserId
());
resultParam
.
setRecDate
(
new
Date
());
resultParam
.
setRemark
(
"同步数据"
);
// 将设备种类code换成技术参数枚举
resultParam
.
setParamType
(
this
.
getTypeByEquipList
(
jyjcInspectionResult
.
getEquList
()));
resultParams
.
add
(
resultParam
);
}
...
...
@@ -427,7 +428,8 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
private
String
getTypeByEquipList
(
String
equList
)
{
EquipCategoryEnum
categoryEnum
=
EquipCategoryEnum
.
of
(
Integer
.
parseInt
(
equList
));
assert
categoryEnum
!=
null
;
return
StrUtil
.
toCamelCase
(
categoryEnum
.
name
());
// 前端为枚举类名称的驼峰形式且首字母大写,故进行格式转化换
return
StrUtil
.
upperFirst
(
StrUtil
.
toCamelCase
(
categoryEnum
.
name
()));
}
private
void
fillResultAttachmentData
(
JyjcInspectionResultDataModel
r
,
JyjcInspectionResult
jyjcInspectionResult
,
List
<
JyjcInspectionResultAttachment
>
resultAttachments
)
{
...
...
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