Browse Source
# Conflicts: # src/main/java/com/qs/serve/modules/wx/controller/WxFormPushController.javacontract
9 changed files with 142 additions and 31 deletions
@ -0,0 +1,72 @@ |
|||
<?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.qs.serve.modules.wx.mapper.WxFormPushMapper"> |
|||
|
|||
<resultMap id="wxFormPushMap" type="com.qs.serve.modules.wx.entity.WxFormPush" > |
|||
<result property="id" column="id"/> |
|||
<result property="typeId" column="type_id"/> |
|||
<result property="typeCode" column="type_code"/> |
|||
<result property="typeName" column="type_name"/> |
|||
<result property="title" column="title"/> |
|||
<result property="formContext" column="form_context"/> |
|||
<result property="formContextValue" column="form_context_value"/> |
|||
<result property="remark" column="remark"/> |
|||
<result property="createTime" column="create_time"/> |
|||
<result property="updateTime" column="update_time"/> |
|||
<result property="tenantId" column="tenant_id"/> |
|||
<result property="createBy" column="create_by"/> |
|||
<result property="updateBy" column="update_by"/> |
|||
<result property="delFlag" column="del_flag"/> |
|||
<result property="status" column="status"/> |
|||
<result property="businessType" column="business_type"/> |
|||
<result property="readFlag" column="read_flag"/> |
|||
</resultMap> |
|||
|
|||
<sql id="wxFormPushSql"> |
|||
wx_form_push.`id`, |
|||
wx_form_push.`type_id`, |
|||
wx_form_push.`type_code`, |
|||
wx_form_push.`type_name`, |
|||
wx_form_push.`title`, |
|||
wx_form_push.`form_context`, |
|||
wx_form_push.`form_context_value`, |
|||
wx_form_push.`remark`, |
|||
wx_form_push.`create_time`, |
|||
wx_form_push.`update_time`, |
|||
wx_form_push.`tenant_id`, |
|||
wx_form_push.`create_by`, |
|||
wx_form_push.`update_by`, |
|||
wx_form_push.`del_flag`, |
|||
wx_form_push.`status`, |
|||
wx_form_push.`business_type` </sql> |
|||
|
|||
<select id="selectUserFormPushList" parameterType="com.qs.serve.modules.wx.entity.WxFormPush" resultMap="wxFormPushMap"> |
|||
SELECT |
|||
wx_form_push_user.read_flag, |
|||
<include refid="wxFormPushSql"/> |
|||
FROM `wx_form_push` `wx_form_push` |
|||
left join wx_form_push_user `wx_form_push_user` |
|||
on `wx_form_push_user`.`form_push_id` = `wx_form_push`.`id` |
|||
<where> |
|||
<if test="query.id != null and query.id != ''"> and `wx_form_push`.`id` = #{query.id}</if> |
|||
<if test="query.typeId != null and query.typeId != ''"> and `wx_form_push`.`type_id` = #{query.typeId}</if> |
|||
<if test="query.typeCode != null and query.typeCode != ''"> and `wx_form_push`.`type_code` = #{query.typeCode}</if> |
|||
<if test="query.typeName != null and query.typeName != ''"> and `wx_form_push`.`type_name` = #{query.typeName}</if> |
|||
<if test="query.title != null and query.title != ''"> and `wx_form_push`.`title` = #{query.title}</if> |
|||
<if test="query.createTime != null"> and `wx_form_push`.`create_time` = #{query.createTime}</if> |
|||
<if test="query.updateTime != null"> and `wx_form_push`.`update_time` = #{query.updateTime}</if> |
|||
<if test="query.tenantId != null and query.tenantId != ''"> and `wx_form_push`.`tenant_id` = #{query.tenantId}</if> |
|||
<if test="query.createBy != null and query.createBy != ''"> and `wx_form_push`.`create_by` = #{query.createBy}</if> |
|||
<if test="query.updateBy != null and query.updateBy != ''"> and `wx_form_push`.`update_by` = #{query.updateBy}</if> |
|||
<if test="query.delFlag != null and query.delFlag != ''"> and `wx_form_push`.`del_flag` = #{query.delFlag}</if> |
|||
<if test="query.status != null and query.status != ''"> and `wx_form_push`.`status` = #{query.status}</if> |
|||
<if test="query.businessType != null and query.businessType != ''"> and `wx_form_push`.`business_type` = #{query.businessType}</if> |
|||
<if test="query.queryUserId != null and query.queryUserId != ''"> |
|||
and `wx_form_push_user`.`user_id` = #{query.queryUserId} |
|||
</if> |
|||
</where> |
|||
</select> |
|||
|
|||
</mapper> |
Loading…
Reference in new issue