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
20f532c7
Commit
20f532c7
authored
Feb 23, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(设备代码):添加设备代码的唯一性校验接口
parent
3a23461b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
1 deletion
+35
-1
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+14
-0
ICommonService.java
...ejoin/amos/boot/module/jg/biz/service/ICommonService.java
+2
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+18
-0
installation-notification-report.ftl
.../resources/templates/installation-notification-report.ftl
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/CommonController.java
View file @
20f532c7
...
...
@@ -292,4 +292,18 @@ public class CommonController extends BaseController {
}
/**
* 校验EQUCODE的唯一性
* @param equCode EQUCODE
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/checkUniquenessOfEQUCODE"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"校验EQUCODE的唯一性"
,
notes
=
"校验EQUCODE的唯一性"
)
public
ResponseModel
<
Object
>
checkUniquenessOfEQUCODE
(
String
equCode
)
{
Boolean
bool
=
commonService
.
checkUniquenessOfEQUCODE
(
equCode
);
return
ResponseHelper
.
buildResponse
(
bool
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/ICommonService.java
View file @
20f532c7
...
...
@@ -62,4 +62,6 @@ public interface ICommonService {
* @param bizType 业务类型: notice-告知类, register-登记类
*/
List
<
LinkedHashMap
>
getReceiveUnitTree
(
String
bizType
);
Boolean
checkUniquenessOfEQUCODE
(
String
equCode
);
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
20f532c7
...
...
@@ -34,9 +34,11 @@ import com.yeejoin.amos.boot.module.jg.biz.utils.JsonUtils;
import
com.yeejoin.amos.boot.module.jg.biz.utils.WordTemplateUtils
;
import
com.yeejoin.amos.boot.module.jg.flc.api.fegin.PrivilegeFeginService
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.EquipmentCategory
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.RegistrationInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.ApplicationFormTypeEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.EquipmentCategoryMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.RegistrationInfoMapper
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
...
...
@@ -163,6 +165,9 @@ public class CommonServiceImpl implements ICommonService {
private
static
final
String
GMBG_PAGE_ID
=
"jgRegistrationInfo"
;
@Autowired
RegistrationInfoMapper
tzsJgRegistrationInfoMapper
;
@Autowired
private
IJgInstallationNoticeService
iJgInstallationNoticeService
;
@Autowired
...
...
@@ -322,6 +327,19 @@ public class CommonServiceImpl implements ICommonService {
return
!
ObjectUtils
.
isEmpty
(
result
)
?
result
:
creatReceiveUnitTree
(
bizType
);
}
/**
* 验EQUCODE的唯一性
* @param equCode
* @return
*/
@Override
public
Boolean
checkUniquenessOfEQUCODE
(
String
equCode
)
{
LambdaQueryWrapper
<
RegistrationInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
RegistrationInfo:
:
getEquCode
,
equCode
);
Integer
count
=
tzsJgRegistrationInfoMapper
.
selectCount
(
wrapper
);
return
count
>
0
;
}
@Override
public
List
<
LinkedHashMap
>
getTree
(
ReginParams
reginParams
)
{
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/templates/installation-notification-report.ftl
View file @
20f532c7
...
...
@@ -578,7 +578,7 @@
<w:sz
w:val=
"24"
/>
<w:lang
w:val=
"en-US"
w:eastAsia=
"zh-CN"
/>
</w:rPr>
<w:t>
设备
注册
代码
</w:t>
<w:t>
设备代码
</w:t>
</w:r>
</w:p>
</w:tc>
...
...
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