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
84548b0d
Commit
84548b0d
authored
Aug 04, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一码通提交报错数据回滚
parent
5adacb30
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
11 deletions
+22
-11
EquipmentCategoryMapper.java
...s/boot/module/ymt/api/mapper/EquipmentCategoryMapper.java
+2
-0
EquipmentCategoryMapper.xml
...api/src/main/resources/mapper/EquipmentCategoryMapper.xml
+7
-0
EquipmentCategoryServiceImpl.java
...le/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
+13
-11
No files found.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/mapper/EquipmentCategoryMapper.java
View file @
84548b0d
...
@@ -52,5 +52,7 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
...
@@ -52,5 +52,7 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
List
<
EquipExportVo
>
getEquipExportData
(
@Param
(
"dto"
)
EquipExportDto
dto
);
List
<
EquipExportVo
>
getEquipExportData
(
@Param
(
"dto"
)
EquipExportDto
dto
);
Page
<
EquipExportVo
>
exportImageZip
(
@Param
(
"page"
)
Page
<
EquipExportVo
>
page
,
@Param
(
"dto"
)
EquipExportDto
dto
);
Page
<
EquipExportVo
>
exportImageZip
(
@Param
(
"page"
)
Page
<
EquipExportVo
>
page
,
@Param
(
"dto"
)
EquipExportDto
dto
);
void
updateIsNotEs
(
String
supervisoryCode
);
}
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
84548b0d
...
@@ -417,4 +417,11 @@
...
@@ -417,4 +417,11 @@
</where>
</where>
</select>
</select>
<update
id=
"updateIsNotEs"
>
UPDATE idx_biz_jg_use_info ibjui
SET ibjui."IS_NOT_ES" = 2
WHERE
RECORD = ( SELECT ibjoi."RECORD" FROM idx_biz_jg_other_info ibjoi WHERE ibjoi."SUPERVISORY_CODE" = #{supervisoryCode} )
</update>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
84548b0d
...
@@ -1040,9 +1040,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -1040,9 +1040,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
if
(!
ObjectUtils
.
isEmpty
(
responseModel
)
&&
"200"
.
equals
(
String
.
valueOf
(
responseModel
.
getStatus
())))
{
if
(!
ObjectUtils
.
isEmpty
(
responseModel
)
&&
"200"
.
equals
(
String
.
valueOf
(
responseModel
.
getStatus
())))
{
supervisoryCodeInfo
.
setStatus
(
EquipmentCategoryEnum
.
YSY
.
getCode
());
supervisoryCodeInfo
.
setStatus
(
EquipmentCategoryEnum
.
YSY
.
getCode
());
}
else
{
}
else
{
UseInfo
useInfo
=
new
UseInfo
();
equipmentCategoryMapper
.
updateIsNotEs
(
String
.
valueOf
(
supervisionMap
.
get
(
"SUPERVISORY_CODE"
)));
useInfo
.
setIsNotEs
(
2
);
useInfoMapper
.
update
(
useInfo
,
new
QueryWrapper
<
UseInfo
>().
eq
(
"SUPERVISORY_CODE"
,
supervisionMap
.
get
(
"SUPERVISORY_CODE"
)));
supervisoryCodeInfo
.
setStatus
(
EquipmentCategoryEnum
.
BF
.
getCode
());
supervisoryCodeInfo
.
setStatus
(
EquipmentCategoryEnum
.
BF
.
getCode
());
}
}
}
else
if
(
EquipmentCategoryEnum
.
DRL
.
getName
().
equals
(
claimStatus
))
{
}
else
if
(
EquipmentCategoryEnum
.
DRL
.
getName
().
equals
(
claimStatus
))
{
...
@@ -1056,15 +1054,24 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -1056,15 +1054,24 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
map
.
remove
(
"data"
);
map
.
remove
(
"data"
);
responseModel
=
idxFeignService
.
batchUpdate
(
null
,
null
,
map
);
responseModel
=
idxFeignService
.
batchUpdate
(
null
,
null
,
map
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
responseModel
)
&&
"200"
.
equals
(
String
.
valueOf
(
responseModel
.
getStatus
())))
{
log
.
info
(
"responseModel.getResult().toString()->>>>>>>>>>>>>>"
,
responseModel
.
getResult
());
checkEsData
(
String
.
valueOf
(
responseModel
.
getResult
()));
}
supervisoryCodeInfoMapper
.
update
(
supervisoryCodeInfo
,
new
QueryWrapper
<
SupervisoryCodeInfo
>().
eq
(
"supervisory_code"
,
supervisionMap
.
get
(
"SUPERVISORY_CODE"
)));
stopWatch
.
stop
();
stopWatch
.
stop
();
if
(
log
.
isInfoEnabled
())
{
if
(
log
.
isInfoEnabled
())
{
log
.
info
(
"通用提交耗时:{} 秒"
,
stopWatch
.
getTotalTimeSeconds
());
log
.
info
(
"通用提交耗时:{} 秒"
,
stopWatch
.
getTotalTimeSeconds
());
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
UseInfo
useInfo
=
new
UseInfo
();
equipmentCategoryMapper
.
updateIsNotEs
(
String
.
valueOf
(
supervisionMap
.
get
(
"SUPERVISORY_CODE"
)));
useInfo
.
setIsNotEs
(
2
);
if
(!
ObjectUtils
.
isEmpty
(
responseModel
)
&&
"200"
.
equals
(
String
.
valueOf
(
responseModel
.
getStatus
())))
{
useInfoMapper
.
update
(
useInfo
,
new
QueryWrapper
<
UseInfo
>().
eq
(
"SUPERVISORY_CODE"
,
supervisionMap
.
get
(
"SUPERVISORY_CODE"
)));
List
<
String
>
records
=
new
ArrayList
<>();
records
.
add
(
String
.
valueOf
(
responseModel
.
getResult
()));
superviseInfoMapper
.
deleteDataAll
(
records
);
esEquipmentCategory
.
deleteById
(
String
.
valueOf
(
responseModel
.
getResult
()));
}
supervisoryCodeInfo
.
setStatus
(
EquipmentCategoryEnum
.
BF
.
getCode
());
supervisoryCodeInfo
.
setStatus
(
EquipmentCategoryEnum
.
BF
.
getCode
());
ResponseModel
<
Object
>
response
=
new
ResponseModel
<>();
ResponseModel
<
Object
>
response
=
new
ResponseModel
<>();
response
.
setDevMessage
(
e
.
getMessage
());
response
.
setDevMessage
(
e
.
getMessage
());
...
@@ -1075,12 +1082,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -1075,12 +1082,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
}
finally
{
}
finally
{
log
.
info
(
"已生成对应监管码"
+
supervisionMap
.
get
(
"SUPERVISORY_CODE"
));
log
.
info
(
"已生成对应监管码"
+
supervisionMap
.
get
(
"SUPERVISORY_CODE"
));
log
.
info
(
"已生成对应96333电梯识别码"
+
supervisionMap
.
get
(
"CODE96333"
));
log
.
info
(
"已生成对应96333电梯识别码"
+
supervisionMap
.
get
(
"CODE96333"
));
if
(!
ObjectUtils
.
isEmpty
(
responseModel
)
&&
"200"
.
equals
(
String
.
valueOf
(
responseModel
.
getStatus
())))
{
log
.
info
(
"responseModel.getResult().toString()->>>>>>>>>>>>>>"
,
responseModel
.
getResult
().
toString
());
checkEsData
(
responseModel
.
getResult
().
toString
());
}
updateEquipmentCategoryData
(
unitCode
,
orgBranchCode
);
updateEquipmentCategoryData
(
unitCode
,
orgBranchCode
);
supervisoryCodeInfoMapper
.
update
(
supervisoryCodeInfo
,
new
QueryWrapper
<
SupervisoryCodeInfo
>().
eq
(
"supervisory_code"
,
supervisionMap
.
get
(
"SUPERVISORY_CODE"
)));
}
}
return
responseModel
;
return
responseModel
;
}
}
...
...
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