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
a28dbe5f
Commit
a28dbe5f
authored
Jul 10, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):气瓶批量导入接口修改
parent
984e359d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
MyBatisPlusCodeGeneratorJyjc.java
...s/boot/biz/common/utils/MyBatisPlusCodeGeneratorJyjc.java
+16
-4
PressureVesselListener.java
...mos/boot/module/jg/biz/config/PressureVesselListener.java
+4
-2
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/MyBatisPlusCodeGeneratorJyjc.java
View file @
a28dbe5f
...
@@ -152,7 +152,8 @@ public class MyBatisPlusCodeGeneratorJyjc {
...
@@ -152,7 +152,8 @@ public class MyBatisPlusCodeGeneratorJyjc {
String
service
=
"/template2/service.java.ftl"
;
String
service
=
"/template2/service.java.ftl"
;
String
serviceImpl
=
"/template2/serviceImpl.java.ftl"
;
String
serviceImpl
=
"/template2/serviceImpl.java.ftl"
;
String
mapperXml
=
"/template2/mapper.xml.ftl"
;
String
mapperXml
=
"/template2/mapper.xml.ftl"
;
String
model
=
"/template2/model.java.ftl"
;
//String model = "/template2/model.java.ftl";
String
dto
=
"/template2/dto.java.ftl"
;
String
vo
=
"/template2/vo.java.ftl"
;
String
vo
=
"/template2/vo.java.ftl"
;
...
@@ -179,16 +180,27 @@ public class MyBatisPlusCodeGeneratorJyjc {
...
@@ -179,16 +180,27 @@ public class MyBatisPlusCodeGeneratorJyjc {
});
});
focList
.
add
(
new
FileOutConfig
(
model
)
{
focList
.
add
(
new
FileOutConfig
(
dto
)
{
@Override
@Override
public
String
outputFile
(
TableInfo
tableInfo
)
{
public
String
outputFile
(
TableInfo
tableInfo
)
{
String
filePath
=
interfaceCodeOutPath
String
filePath
=
interfaceCodeOutPath
+
"/
model/"
+
tableInfo
.
getEntityName
()
+
"Model
"
+
StringPool
.
DOT_JAVA
;
+
"/
dto/"
+
tableInfo
.
getEntityName
()
+
"Dto
"
+
StringPool
.
DOT_JAVA
;
System
.
out
.
println
(
"
model
:"
+
filePath
);
System
.
out
.
println
(
"
dto
:"
+
filePath
);
return
filePath
;
return
filePath
;
}
}
});
});
//focList.add(new FileOutConfig(model) {
// @Override
// public String outputFile(TableInfo tableInfo) {
// String filePath = interfaceCodeOutPath
// + "/model/" + tableInfo.getEntityName() + "Model" + StringPool.DOT_JAVA;
// System.out.println("model:"+filePath);
// return filePath;
// }
//});
// focList.add(new FileOutConfig(vo) {
// focList.add(new FileOutConfig(vo) {
// @Override
// @Override
// public String outputFile(TableInfo tableInfo) {
// public String outputFile(TableInfo tableInfo) {
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/config/PressureVesselListener.java
View file @
a28dbe5f
...
@@ -131,7 +131,7 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
...
@@ -131,7 +131,7 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
result
.
append
(
"出厂编号/产品编码不能重复;"
);
result
.
append
(
"出厂编号/产品编码不能重复;"
);
checkFactoryNumUniqueness
(
data
.
getFactoryNum
(),
null
);
checkFactoryNumUniqueness
(
data
.
getFactoryNum
(),
null
);
checkNotBlank
(
data
.
getProduceDate
(),
"制造日期不能为空"
);
checkNotBlank
(
data
.
getProduceDate
(),
"制造日期不能为空"
);
checkDateFormatCorrect
(
data
.
getProduceDate
(),
"制造日期格式不正确"
);
Optional
.
ofNullable
(
data
.
getProduceDate
()).
ifPresent
(
v
->
checkDateFormatCorrect
(
v
,
"制造日期格式不正确"
)
);
checkNotBlank
(
data
.
getInspectOrgName
(),
"检测机构名称不能为空"
);
checkNotBlank
(
data
.
getInspectOrgName
(),
"检测机构名称不能为空"
);
checkNotBlank
(
data
.
getInspectOrgCode
(),
"检测机构代码不能为空"
);
checkNotBlank
(
data
.
getInspectOrgCode
(),
"检测机构代码不能为空"
);
checkInspectOrg
(
data
.
getInspectOrgCode
());
checkInspectOrg
(
data
.
getInspectOrgCode
());
...
@@ -204,6 +204,7 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
...
@@ -204,6 +204,7 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
String
equListCode
=
(
String
)
paramMap
.
get
(
"EQU_LIST"
);
String
equListCode
=
(
String
)
paramMap
.
get
(
"EQU_LIST"
);
String
equCategoryCode
=
(
String
)
paramMap
.
get
(
"EQU_CATEGORY"
);
String
equCategoryCode
=
(
String
)
paramMap
.
get
(
"EQU_CATEGORY"
);
String
equDefineCode
=
(
String
)
paramMap
.
get
(
"EQU_DEFINE"
);
String
equDefineCode
=
(
String
)
paramMap
.
get
(
"EQU_DEFINE"
);
String
equipSource
=
(
String
)
paramMap
.
get
(
"EQUIP_SOURCE"
);
Date
date
=
new
Date
();
Date
date
=
new
Date
();
String
record
=
UUID
.
randomUUID
().
toString
();
String
record
=
UUID
.
randomUUID
().
toString
();
...
@@ -214,8 +215,9 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
...
@@ -214,8 +215,9 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
BeanUtils
.
copyProperties
(
data
,
useInfo
);
BeanUtils
.
copyProperties
(
data
,
useInfo
);
useInfo
.
setRecord
(
record
);
useInfo
.
setRecord
(
record
);
useInfo
.
setRecDate
(
date
);
useInfo
.
setRecDate
(
date
);
useInfo
.
setDataSource
(
"jg"
);
useInfo
.
setDataSource
(
equipSource
!=
null
?
equipSource
:
"jg"
);
//区分历史设备和新增设备
useInfo
.
setEquState
(
null
);
useInfo
.
setEquState
(
null
);
useInfo
.
setIsIntoManagement
(
equipSource
!=
null
);
//历史气瓶导入为已纳管设备
// 使用单位信息
// 使用单位信息
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
())){
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
())){
useInfo
.
setUseUnitCreditCode
(
company
.
getCompanyCode
().
split
(
"_"
)[
1
]);
useInfo
.
setUseUnitCreditCode
(
company
.
getCompanyCode
().
split
(
"_"
)[
1
]);
...
...
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