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
f569a745
Commit
f569a745
authored
Aug 11, 2022
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.非空校验
2.单位注销时删除掉机场单位
parent
1012265f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
RegUnitInfoController.java
.../module/tzs/flc/biz/controller/RegUnitInfoController.java
+10
-3
RegUnitInfoServiceImpl.java
...dule/tzs/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+3
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/RegUnitInfoController.java
View file @
f569a745
...
@@ -65,6 +65,9 @@ public class RegUnitInfoController extends BaseController {
...
@@ -65,6 +65,9 @@ public class RegUnitInfoController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"单位注册校验"
,
notes
=
"单位注册校验"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"单位注册校验"
,
notes
=
"单位注册校验"
)
public
ResponseModel
<
RegUnitInfoDto
>
unitCheck
(
@PathVariable
String
unitCode
,
public
ResponseModel
<
RegUnitInfoDto
>
unitCheck
(
@PathVariable
String
unitCode
,
@RequestParam
String
unitType
)
{
@RequestParam
String
unitType
)
{
if
(
ValidationUtil
.
isEmpty
(
unitCode
)){
throw
new
BadRequest
(
"单位编码不能为空"
);
}
RegUnitInfoDto
regUnitInfoDto
=
iRegUnitInfoService
.
unitCheck
(
unitCode
,
unitType
);
RegUnitInfoDto
regUnitInfoDto
=
iRegUnitInfoService
.
unitCheck
(
unitCode
,
unitType
);
return
ResponseHelper
.
buildResponse
(
regUnitInfoDto
);
return
ResponseHelper
.
buildResponse
(
regUnitInfoDto
);
}
}
...
@@ -91,7 +94,10 @@ public class RegUnitInfoController extends BaseController {
...
@@ -91,7 +94,10 @@ public class RegUnitInfoController extends BaseController {
@GetMapping
(
value
=
"/{tel}/sendTelCode"
)
@GetMapping
(
value
=
"/{tel}/sendTelCode"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"发送手机号验证码"
,
notes
=
"发送手机号验证码"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"发送手机号验证码"
,
notes
=
"发送手机号验证码"
)
public
ResponseModel
<
Boolean
>
sendTelCode
(
@PathVariable
(
value
=
"tel"
)
String
tel
)
{
public
ResponseModel
<
Boolean
>
sendTelCode
(
@PathVariable
(
value
=
"tel"
)
String
tel
)
{
Boolean
flag
=
false
;
if
(
ValidationUtil
.
isEmpty
(
tel
))
{
throw
new
BadRequest
(
"手机号不能为空"
);
}
Boolean
flag
;
HashMap
<
String
,
String
>
params
=
new
HashMap
<>();
HashMap
<
String
,
String
>
params
=
new
HashMap
<>();
String
code
=
this
.
getRandomCode
();
String
code
=
this
.
getRandomCode
();
params
.
put
(
"code"
,
code
);
params
.
put
(
"code"
,
code
);
...
@@ -133,6 +139,7 @@ public class RegUnitInfoController extends BaseController {
...
@@ -133,6 +139,7 @@ public class RegUnitInfoController extends BaseController {
String
redisCode
=
redisUtils
.
get
(
RedisKey
.
FLC_USER_TEL
+
tel
).
toString
();
String
redisCode
=
redisUtils
.
get
(
RedisKey
.
FLC_USER_TEL
+
tel
).
toString
();
if
(
code
.
equals
(
redisCode
))
{
if
(
code
.
equals
(
redisCode
))
{
flag
=
true
;
flag
=
true
;
redisUtils
.
del
(
RedisKey
.
FLC_USER_TEL
+
tel
);
}
}
}
}
return
ResponseHelper
.
buildResponse
(
flag
);
return
ResponseHelper
.
buildResponse
(
flag
);
...
@@ -142,9 +149,9 @@ public class RegUnitInfoController extends BaseController {
...
@@ -142,9 +149,9 @@ public class RegUnitInfoController extends BaseController {
@GetMapping
(
value
=
"/{userName}/hasExistUser"
)
@GetMapping
(
value
=
"/{userName}/hasExistUser"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"判断用户是否存在"
,
notes
=
"判断用户是否存在"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"判断用户是否存在"
,
notes
=
"判断用户是否存在"
)
public
ResponseModel
<
Boolean
>
hasExistUser
(
@PathVariable
(
value
=
"userName"
)
String
userName
)
{
public
ResponseModel
<
Boolean
>
hasExistUser
(
@PathVariable
(
value
=
"userName"
)
String
userName
)
{
B
oolean
flag
=
false
;
b
oolean
flag
=
false
;
AgencyUserModel
user
=
Privilege
.
agencyUserClient
.
queryByUserName
(
userName
).
getResult
();
AgencyUserModel
user
=
Privilege
.
agencyUserClient
.
queryByUserName
(
userName
).
getResult
();
if
(
user
!=
null
)
{
if
(
user
!=
null
)
{
flag
=
true
;
flag
=
true
;
}
}
return
ResponseHelper
.
buildResponse
(
flag
);
return
ResponseHelper
.
buildResponse
(
flag
);
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/RegUnitInfoServiceImpl.java
View file @
f569a745
...
@@ -207,8 +207,10 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
...
@@ -207,8 +207,10 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
regUnitIcService
.
remove
(
new
LambdaQueryWrapper
<
RegUnitIc
>().
eq
(
RegUnitIc:
:
getUnitCode
,
unitCode
));
regUnitIcService
.
remove
(
new
LambdaQueryWrapper
<
RegUnitIc
>().
eq
(
RegUnitIc:
:
getUnitCode
,
unitCode
));
// 5.许可信息删除
// 5.许可信息删除
baseUnitLicenceService
.
remove
(
new
LambdaQueryWrapper
<
BaseUnitLicence
>().
eq
(
BaseUnitLicence:
:
getUnitCode
,
unitCode
));
baseUnitLicenceService
.
remove
(
new
LambdaQueryWrapper
<
BaseUnitLicence
>().
eq
(
BaseUnitLicence:
:
getUnitCode
,
unitCode
));
// 6.企业数据信息
删除
// 6.企业数据信息删除
tzBaseEnterpriseInfoService
.
remove
(
new
LambdaQueryWrapper
<
TzBaseEnterpriseInfo
>().
eq
(
TzBaseEnterpriseInfo:
:
getUseCode
,
unitCode
));
tzBaseEnterpriseInfoService
.
remove
(
new
LambdaQueryWrapper
<
TzBaseEnterpriseInfo
>().
eq
(
TzBaseEnterpriseInfo:
:
getUseCode
,
unitCode
));
// 7.机场单位表信息删除
iOrgUsrService
.
remove
(
new
LambdaQueryWrapper
<
OrgUsr
>().
eq
(
OrgUsr:
:
getAmosOrgId
,
companyId
));
return
Boolean
.
TRUE
;
return
Boolean
.
TRUE
;
}
}
...
...
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