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
81336099
Commit
81336099
authored
May 13, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录问题修复 增加是否注册判断
parent
9eef1739
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
PeasantHouseholdServiceImpl.java
...le/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
+12
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
View file @
81336099
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
...
@@ -393,12 +394,22 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
...
@@ -393,12 +394,22 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
RequestContext
.
setToken
(
requestContext
.
getToken
());
RequestContext
.
setToken
(
requestContext
.
getToken
());
PeasantHouseholdDto
peasantHouseholdDto
=
this
.
buildDefaultPeasantHouseholdDto
(
wxDTO
.
getAmosUserId
(),
wxDTO
.
getQrCodeType
(),
wxDTO
.
getPhoneNo
());
PeasantHouseholdDto
peasantHouseholdDto
=
this
.
buildDefaultPeasantHouseholdDto
(
wxDTO
.
getAmosUserId
(),
wxDTO
.
getQrCodeType
(),
wxDTO
.
getPhoneNo
());
String
phoneNo
=
this
.
parsePhoneNo
(
wxDTO
);
String
phoneNo
=
this
.
parsePhoneNo
(
wxDTO
);
Map
<
String
,
Object
>
resultMap
=
BeanUtil
.
beanToMap
(
peasantHouseholdDto
);
resultMap
.
put
(
"isRegister"
,
1
);
if
(
StringUtils
.
isNotEmpty
(
phoneNo
)){
if
(
StringUtils
.
isNotEmpty
(
phoneNo
)){
peasantHouseholdDto
.
setTelephone
(
phoneNo
);
peasantHouseholdDto
.
setTelephone
(
phoneNo
);
FeignClientResult
<
LoginInfoModel
>
loginInfo
=
Privilege
.
agencyUserClient
.
getLoginInfo
(
wxDTO
.
getPhoneNo
());
List
<
PeasantHousehold
>
peasantHouseholds
=
this
.
query
().
eq
(
"telephone"
,
wxDTO
.
getPhoneNo
()).
eq
(
"is_certified"
,
"1"
).
orderByDesc
(
"rec_date"
).
list
();
if
(
loginInfo
!=
null
&&
200
==
loginInfo
.
getStatus
()&&
null
!=
loginInfo
.
getResult
()
&&(
peasantHouseholds
.
size
()>
0
||
!
CollectionUtil
.
isNotEmpty
(
peasantHouseholds
))){
resultMap
.
put
(
"isRegister"
,
0
);
}
}
else
{
}
else
{
peasantHouseholdDto
.
setTelephone
(
""
);
peasantHouseholdDto
.
setTelephone
(
""
);
}
}
return
BeanUtil
.
beanToMap
(
peasantHouseholdDto
);
return
resultMap
;
}
}
public
PeasantHouseholdWxDto
registerAndLogin
(
MobileLoginParamDto
wxDTO
){
public
PeasantHouseholdWxDto
registerAndLogin
(
MobileLoginParamDto
wxDTO
){
...
...
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