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
dbbb9212
Commit
dbbb9212
authored
Aug 24, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一码通checkCode方法优化
parent
5799ca68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
CategoryOtherInfoMapper.xml
...api/src/main/resources/mapper/CategoryOtherInfoMapper.xml
+6
-6
EquipmentCategoryServiceImpl.java
...le/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
+5
-5
No files found.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/CategoryOtherInfoMapper.xml
View file @
dbbb9212
...
@@ -105,25 +105,25 @@
...
@@ -105,25 +105,25 @@
<if
test=
"equCode != null and equCode != ''"
>
<if
test=
"equCode != null and equCode != ''"
>
(SELECT COUNT ( 1 ) FROM idx_biz_jg_register_info ibjri
(SELECT COUNT ( 1 ) FROM idx_biz_jg_register_info ibjri
LEFT JOIN idx_biz_jg_other_info ibjoi ON ibjoi."RECORD" = ibjri."RECORD"
LEFT JOIN idx_biz_jg_other_info ibjoi ON ibjoi."RECORD" = ibjri."RECORD"
WHERE ibjri."EQU_CODE" = #{equCode}
WHERE ibjri."EQU_CODE" = #{equCode}
and ibjoi."CLAIM_STATUS" = '已认领'
<if
test=
"type != 'save' "
>
<if
test=
"type != 'save' "
>
and ibjri."RECORD" != #{record}
and ibjoi."CLAIM_STATUS" = '已认领'
and ibjri."RECORD" != #{record}
</if>
</if>
) AS equCode,
) AS equCode,
</if>
</if>
<if
test=
"useOrgCode != null and useOrgCode != ''"
>
<if
test=
"useOrgCode != null and useOrgCode != ''"
>
(SELECT COUNT ( 1 ) FROM idx_biz_jg_register_info ibjri
(SELECT COUNT ( 1 ) FROM idx_biz_jg_register_info ibjri
LEFT JOIN idx_biz_jg_other_info ibjoi ON ibjoi."RECORD" = ibjri."RECORD"
LEFT JOIN idx_biz_jg_other_info ibjoi ON ibjoi."RECORD" = ibjri."RECORD"
WHERE ibjri."USE_ORG_CODE" = #{useOrgCode}
WHERE ibjri."USE_ORG_CODE" = #{useOrgCode}
and ibjoi."CLAIM_STATUS" = '已认领'
<if
test=
"type != 'save'"
>
<if
test=
"type != 'save'"
>
and ibjri."RECORD" != #{record}
and ibjoi."CLAIM_STATUS" = '已认领'
and ibjri."RECORD" != #{record}
</if>
</if>
) AS useOrgCode,
) AS useOrgCode,
</if>
</if>
<if
test=
"code96333 != null and code96333 != ''"
>
<if
test=
"code96333 != null and code96333 != ''"
>
(SELECT COUNT ( 1 ) FROM idx_biz_jg_other_info ibjoi WHERE ibjoi."CODE96333" = #{code96333}
(SELECT COUNT ( 1 ) FROM idx_biz_jg_other_info ibjoi WHERE ibjoi."CODE96333" = #{code96333}
and ibjoi."CLAIM_STATUS" = '已认领'
<if
test=
"type != 'save'"
>
<if
test=
"type != 'save'"
>
and ibjoi."RECORD" != #{record}
and ibjoi."CLAIM_STATUS" = '已认领'
and ibjoi."RECORD" != #{record}
</if>
</if>
) AS code
) AS code
</if>
</if>
...
...
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 @
dbbb9212
...
@@ -419,11 +419,11 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -419,11 +419,11 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
@Override
@Override
public
String
checkCode
(
Map
<
String
,
Object
>
obj
)
{
public
String
checkCode
(
Map
<
String
,
Object
>
obj
)
{
String
result
=
null
;
String
result
=
null
;
String
type
=
(
String
)
obj
.
get
(
"type"
);
String
type
=
ObjectUtils
.
isEmpty
(
obj
.
get
(
"type"
))
?
null
:
String
.
valueOf
(
obj
.
get
(
"type"
)
);
String
code96333
=
String
.
valueOf
(
obj
.
get
(
"CODE96333"
));
String
code96333
=
ObjectUtils
.
isEmpty
(
obj
.
get
(
"CODE96333"
))
?
null
:
String
.
valueOf
(
obj
.
get
(
"CODE96333"
));
String
equCode
=
(
String
)
obj
.
get
(
"EQU_CODE"
);
String
equCode
=
ObjectUtils
.
isEmpty
(
obj
.
get
(
"EQU_CODE"
))
?
null
:
String
.
valueOf
(
obj
.
get
(
"EQU_CODE"
)
);
String
useOrgCode
=
(
String
)
obj
.
get
(
"USE_ORG_CODE"
);
String
useOrgCode
=
ObjectUtils
.
isEmpty
(
obj
.
get
(
"USE_ORG_CODE"
))
?
null
:
String
.
valueOf
(
obj
.
get
(
"USE_ORG_CODE"
)
);
String
record
=
(
String
)
obj
.
get
(
"id"
);
String
record
=
ObjectUtils
.
isEmpty
(
obj
.
get
(
"id"
))
?
null
:
String
.
valueOf
(
obj
.
get
(
"id"
)
);
Map
<
String
,
Long
>
map
=
categoryOtherInfoMapper
.
checkCode
(
type
,
code96333
,
equCode
,
useOrgCode
,
record
);
Map
<
String
,
Long
>
map
=
categoryOtherInfoMapper
.
checkCode
(
type
,
code96333
,
equCode
,
useOrgCode
,
record
);
if
(
map
.
containsKey
(
"equCode"
)
&&
map
.
get
(
"equCode"
)
>
0
){
if
(
map
.
containsKey
(
"equCode"
)
&&
map
.
get
(
"equCode"
)
>
0
){
result
=
"设备代码重复,请确认数据是否输入正确,或联系管辖机构处理。"
;
result
=
"设备代码重复,请确认数据是否输入正确,或联系管辖机构处理。"
;
...
...
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