Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-support-rlwx
Project
Project
Details
Activity
Releases
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
rl
hls-support-rlwx
Commits
ac8e5700
Commit
ac8e5700
authored
Aug 13, 2020
by
chenzhuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电子合同接口
parent
e146b07e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
151 additions
and
0 deletions
+151
-0
SignHclcController.java
...om/hand/app/esignHclc/controllers/SignHclcController.java
+79
-0
SignUserInfoHclc.java
...ain/java/com/hand/app/esignHclc/dto/SignUserInfoHclc.java
+20
-0
SignInfoHclcMapper.java
...ava/com/hand/app/esignHclc/mapper/SignInfoHclcMapper.java
+4
-0
IOrganSignInfoHclcService.java
...hand/app/esignHclc/service/IOrganSignInfoHclcService.java
+5
-0
OrganSignInfoHclcServiceImpl.java
.../esignHclc/service/impl/OrganSignInfoHclcServiceImpl.java
+21
-0
SignInfoHclcMapper.xml
...ain/resources/app/esignHclc/mapper/SignInfoHclcMapper.xml
+22
-0
No files found.
core/src/main/java/com/hand/app/esignHclc/controllers/SignHclcController.java
View file @
ac8e5700
...
...
@@ -298,6 +298,85 @@ public class SignHclcController extends BaseController {
}
/**
* 经办人授权/取消授权
*
* @param request
* @param dto 经办人授权/取消授权
* @return Map
*/
@ResponseBody
@RequestMapping
(
"/auth/api/individual/authorize"
)
public
Map
<
String
,
Object
>
setOrganIndividualAuthorize
(
HttpServletRequest
request
,
@RequestBody
SignUserInfoHclc
dto
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
IRequest
iRequest
=
createRequestContext
(
request
);
if
(
Objects
.
isNull
(
dto
.
getOpenId
())||
Objects
.
isNull
(
dto
.
getAuthFlag
()))
{
map
.
put
(
"code"
,
"000005"
);
map
.
put
(
"message"
,
"关键参数openId不存在,调用失败!"
);
}
else
{
try
{
organSignHclcService
.
updateByPrimaryKeySelective
(
iRequest
,
dto
);
map
.
put
(
"code"
,
"000000"
);
map
.
put
(
"message"
,
"用户授权成功!"
);
}
catch
(
Exception
e
){
map
.
put
(
"code"
,
"000006"
);
map
.
put
(
"message"
,
"用户授权失败,请检查!"
);
}
//map = organSignHclcService.setOrganIndividualAuthorize(iRequest, dto);
}
return
map
;
}
/**
* 经办人信息查询
*
* @param request
* @param dto 经办人信息查询
* @return Map
*/
@ResponseBody
@RequestMapping
(
"/auth/api/individual/info/query"
)
public
ResponseData
getOrganIndividualInfoQuery
(
HttpServletRequest
request
,
@RequestBody
SignUserInfoHclc
dto
)
{
IRequest
requestContext
=
createRequestContext
(
request
);
List
<
SignUserInfoHclc
>
signInfoHclcs
=
new
ArrayList
<>();
SignUserInfoHclc
signInfoHclc
=
signHclcService
.
selectByPrimaryKey
(
requestContext
,
dto
);
signInfoHclcs
=
organSignHclcService
.
getOrganIndividualInfoQuery
(
requestContext
,
dto
);
return
new
ResponseData
(
signInfoHclcs
);
}
/**
* 管理权限转让
*
* @param request
* @param dto 管理权限转让
* @return Map
*/
@ResponseBody
@RequestMapping
(
"/auth/api/individual/assignment"
)
public
Map
<
String
,
Object
>
setOrganIndividualAssignment
(
HttpServletRequest
request
,
@RequestBody
SignUserInfoHclc
dto
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
IRequest
iRequest
=
createRequestContext
(
request
);
if
(
Objects
.
isNull
(
dto
.
getOpenId
())||
Objects
.
isNull
(
dto
.
getAuthFlag
()))
{
map
.
put
(
"code"
,
"000005"
);
map
.
put
(
"message"
,
"关键参数openId不存在,调用失败!"
);
}
else
{
try
{
map
=
organSignHclcService
.
setOrganIndividualAssignment
(
iRequest
,
dto
);
}
catch
(
Exception
e
){
map
.
put
(
"code"
,
"000006"
);
map
.
put
(
"message"
,
"用户授权失败,请检查!"
);
}
//map = organSignHclcService.setOrganIndividualAuthorize(iRequest, dto);
}
return
map
;
}
/**
* 下载微信图片资源上传业务系统
*
...
...
core/src/main/java/com/hand/app/esignHclc/dto/SignUserInfoHclc.java
View file @
ac8e5700
...
...
@@ -54,6 +54,10 @@ public class SignUserInfoHclc extends BaseDTO {
private
String
sealId
;
// 是否代理店
private
String
isManagerFlag
;
// 是否管理员角色
private
String
managerAuthFlag
;
// 管理员授权状态
@Transient
private
String
attachmentId
;
//身份证附件id
...
...
@@ -377,4 +381,20 @@ public class SignUserInfoHclc extends BaseDTO {
public
void
setHistoryFlag
(
String
historyFlag
)
{
this
.
historyFlag
=
historyFlag
;
}
public
String
getIsManagerFlag
()
{
return
isManagerFlag
;
}
public
void
setIsManagerFlag
(
String
isManagerFlag
)
{
this
.
isManagerFlag
=
isManagerFlag
;
}
public
String
getManagerAuthFlag
()
{
return
managerAuthFlag
;
}
public
void
setManagerAuthFlag
(
String
managerAuthFlag
)
{
this
.
managerAuthFlag
=
managerAuthFlag
;
}
}
core/src/main/java/com/hand/app/esignHclc/mapper/SignInfoHclcMapper.java
View file @
ac8e5700
...
...
@@ -14,4 +14,8 @@ import java.util.List;
public
interface
SignInfoHclcMapper
extends
Mapper
<
SignUserInfoHclc
>
{
List
<
SignUserInfoHclc
>
queryUserInfo
(
SignUserInfoHclc
dto
);
List
<
SignUserInfoHclc
>
queryAgentInfo
(
SignUserInfoHclc
dto
);
void
setOrganIndividualAssignment
(
SignUserInfoHclc
dto
);
}
core/src/main/java/com/hand/app/esignHclc/service/IOrganSignInfoHclcService.java
View file @
ac8e5700
...
...
@@ -5,6 +5,7 @@ import com.hand.hap.core.IRequest;
import
com.hand.hap.core.ProxySelf
;
import
com.hand.hap.system.service.IBaseService
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -20,4 +21,8 @@ public interface IOrganSignInfoHclcService extends IBaseService<SignUserInfoHclc
Map
<
String
,
Object
>
addOrgansAccount
(
SignUserInfoHclc
info
);
Map
<
String
,
Object
>
deleteOrgansAccount
(
IRequest
iRequest
,
SignUserInfoHclc
signInfoHclc
);
List
<
SignUserInfoHclc
>
getOrganIndividualInfoQuery
(
IRequest
iRequest
,
SignUserInfoHclc
signInfoHclc
);
Map
<
String
,
Object
>
setOrganIndividualAssignment
(
IRequest
iRequest
,
SignUserInfoHclc
info
);
}
core/src/main/java/com/hand/app/esignHclc/service/impl/OrganSignInfoHclcServiceImpl.java
View file @
ac8e5700
...
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.hand.app.esign.utils.AlgorithmHelper
;
import
com.hand.app.esignHclc.dto.SignUserInfoHclc
;
import
com.hand.app.esignHclc.dto.SignUserFaceHclc
;
import
com.hand.app.esignHclc.mapper.SignInfoHclcMapper
;
import
com.hand.app.esignHclc.service.IOrganSignInfoHclcService
;
import
com.hand.app.esignHclc.service.ISignInfoHclcFaceService
;
import
com.hand.app.esignHclc.service.ISignInfoHclcService
;
...
...
@@ -43,6 +44,8 @@ public class OrganSignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHc
private
ISignInfoHclcFaceService
signInfoHclcFaceService
;
@Autowired
private
ISignInfoHclcService
iSignInfoHclcService
;
@Autowired
private
SignInfoHclcMapper
signInfoHclcMapper
;
//用户认证接口信息
public
static
final
String
indivSysName
=
"HCLC_FACE_API"
;
...
...
@@ -435,6 +438,24 @@ public class OrganSignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHc
return
mapOrgan
;
}
public
List
<
SignUserInfoHclc
>
getOrganIndividualInfoQuery
(
IRequest
iRequest
,
SignUserInfoHclc
info
){
List
<
SignUserInfoHclc
>
signInfoHclcs
=
signInfoHclcMapper
.
queryAgentInfo
(
info
);
return
signInfoHclcs
;
}
public
Map
<
String
,
Object
>
setOrganIndividualAssignment
(
IRequest
iRequest
,
SignUserInfoHclc
info
){
Map
<
String
,
Object
>
mapOrgan
=
new
HashMap
<>();
try
{
signInfoHclcMapper
.
setOrganIndividualAssignment
(
info
);
mapOrgan
.
put
(
"code"
,
"000000"
);
mapOrgan
.
put
(
"message"
,
"管理权限转让成功!"
);
}
catch
(
Exception
e
){
mapOrgan
.
put
(
"code"
,
"000005"
);
mapOrgan
.
put
(
"message"
,
"管理权限转让失败,请检查!"
);
}
return
mapOrgan
;
}
public
Map
<
String
,
Object
>
getOrgAuthUrlHttp
(
IRequest
iRequest
,
SignUserInfoHclc
info
,
String
token
)
{
//初始化人脸核验流程初始化数据
...
...
core/src/main/resources/app/esignHclc/mapper/SignInfoHclcMapper.xml
View file @
ac8e5700
...
...
@@ -28,6 +28,8 @@
<result
column=
"ORG_ATTACHMENT_ID"
property=
"orgAttachmentId"
jdbcType=
"VARCHAR"
/>
<result
column=
"AUTH_FLAG"
property=
"authFlag"
jdbcType=
"VARCHAR"
/>
<result
column=
"SEAL_ID"
property=
"sealId"
jdbcType=
"VARCHAR"
/>
<result
column=
"IS_MANAGER_FLAG"
property=
"isManagerFlag"
jdbcType=
"VARCHAR"
/>
<result
column=
"MANAGER_AUTH_FLAG"
property=
"managerAuthFlag"
jdbcType=
"VARCHAR"
/>
</resultMap>
<select
id=
"queryUserInfo"
resultMap=
"BaseResultMap"
parameterType=
"com.hand.app.esignHclc.dto.SignUserInfoHclc"
>
...
...
@@ -52,4 +54,24 @@
</where>
order by account_id
</select>
<select
id=
"queryAgentInfo"
resultMap=
"BaseResultMap"
parameterType=
"com.hand.app.esignHclc.dto.SignUserInfoHclc"
>
select open_id,agent_name,agent_id_no,mobile,auth_flag
from SIGN_USER_INFO_HCLC
<where>
<if
test=
"idNo != null"
>
and id_no = #{idNo,jdbcType=VARCHAR}
</if>
</where>
order by account_id
</select>
<update
id=
"setOrganIndividualAssignment"
parameterType=
"com.hand.app.esignHclc.dto.SignUserInfoHclc"
>
update SIGN_USER_INFO_HCLC
<set>
<if
test=
"isManagerFlag != null"
>
is_manager_flag=#{isManagerFlag,jdbcType=VARCHAR},
</if>
<if
test=
"managerAuthFlag != null"
>
manager_auth_flag=#{managerAuthFlag}
</if>
</set>
where id_no=#{idNo}
</update>
</mapper>
\ 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