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
af18ffd4
Commit
af18ffd4
authored
Jun 01, 2024
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
气瓶预警预报统计接口
parent
84d0639a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
TzsBaseIndividualityServiceImpl.java
...tcm/biz/service/impl/TzsBaseIndividualityServiceImpl.java
+20
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzsBaseIndividualityServiceImpl.java
View file @
af18ffd4
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tcm.api.dto.AccountDto
;
import
com.yeejoin.amos.boot.module.tcm.api.dto.BasePersonRegisterDto
;
...
...
@@ -16,13 +18,16 @@ import com.yeejoin.amos.feign.privilege.Privilege;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
...
...
@@ -56,6 +61,7 @@ public class TzsBaseIndividualityServiceImpl extends BaseService<TzsBaseIndividu
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
personRegister
(
BasePersonRegisterDto
dto
)
{
startPlatformTokenService
.
setRequestContext
();
dto
.
setName
(
dto
.
getRealName
());
...
...
@@ -116,4 +122,17 @@ public class TzsBaseIndividualityServiceImpl extends BaseService<TzsBaseIndividu
throw
new
RuntimeException
(
"个体单位注册失败: "
+
e
.
getMessage
()
+
" 请联系管理员!"
);
}
}
public
RegUnitInfoDto
adminInfo
(
String
unitCode
)
{
// 管理员信息
TzsBaseIndividuality
individuality
=
this
.
getOne
(
new
LambdaQueryWrapper
<
TzsBaseIndividuality
>().
eq
(
TzsBaseIndividuality:
:
getCredentialsNum
,
unitCode
));
RegUnitInfoDto
regUnitInfoDto
=
new
RegUnitInfoDto
();
if
(
individuality
!=
null
)
{
regUnitInfoDto
.
setAdminIdNumber
(
individuality
.
getCredentialsNum
());
regUnitInfoDto
.
setAdminName
(
individuality
.
getRealName
());
}
regUnitInfoDto
.
setAdminIdCardPhoto
(
ObjectUtils
.
isEmpty
(
individuality
.
getIdentificationPhoto
())
?
new
ArrayList
()
:
JSON
.
parseArray
(
individuality
.
getIdentificationPhoto
()));
return
regUnitInfoDto
;
}
}
\ No newline at end of file
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