Commit 9e6b277b by 徐高华

test

parent 1eae03eb
......@@ -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),
......
<?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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment