Просмотр исходного кода

[消息][新增]:授权app表增加字段

release_toaliyun_real
Stormeye Wu 7 лет назад
Родитель
Сommit
a32231db58
6 измененных файлов: 170 добавлений и 163 удалений
  1. +6
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxAuthorizerInfo.java
  2. +2
    -6
      mallinkService/src/main/java/com/iformall/domain/vo/WxWeappInfo.java
  3. +8
    -13
      mallinkService/src/main/java/com/iformall/mapper/WxAuthorizerInfoMapper.java
  4. +4
    -4
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java
  5. +113
    -103
      mallinkService/src/main/resources/mapper/WxAuthorizerInfoMapper.xml
  6. +37
    -37
      mallinkService/src/main/resources/mapper/WxComponentVerifyTicketMapper.xml

+ 6
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxAuthorizerInfo.java Просмотреть файл

@@ -21,6 +21,10 @@ public class WxAuthorizerInfo implements Serializable {
@Transient
protected String sortColumns;

@io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId")
private String tenantId;
@io.swagger.annotations.ApiModelProperty(value="1B端2C端",name="type")
private Integer type;
@io.swagger.annotations.ApiModelProperty(value="授权方appid",name="authorizerAppid")
private String authorizerAppid;
@io.swagger.annotations.ApiModelProperty(value="授权方头像",name="headImg")
@@ -75,6 +79,7 @@ public class WxAuthorizerInfo implements Serializable {
public static enum Field
{
Id_ASC("`id` ASC"),Id_DESC("`id` DESC")
,TenantId_ASC("`tenant_id` ASC"),TenantId_DESC("`tenant_id` DESC")
,AuthorizerAppid_ASC("`authorizer_appid` ASC"),AuthorizerAppid_DESC("`authorizer_appid` DESC")
,HeadImg_ASC("`head_img` ASC"),HeadImg_DESC("`head_img` DESC")
,Alias_ASC("`alias` ASC"),Alias_DESC("`alias` DESC")
@@ -96,6 +101,7 @@ public class WxAuthorizerInfo implements Serializable {
,ReleaseTime_ASC("`release_time` ASC"),ReleaseTime_DESC("`release_time` DESC")
,OpenAppId_ASC("`open_appid` ASC"),OpenAppId_DESC("`open_appid` DESC")
,BindOpenTime_ASC("`bind_open_time` ASC"),BindOpen_DESC("`bind_open_time` DESC")
,Type_ASC("`type` ASC"),Type_DESC("`type` DESC")
;
private String value;
Field(String value){


+ 2
- 6
mallinkService/src/main/java/com/iformall/domain/vo/WxWeappInfo.java Просмотреть файл

@@ -11,16 +11,14 @@ import java.util.List;
@EqualsAndHashCode(callSuper = true)
public class WxWeappInfo extends WxAuthorizerInfo {

@io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId")
private String tenantId;
@io.swagger.annotations.ApiModelProperty(value="小程序类型(1-B端 2-C端 3-服务号 4-订阅号)",name="type")
private Integer type;
@io.swagger.annotations.ApiModelProperty(value="小程序名称",name="name")
private String name;

public static enum Field
{
Id_ASC("ai.`id` ASC"),Id_DESC("ai.`id` DESC")
,TenantID_ASC("ai.`tenant_id` ASC"),TenantID_DESC("ai.`tenant_id` DESC")
,Type_ASC("ai.`type` ASC"),Type_DESC("ai.`type` DESC")
,AuthorizerAppid_ASC("ai.`authorizer_appid` ASC"),AuthorizerAppid_DESC("ai.`authorizer_appid` DESC")
,HeadImg_ASC("ai.`head_img` ASC"),HeadImg_DESC("ai.`head_img` DESC")
,Alias_ASC("ai.`alias` ASC"),Alias_DESC("ai.`alias` DESC")
@@ -43,8 +41,6 @@ public class WxWeappInfo extends WxAuthorizerInfo {
,OpenAppid_ASC("ai.`open_appid` ASC"),OpenAppid_DESC("ai.`open_appid` DESC")
,BindOpenTime_ASC("ai.`bind_open_time` ASC"),BindOpenTime_DESC("ai.`bind_open_time` DESC")
,Name_ASC("a.`name` ASC"),Name_DESC("a.`name` DESC")
,TenantID_ASC("a.`tenant_id` ASC"),TenantID_DESC("a.`tenant_id` DESC")
,Type_ASC("a.`type` ASC"),Type_DESC("a.`type` DESC")
;
private String value;
Field(String value){


+ 8
- 13
mallinkService/src/main/java/com/iformall/mapper/WxAuthorizerInfoMapper.java Просмотреть файл

@@ -9,25 +9,20 @@ public interface WxAuthorizerInfoMapper extends CommonMapper<WxAuthorizerInfo, L

List<WxAuthorizerInfo> findList(WxAuthorizerInfo wxAuthorizerInfo);

List<WxWeappInfo> findWeappList();

List<WxWeappInfo> findWxMpList();

List<WxWeappInfo> findVoList(WxWeappInfo wxWeappInfo);

WxWeappInfo findVo(WxWeappInfo wxWeappInfo);

WxWeappInfo findMp(WxWeappInfo wxWeappInfo);
WxAuthorizerInfo findMp(WxAuthorizerInfo wxAuthorizerInfo);

int updateReleaseInfo(WxAuthorizerInfo wxAuthorizerInfo);

int updateRefreshToken(WxAuthorizerInfo wxAuthorizerInfo);

int updateAccessToken(WxAuthorizerInfo wxAuthorizerInfo);

List<WxWeappInfo> findWeappList();

List<WxWeappInfo> findWxMpList();

List<WxWeappInfo> findVoList(WxWeappInfo wxWeappInfo);

WxWeappInfo findVo(WxWeappInfo wxWeappInfo);
}

+ 4
- 4
mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java Просмотреть файл

@@ -649,10 +649,10 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
// 可能未关注公众号, 用户可能收不到
// 8. 微信小程序-统一消息
// 获取小程序关联的服务号
WxWeappInfo weappInfoQ = new WxWeappInfo();
weappInfoQ.setAuthorizerAppid(user.getAppId());
weappInfoQ.setTenantId(user.getTenantId());
WxWeappInfo weappInfo = authorizerInfoMapper.findMp(weappInfoQ);
WxAuthorizerInfo authQ = new WxAuthorizerInfo();
authQ.setAuthorizerAppid(user.getAppId());
authQ.setTenantId(user.getTenantId());
WxAuthorizerInfo weappInfo = authorizerInfoMapper.findMp(authQ);
if(weappInfo != null) {
AppUniformMsg appUniformMsg = new AppUniformMsg();
appUniformMsg.setMsgType(EnumMsgRecordType.SMART_APP_UNIFORM.getCode());


+ 113
- 103
mallinkService/src/main/resources/mapper/WxAuthorizerInfoMapper.xml Просмотреть файл

@@ -1,68 +1,76 @@
<?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.iformall.mapper.WxAuthorizerInfoMapper">
<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxAuthorizerInfo">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="authorizer_appid" jdbcType="VARCHAR" property="authorizerAppid" />
<result column="head_img" jdbcType="VARCHAR" property="headImg" />
<result column="alias" jdbcType="VARCHAR" property="alias" />
<result column="qrcode_url" jdbcType="VARCHAR" property="qrcodeUrl" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="authorization_status" jdbcType="INTEGER" property="authorizationStatus" />
<result column="auth_time" jdbcType="TIMESTAMP" property="authTime" />
<result column="base_status" jdbcType="INTEGER" property="baseStatus" />
<result column="base_time" jdbcType="TIMESTAMP" property="baseTime" />
<result column="domain_status" jdbcType="INTEGER" property="domainStatus" />
<result column="domain_time" jdbcType="TIMESTAMP" property="domainTime" />
<result column="webdomain_status" jdbcType="INTEGER" property="webdomainStatus" />
<result column="webdomain_time" jdbcType="TIMESTAMP" property="webdomainTime" />
<result column="template_status" jdbcType="INTEGER" property="templateStatus" />
<result column="template_time" jdbcType="TIMESTAMP" property="templateTime" />
<result column="current_version" jdbcType="VARCHAR" property="currentVersion" />
<result column="current_desc" jdbcType="VARCHAR" property="currentDesc" />
<result column="release_time" jdbcType="TIMESTAMP" property="releaseTime" />
<result column="open_appid" jdbcType="VARCHAR" property="openAppid" />
<result column="bind_open_time" jdbcType="TIMESTAMP" property="bindOpenTime" />
<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxAuthorizerInfo">
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/>
<result column="type" jdbcType="INTEGER" property="type"/>
<result column="authorizer_appid" jdbcType="VARCHAR" property="authorizerAppid"/>
<result column="head_img" jdbcType="VARCHAR" property="headImg"/>
<result column="alias" jdbcType="VARCHAR" property="alias"/>
<result column="qrcode_url" jdbcType="VARCHAR" property="qrcodeUrl"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="authorization_status" jdbcType="INTEGER" property="authorizationStatus"/>
<result column="auth_time" jdbcType="TIMESTAMP" property="authTime"/>
<result column="base_status" jdbcType="INTEGER" property="baseStatus"/>
<result column="base_time" jdbcType="TIMESTAMP" property="baseTime"/>
<result column="domain_status" jdbcType="INTEGER" property="domainStatus"/>
<result column="domain_time" jdbcType="TIMESTAMP" property="domainTime"/>
<result column="webdomain_status" jdbcType="INTEGER" property="webdomainStatus"/>
<result column="webdomain_time" jdbcType="TIMESTAMP" property="webdomainTime"/>
<result column="template_status" jdbcType="INTEGER" property="templateStatus"/>
<result column="template_time" jdbcType="TIMESTAMP" property="templateTime"/>
<result column="current_version" jdbcType="VARCHAR" property="currentVersion"/>
<result column="current_desc" jdbcType="VARCHAR" property="currentDesc"/>
<result column="release_time" jdbcType="TIMESTAMP" property="releaseTime"/>
<result column="open_appid" jdbcType="VARCHAR" property="openAppid"/>
<result column="bind_open_time" jdbcType="TIMESTAMP" property="bindOpenTime"/>
<result column="refresh_token" jdbcType="VARCHAR" property="refreshToken"/>
<result column="access_token" jdbcType="VARCHAR" property="accessToken"/>
<result column="access_token_expire" jdbcType="TIMESTAMP" property="accessTokenExpire"/>
</resultMap>
<sql id="allColumns">
`id`,`authorizer_appid`,`head_img`,`alias`,`qrcode_url`,`create_time`,`authorization_status`,`auth_time`,
</resultMap>
<sql id="allColumns">
`id`,`tenant_id`,`type`,`authorizer_appid`,`head_img`,`alias`,`qrcode_url`,`create_time`,`authorization_status`,`auth_time`,
`base_status`, `base_time`, `domain_status`, `domain_time`, `webdomain_status`, `webdomain_time`, `template_status`, `template_time`,
`current_version`,`current_desc`,`release_time`,
`open_appid`,`bind_open_time`,`refresh_token`,
`access_token`,`access_token_expire`
</sql>

<sql id="dynamicWhereConditions">
where 1 = 1
<if test=" null != id ">
and `id` = #{id}
</if>
<if test=" null != authorizerAppid ">
and `authorizer_appid` = #{authorizerAppid}
</if>
<if test=" null != headImg ">
and `head_img` like concat('%', #{headImg},'%')
</if>
<if test=" null != alias ">
and `alias` like concat('%', #{alias},'%')
</if>
<if test=" null != qrcodeUrl ">
and `qrcode_url` like concat('%', #{qrcodeUrl},'%')
</if>
<if test=" null != createTime ">
and `create_time` = #{createTime}
</if>
<sql id="dynamicWhereConditions">
where 1 = 1
<if test=" null != id ">
and `id` = #{id}
</if>
<if test=" null != tenantId ">
and `tenant_id` = #{tenantId}
</if>
<if test=" null != type ">
and `type` = #{type}
</if>
<if test=" null != authorizerAppid ">
and `authorizer_appid` = #{authorizerAppid}
</if>
<if test=" null != headImg ">
and `head_img` like concat('%', #{headImg},'%')
</if>
<if test=" null != alias ">
and `alias` like concat('%', #{alias},'%')
</if>
<if test=" null != qrcodeUrl ">
and `qrcode_url` like concat('%', #{qrcodeUrl},'%')
</if>
<if test=" null != createTime ">
and `create_time` = #{createTime}
</if>
<if test=" null != updateTime ">
and `update_time` = #{updateTime}
</if>
<if test=" null != authorizationStatus ">
and `authorization_status` = #{authorizationStatus}
</if>
<if test=" null != authorizationStatus ">
and `authorization_status` = #{authorizationStatus}
</if>
<if test=" null != authTime ">
and `auth_time` = #{authTime}
</if>
@@ -94,7 +102,7 @@
and `current_version` = #{currentVersion}
</if>
<if test=" null != currentDesc ">
and `current_desc` like concat('%', #{currentDesc},'%')
and `current_desc` like concat('%', #{currentDesc},'%')
</if>
<if test=" null != releaseTime ">
and `release_time` = #{releaseTime}
@@ -105,23 +113,23 @@
<if test=" null != bindOpenTime ">
and `bind_open_time` = #{bindOpenTime}
</if>
<if test=" null != ids ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
#{idItem}
</foreach>
</if>
<if test=" null != sortColumns"> order by ${sortColumns} </if>
</sql>
<select id="findList" parameterType="com.iformall.domain.po.WxAuthorizerInfo" resultMap="BaseResultMap">
<if test=" null != ids ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
#{idItem}
</foreach>
</if>
<if test=" null != sortColumns">order by ${sortColumns}</if>
</sql>
<select id="findList" parameterType="com.iformall.domain.po.WxAuthorizerInfo" resultMap="BaseResultMap">
select
<include refid="allColumns"/>
from wx_authorizer_info
<include refid="dynamicWhereConditions" />
</select>
<include refid="dynamicWhereConditions"/>
</select>

<update id="updateReleaseInfo" parameterType="com.iformall.domain.po.WxAuthorizerInfo" >
<update id="updateReleaseInfo" parameterType="com.iformall.domain.po.WxAuthorizerInfo">
update wx_authorizer_info
set `current_version` = #{currentVersion}, `current_desc` = #{currentDesc}, `release_time` = #{releaseTime}, `update_time` = #{updateTime}
where `authorizer_appid` = #{authorizerAppid}
@@ -139,36 +147,44 @@
where `authorizer_appid` = #{authorizerAppid}
</update>

<select id="findMp" parameterType="com.iformall.domain.po.WxAuthorizerInfo" resultMap="BaseResultMap">
select
<include refid="allColumns"/>
FROM wx_authorizer_info
where open_appid = (select open_appid from wx_authorizer_info where authorizer_appid = #{authorizerAppid})
and `type` = 3 and `tenant_id` = #{tenantId}
</select>

<resultMap id="VBaseResultMap" type="com.iformall.domain.vo.WxWeappInfo">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="authorizer_appid" jdbcType="VARCHAR" property="authorizerAppid" />
<result column="head_img" jdbcType="VARCHAR" property="headImg" />
<result column="alias" jdbcType="VARCHAR" property="alias" />
<result column="qrcode_url" jdbcType="VARCHAR" property="qrcodeUrl" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="authorization_status" jdbcType="INTEGER" property="authorizationStatus" />
<result column="auth_time" jdbcType="TIMESTAMP" property="authTime" />
<result column="base_status" jdbcType="INTEGER" property="baseStatus" />
<result column="base_time" jdbcType="TIMESTAMP" property="baseTime" />
<result column="domain_status" jdbcType="INTEGER" property="domainStatus" />
<result column="domain_time" jdbcType="TIMESTAMP" property="domainTime" />
<result column="webdomain_status" jdbcType="INTEGER" property="webdomainStatus" />
<result column="webdomain_time" jdbcType="TIMESTAMP" property="webdomainTime" />
<result column="template_status" jdbcType="INTEGER" property="templateStatus" />
<result column="template_time" jdbcType="TIMESTAMP" property="templateTime" />
<result column="current_version" jdbcType="VARCHAR" property="currentVersion" />
<result column="current_desc" jdbcType="VARCHAR" property="currentDesc" />
<result column="release_time" jdbcType="TIMESTAMP" property="releaseTime" />
<result column="open_appid" jdbcType="VARCHAR" property="openAppid" />
<result column="bind_open_time" jdbcType="TIMESTAMP" property="bindOpenTime" />
<result column="tenant_id" jdbcType="INTEGER" property="tenantId"/>
<result column="type" jdbcType="INTEGER" property="type" />
<result column="name" jdbcType="TIMESTAMP" property="name" />
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/>
<result column="type" jdbcType="INTEGER" property="type"/>
<result column="authorizer_appid" jdbcType="VARCHAR" property="authorizerAppid"/>
<result column="head_img" jdbcType="VARCHAR" property="headImg"/>
<result column="alias" jdbcType="VARCHAR" property="alias"/>
<result column="qrcode_url" jdbcType="VARCHAR" property="qrcodeUrl"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="authorization_status" jdbcType="INTEGER" property="authorizationStatus"/>
<result column="auth_time" jdbcType="TIMESTAMP" property="authTime"/>
<result column="base_status" jdbcType="INTEGER" property="baseStatus"/>
<result column="base_time" jdbcType="TIMESTAMP" property="baseTime"/>
<result column="domain_status" jdbcType="INTEGER" property="domainStatus"/>
<result column="domain_time" jdbcType="TIMESTAMP" property="domainTime"/>
<result column="webdomain_status" jdbcType="INTEGER" property="webdomainStatus"/>
<result column="webdomain_time" jdbcType="TIMESTAMP" property="webdomainTime"/>
<result column="template_status" jdbcType="INTEGER" property="templateStatus"/>
<result column="template_time" jdbcType="TIMESTAMP" property="templateTime"/>
<result column="current_version" jdbcType="VARCHAR" property="currentVersion"/>
<result column="current_desc" jdbcType="VARCHAR" property="currentDesc"/>
<result column="release_time" jdbcType="TIMESTAMP" property="releaseTime"/>
<result column="open_appid" jdbcType="VARCHAR" property="openAppid"/>
<result column="bind_open_time" jdbcType="TIMESTAMP" property="bindOpenTime"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
</resultMap>

<sql id="allVColumns">
ai.`id`,ai.`authorizer_appid`,ai.`head_img`,ai.`alias`,ai.`qrcode_url`,ai.`create_time`,ai.`update_time`,
ai.`id`,ai.`tenant_id`,ai.`type`,ai.`authorizer_appid`,ai.`head_img`,ai.`alias`,ai.`qrcode_url`,ai.`create_time`,ai.`update_time`,
ai.`authorization_status`,ai.`auth_time`,
ai.`base_status`,ai.`base_time`,
ai.`domain_status`,ai.`domain_time`,
@@ -176,7 +192,7 @@
ai.`template_status`,ai.`template_time`,
ai.`current_version`,ai.`current_desc`,ai.`release_time`,
ai.`open_appid`,ai.`bind_open_time`,
a.`tenant_id`,a.`type`,a.`name`
a.`name`
</sql>

<sql id="dynamicVWhereConditions">
@@ -187,8 +203,11 @@
<if test=" null != name ">
and a.`name` like concat('%', #{name},'%')
</if>
<if test=" null != tenantId ">
and ai.`tenant_id` = #{tenantId}
</if>
<if test=" null != type ">
and a.`type` = #{type}
and ai.`type` = #{type}
</if>
<if test=" null != authorizerAppid ">
and ai.`authorizer_appid` = #{authorizerAppid}
@@ -235,7 +254,7 @@
#{idItem}
</foreach>
</if>
<if test=" null != sortColumns"> order by ${sortColumns} </if>
<if test=" null != sortColumns">order by ${sortColumns}</if>
</sql>

<select id="findVoList" parameterType="com.iformall.domain.vo.WxWeappInfo" resultMap="VBaseResultMap">
@@ -243,7 +262,7 @@
<include refid="allVColumns"/>
from wx_authorizer_info ai
left join wx_appinfo a on ai.`authorizer_appid` = a.app_id
<include refid="dynamicVWhereConditions" />
<include refid="dynamicVWhereConditions"/>
</select>

<select id="findVo" parameterType="com.iformall.domain.vo.WxWeappInfo" resultMap="VBaseResultMap">
@@ -270,14 +289,5 @@
where a.type = 3 or a.type = 4
</select>

<select id="findMp" parameterType="com.iformall.domain.vo.WxWeappInfo" resultMap="VBaseResultMap">
select
<include refid="allVColumns"/>
from wx_appinfo a
left join wx_authorizer_info ai on a.app_id = ai.authorizer_appid
where ai.open_appid = (select open_appid from wx_authorizer_info where authorizer_appid = #{authorizerAppid})
and a.`type` = 3 and a.`tenant_id` = #{tenantId}
</select>


</mapper>

+ 37
- 37
mallinkService/src/main/resources/mapper/WxComponentVerifyTicketMapper.xml Просмотреть файл

@@ -1,52 +1,52 @@
<?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.iformall.mapper.WxComponentVerifyTicketMapper">
<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxComponentVerifyTicket">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="component_appid" jdbcType="VARCHAR" property="componentAppid" />
<result column="component_verify_ticket" jdbcType="VARCHAR" property="componentVerifyTicket" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="deadline" jdbcType="TIMESTAMP" property="deadline" />
<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxComponentVerifyTicket">
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="component_appid" jdbcType="VARCHAR" property="componentAppid"/>
<result column="component_verify_ticket" jdbcType="VARCHAR" property="componentVerifyTicket"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="deadline" jdbcType="TIMESTAMP" property="deadline"/>
<result column="access_token" jdbcType="VARCHAR" property="accessToken"/>
<result column="access_token_expire" jdbcType="TIMESTAMP" property="accessTokenExpire"/>
</resultMap>
<sql id="allColumns">
</resultMap>
<sql id="allColumns">
`id`,`component_appid`,`component_verify_ticket`,`create_time`,`deadline`
</sql>

<sql id="dynamicWhereConditions">
where 1 = 1
<if test=" null != id ">
and `id` = #{id}
</if>
<if test=" null != componentAppid ">
<sql id="dynamicWhereConditions">
where 1 = 1
<if test=" null != id ">
and `id` = #{id}
</if>
<if test=" null != componentAppid ">
and `component_appid` = #{componentAppid}
</if>
<if test=" null != componentVerifyTicket ">
and `component_verify_ticket` like concat('%', #{componentVerifyTicket},'%')
</if>
<if test=" null != createTime ">
and `create_time` = #{createTime}
</if>
<if test=" null != deadline ">
and `deadline` = #{deadline}
</if>
<if test=" null != ids ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
#{idItem}
</foreach>
</if>
<if test=" null != sortColumns"> order by ${sortColumns} </if>
</sql>
<select id="findList" parameterType="com.iformall.domain.po.WxComponentVerifyTicket" resultMap="BaseResultMap">
</if>
<if test=" null != componentVerifyTicket ">
and `component_verify_ticket` like concat('%', #{componentVerifyTicket},'%')
</if>
<if test=" null != createTime ">
and `create_time` = #{createTime}
</if>
<if test=" null != deadline ">
and `deadline` = #{deadline}
</if>
<if test=" null != ids ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
#{idItem}
</foreach>
</if>
<if test=" null != sortColumns">order by ${sortColumns}</if>
</sql>
<select id="findList" parameterType="com.iformall.domain.po.WxComponentVerifyTicket" resultMap="BaseResultMap">
select
<include refid="allColumns"/>
from wx_component_verify_ticket
<include refid="dynamicWhereConditions" />
</select>
<include refid="dynamicWhereConditions"/>
</select>

<update id="updateAccessToken" parameterType="com.iformall.domain.po.WxComponentVerifyTicket">
update wx_component_verify_ticket


Загрузка…
Отмена
Сохранить