Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
9e6b277b
Commit
9e6b277b
authored
Jul 14, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
1eae03eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
1 deletions
+67
-1
HmLinkApiServiceImpl.java
...age/service/service/out/impl/hm/HmLinkApiServiceImpl.java
+1
-1
HmQrcodeTempMapper.xml
...rvice/src/main/resources/mapper/hm/HmQrcodeTempMapper.xml
+66
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmLinkApiServiceImpl.java
View file @
9e6b277b
...
...
@@ -324,7 +324,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
paramsDTO
.
setRemark
(
hm
.
getName
());
paramsDTO
.
setSkipVerify
(
hm
.
getPassFlag
()
==
1
);
paramsDTO
.
setState
(
"DT"
+
key
);
paramsDTO
.
setTemp
(
true
);
//
paramsDTO.setTemp(true);
paramsDTO
.
setUser
(
Arrays
.
asList
(
hm
.
getWxUserId
()));
QywxExternalcontactResultDTO
dto
=
qywxUserApiService
.
addContactWay
(
corpid
,
config
.
getWxSuiteid
(),
paramsDTO
);
log
.
info
(
"创建动态活码参数corpid:{}{},param={},返回={}"
,
corpid
,
config
.
getWxSuiteid
(),
JSON
.
toJSONString
(
paramsDTO
),
...
...
haoban-manage3-service/src/main/resources/mapper/hm/HmQrcodeTempMapper.xml
0 → 100644
View file @
9e6b277b
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.gic.haoban.manage.service.dao.mapper.hm.HmQrcodeTempMapper"
>
<resultMap
type=
"com.gic.haoban.manage.service.entity.hm.TabHmQrcodeTemp"
id=
"result-map-tabHaobanHmQrcodeTemp"
>
<result
column=
"id"
property=
"id"
/>
<result
column=
"wx_config_id"
property=
"wxConfigId"
/>
<result
column=
"wx_qrcode"
property=
"wxQrcode"
/>
<result
column=
"wx_enterprise_id"
property=
"wxEnterpriseId"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"status_flag"
property=
"statusFlag"
/>
<result
column=
"relation_id"
property=
"relationId"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
wx_config_id,
wx_qrcode,
wx_enterprise_id,
create_time,
update_time,
status_flag , relation_id
</sql>
<!-- ===================== 新增 ======================== -->
<insert
id=
"insert"
parameterType=
"com.gic.haoban.manage.service.entity.hm.TabHmQrcodeTemp"
>
<![CDATA[
INSERT INTO tab_haoban_hm_qrcode_temp(
id,
wx_config_id,
wx_qrcode,
wx_enterprise_id,
create_time,
update_time,
status_flag , relation_id
)VALUES(
#{id} ,
#{wxConfigId,jdbcType=VARCHAR},
#{wxQrcode,jdbcType=VARCHAR},
#{wxEnterpriseId,jdbcType=CHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{statusFlag,jdbcType=INTEGER} , #{relationId}
)
]]>
</insert>
<!-- =====================删除==================== -->
<update
id=
"deleteByPrimaryKey"
parameterType=
"long"
>
UPDATE tab_haoban_hm_qrcode_temp SET status_flag = 0 , update_time=now() WHERE id = #{id} and status_flag=1
</update>
<update
id=
"deleteByRelationId"
parameterType=
"long"
>
UPDATE tab_haoban_hm_qrcode_temp SET status_flag = 0 , update_time=now() WHERE relation_id = #{relationId} and status_flag=1
</update>
<!-- ============ 查询============= -->
<select
id=
"selectByRelationId"
parameterType=
"String"
resultMap=
"result-map-tabHaobanHmQrcodeTemp"
>
SELECT * FROM tab_haoban_hm_qrcode_temp WHERE relation_id = #{relationId}
</select>
<select
id=
"listAll"
resultMap=
"result-map-tabHaobanHmQrcodeTemp"
>
select * from tab_haoban_hm_qrcode_temp
</select>
</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