<?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="doumeemes.dao.ext.NoticesExtMapper">
|
|
<!-- 管理页面查询 -->
|
<resultMap id="NoticesExtListVO" type="doumeemes.dao.ext.vo.NoticesExtListVO" autoMapping="true">
|
<id column="ID" jdbcType="VARCHAR" property="id"/>
|
<association property="cmodel" javaType="doumeemes.dao.business.model.CompanyUser">
|
<id column="CMODEL_ID" jdbcType="INTEGER" property="id"/>
|
<result column="CMODEL_DELETED" jdbcType="TINYINT" property="deleted"/>
|
<result column="CMODEL_CREATE_USER" jdbcType="INTEGER" property="createUser"/>
|
<result column="CMODEL_CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
|
<result column="CMODEL_UPDATE_USER" jdbcType="INTEGER" property="updateUser"/>
|
<result column="CMODEL_UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime"/>
|
<result column="CMODEL_REMARK" jdbcType="VARCHAR" property="remark"/>
|
<result column="CMODEL_COM_DEPART_ID" jdbcType="INTEGER" property="comDepartId"/>
|
<result column="CMODEL_ROOT_DEPART_ID" jdbcType="INTEGER" property="rootDepartId"/>
|
<result column="CMODEL_NAME" jdbcType="VARCHAR" property="name"/>
|
<result column="CMODEL_PHONE" jdbcType="VARCHAR" property="phone"/>
|
<result column="CMODEL_PHONE_AUTH_STATUS" jdbcType="VARCHAR" property="phoneAuthStatus"/>
|
<result column="CMODEL_IDCARD_NO" jdbcType="TINYINT" property="idcardNo"/>
|
<result column="CMODEL_EMAIL" jdbcType="VARCHAR" property="email"/>
|
<result column="CMODEL_EMAIL_AUTH_STATUS" jdbcType="TINYINT" property="emailAuthStatus"/>
|
<result column="CMODEL_CODE" jdbcType="VARCHAR" property="code"/>
|
<result column="CMODEL_QRCODEID" jdbcType="VARCHAR" property="qrcodeid"/>
|
<result column="CMODEL_LEGAL_USER" jdbcType="TINYINT" property="legalUser"/>
|
<result column="CMODEL_POSITION" jdbcType="VARCHAR" property="position"/>
|
<result column="CMODEL_DEPARTMENT_ID" jdbcType="INTEGER" property="departmentId"/>
|
<result column="CMODEL_DEVICE_ID" jdbcType="INTEGER" property="deviceId"/>
|
<result column="CMODEL_DEVICE_DATE" jdbcType="TIMESTAMP" property="deviceDate"/>
|
<result column="CMODEL_ORIGIN" jdbcType="TINYINT" property="origin"/>
|
<result column="CMODEL_USER_ID" jdbcType="INTEGER" property="userId"/>
|
<result column="CMODEL_POSITION_ID" jdbcType="INTEGER" property="positionId"/>
|
<result column="CMODEL_PROCEDURE_IDS" jdbcType="LONGVARCHAR" property="procedureIds"/>
|
</association>
|
<association property="umodel" javaType="doumeemes.dao.system.model.SystemUser">
|
<id column="UMODEL_ID" jdbcType="INTEGER" property="id"/>
|
<result column="UMODEL_DELETED" jdbcType="TINYINT" property="deleted"/>
|
<result column="UMODEL_CREATE_USER" jdbcType="INTEGER" property="createUser"/>
|
<result column="UMODEL_CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
|
<result column="UMODEL_UPDATE_USER" jdbcType="INTEGER" property="updateUser"/>
|
<result column="UMODEL_UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime"/>
|
<result column="UMODEL_FIXED" jdbcType="TINYINT" property="fixed"/>
|
<result column="UMODEL_PASSWORD" jdbcType="VARCHAR" property="password"/>
|
<result column="UMODEL_SALT" jdbcType="VARCHAR" property="salt"/>
|
<result column="UMODEL_AVATAR" jdbcType="VARCHAR" property="avatar"/>
|
<result column="UMODEL_MOBILE" jdbcType="VARCHAR" property="mobile"/>
|
<result column="UMODEL_EMAIL" jdbcType="VARCHAR" property="email"/>
|
<result column="UMODEL_SEX" jdbcType="VARCHAR" property="sex"/>
|
<result column="UMODEL_BIRTHDAY" jdbcType="DATE" property="birthday"/>
|
<result column="UMODEL_EMP_NO" jdbcType="VARCHAR" property="empNo"/>
|
<result column="UMODEL_REALNAME" jdbcType="VARCHAR" property="realname"/>
|
<result column="UMODEL_USERNAME" jdbcType="VARCHAR" property="username"/>
|
<result column="UMODEL_SYSTEMID" jdbcType="VARCHAR" property="systemid"/>
|
<result column="UMODEL_INVALID_TIME" jdbcType="TIMESTAMP" property="invalidTime"/>
|
<result column="UMODEL_TYPE" jdbcType="INTEGER" property="type"/>
|
</association>
|
</resultMap>
|
<select id="selectCount" parameterType="doumeemes.dao.ext.dto.QueryNoticesExtDTO" resultType="java.lang.Integer">
|
SELECT count(1)
|
FROM `notices` `a`
|
<where>
|
<if test="id != null and id !=''">
|
AND `a`.`ID` = #{id}
|
</if>
|
<if test="deleted != null">
|
AND `a`.`DELETED` = #{deleted}
|
</if>
|
<if test="createUser != null">
|
AND `a`.`CREATE_USER` = #{createUser}
|
</if>
|
<if test="createTime != null">
|
AND `a`.`CREATE_TIME` = #{createTime}
|
</if>
|
<if test="updateUser != null">
|
AND `a`.`UPDATE_USER` = #{updateUser}
|
</if>
|
<if test="updateTime != null">
|
AND `a`.`UPDATE_TIME` = #{updateTime}
|
</if>
|
<if test="remark != null and remark != ''">
|
AND `a`.`REMARK` = #{remark}
|
</if>
|
<if test="rootId != null">
|
AND `a`.`ROOT_ID` = #{rootId}
|
</if>
|
<if test="departmentId != null">
|
AND `a`.`DEPARTMENT_ID` = #{departmentId}
|
</if>
|
<if test="type != null">
|
AND `a`.`TYPE` = #{type}
|
</if>
|
<if test="objId != null">
|
AND `a`.`OBJ_ID` = #{objId}
|
</if>
|
<if test="status != null">
|
AND `a`.`STATUS` = #{status}
|
</if>
|
<if test="dealDate != null">
|
AND `a`.`DEAL_DATE` = #{dealDate}
|
</if>
|
<if test="dealInfo != null and dealInfo != ''">
|
AND `a`.`DEAL_INFO` = #{dealInfo}
|
</if>
|
<if test="url != null and url != ''">
|
AND `a`.`URL` = #{url}
|
</if>
|
<if test="ddStatus != null">
|
AND `a`.`DD_STATUS` = #{ddStatus}
|
</if>
|
<if test="ddParam != null and ddParam != ''">
|
AND `a`.`DD_PARAM` = #{ddParam}
|
</if>
|
<if test="userId != null">
|
AND `a`.`USER_ID` = #{userId}
|
</if>
|
<if test="companyUserId != null">
|
AND `a`.`COMPANY_USER_ID` = #{companyUserId}
|
</if>
|
<if test="title != null and title != ''">
|
AND `a`.`TITLE` = #{title}
|
</if>
|
<if test="mixParam != null and mixParam != ''">
|
AND (`a`.`TITLE` like concat('%', #{mixParam},'%') or `a`.`CONTENT` like concat('%', #{mixParam},'%'))
|
</if>
|
<if test="content != null and content != ''">
|
AND `a`.`CONTENT` = #{content}
|
</if>
|
</where>
|
</select>
|
<select id="selectList" parameterType="doumeemes.dao.ext.dto.QueryNoticesExtDTO" resultMap="NoticesExtListVO">
|
SELECT
|
`a`.*,
|
`cmodel`.`ID` AS CMODEL_ID,
|
`cmodel`.`DELETED` AS CMODEL_DELETED,
|
`cmodel`.`CREATE_USER` AS CMODEL_CREATE_USER,
|
`cmodel`.`CREATE_TIME` AS CMODEL_CREATE_TIME,
|
`cmodel`.`UPDATE_USER` AS CMODEL_UPDATE_USER,
|
`cmodel`.`UPDATE_TIME` AS CMODEL_UPDATE_TIME,
|
`cmodel`.`REMARK` AS CMODEL_REMARK,
|
`cmodel`.`COM_DEPART_ID` AS CMODEL_COM_DEPART_ID,
|
`cmodel`.`ROOT_DEPART_ID` AS CMODEL_ROOT_DEPART_ID,
|
`cmodel`.`NAME` AS CMODEL_NAME,
|
`cmodel`.`PHONE` AS CMODEL_PHONE,
|
`cmodel`.`PHONE_AUTH_STATUS` AS CMODEL_PHONE_AUTH_STATUS,
|
`cmodel`.`IDCARD_NO` AS CMODEL_IDCARD_NO,
|
`cmodel`.`EMAIL` AS CMODEL_EMAIL,
|
`cmodel`.`EMAIL_AUTH_STATUS` AS CMODEL_EMAIL_AUTH_STATUS,
|
`cmodel`.`CODE` AS CMODEL_CODE,
|
`cmodel`.`QRCODEID` AS CMODEL_QRCODEID,
|
`cmodel`.`LEGAL_USER` AS CMODEL_LEGAL_USER,
|
`cmodel`.`POSITION` AS CMODEL_POSITION,
|
`cmodel`.`DEPARTMENT_ID` AS CMODEL_DEPARTMENT_ID,
|
`cmodel`.`DEVICE_ID` AS CMODEL_DEVICE_ID,
|
`cmodel`.`DEVICE_DATE` AS CMODEL_DEVICE_DATE,
|
`cmodel`.`ORIGIN` AS CMODEL_ORIGIN,
|
`cmodel`.`USER_ID` AS CMODEL_USER_ID,
|
`cmodel`.`POSITION_ID` AS CMODEL_POSITION_ID,
|
`cmodel`.`PROCEDURE_IDS` AS CMODEL_PROCEDURE_IDS,
|
`umodel`.`ID` AS UMODEL_ID,
|
`umodel`.`DELETED` AS UMODEL_DELETED,
|
`umodel`.`CREATE_USER` AS UMODEL_CREATE_USER,
|
`umodel`.`CREATE_TIME` AS UMODEL_CREATE_TIME,
|
`umodel`.`UPDATE_USER` AS UMODEL_UPDATE_USER,
|
`umodel`.`UPDATE_TIME` AS UMODEL_UPDATE_TIME,
|
`umodel`.`FIXED` AS UMODEL_FIXED,
|
`umodel`.`PASSWORD` AS UMODEL_PASSWORD,
|
`umodel`.`SALT` AS UMODEL_SALT,
|
`umodel`.`AVATAR` AS UMODEL_AVATAR,
|
`umodel`.`MOBILE` AS UMODEL_MOBILE,
|
`umodel`.`EMAIL` AS UMODEL_EMAIL,
|
`umodel`.`SEX` AS UMODEL_SEX,
|
`umodel`.`BIRTHDAY` AS UMODEL_BIRTHDAY,
|
`umodel`.`EMP_NO` AS UMODEL_EMP_NO,
|
`umodel`.`REALNAME` AS UMODEL_REALNAME,
|
`umodel`.`USERNAME` AS UMODEL_USERNAME,
|
`umodel`.`SYSTEMID` AS UMODEL_SYSTEMID,
|
`umodel`.`INVALID_TIME` AS UMODEL_INVALID_TIME,
|
`umodel`.`TYPE` AS UMODEL_TYPE
|
FROM `notices` `a`
|
RIGHT JOIN `company_user` `cmodel` ON a.COMPANY_USER_ID=cmodel.ID
|
RIGHT JOIN `system_user` `umodel` ON a.USER_ID=umodel.ID
|
<where>
|
<if test="id != null and id !=''">
|
AND `a`.`ID` = #{id}
|
</if>
|
<if test="deleted != null">
|
AND `a`.`DELETED` = #{deleted}
|
</if>
|
<if test="createUser != null">
|
AND `a`.`CREATE_USER` = #{createUser}
|
</if>
|
<if test="createTime != null">
|
AND `a`.`CREATE_TIME` = #{createTime}
|
</if>
|
<if test="updateUser != null">
|
AND `a`.`UPDATE_USER` = #{updateUser}
|
</if>
|
<if test="updateTime != null">
|
AND `a`.`UPDATE_TIME` = #{updateTime}
|
</if>
|
<if test="remark != null and remark != ''">
|
AND `a`.`REMARK` = #{remark}
|
</if>
|
<if test="rootId != null">
|
AND `a`.`ROOT_ID` = #{rootId}
|
</if>
|
<if test="departmentId != null">
|
AND `a`.`DEPARTMENT_ID` = #{departmentId}
|
</if>
|
<if test="type != null">
|
AND `a`.`TYPE` = #{type}
|
</if>
|
<if test="objId != null">
|
AND `a`.`OBJ_ID` = #{objId}
|
</if>
|
<if test="status != null">
|
AND `a`.`STATUS` = #{status}
|
</if>
|
<if test="dealDate != null">
|
AND `a`.`DEAL_DATE` = #{dealDate}
|
</if>
|
<if test="dealInfo != null and dealInfo != ''">
|
AND `a`.`DEAL_INFO` = #{dealInfo}
|
</if>
|
<if test="url != null and url != ''">
|
AND `a`.`URL` = #{url}
|
</if>
|
<if test="ddStatus != null">
|
AND `a`.`DD_STATUS` = #{ddStatus}
|
</if>
|
<if test="ddParam != null and ddParam != ''">
|
AND `a`.`DD_PARAM` = #{ddParam}
|
</if>
|
<if test="userId != null">
|
AND `a`.`USER_ID` = #{userId}
|
</if>
|
<if test="companyUserId != null">
|
AND `a`.`COMPANY_USER_ID` = #{companyUserId}
|
</if>
|
<if test="title != null and title != ''">
|
AND `a`.`TITLE` = #{title}
|
</if>
|
<if test="mixParam != null and mixParam != ''">
|
AND (`a`.`TITLE` like concat('%', #{mixParam},'%') or `a`.`CONTENT` like concat('%', #{mixParam},'%'))
|
</if>
|
<if test="content != null and content != ''">
|
AND `a`.`CONTENT` = #{content}
|
</if>
|
<if test="cmodelId != null">
|
AND `cmodel`.`ID` = #{cmodelId}
|
</if>
|
<if test="cmodelDeleted != null">
|
AND `cmodel`.`DELETED` = #{cmodelDeleted}
|
</if>
|
<if test="cmodelCreateUser != null">
|
AND `cmodel`.`CREATE_USER` = #{cmodelCreateUser}
|
</if>
|
<if test="cmodelCreateTime != null">
|
AND `cmodel`.`CREATE_TIME` = #{cmodelCreateTime}
|
</if>
|
<if test="cmodelUpdateUser != null">
|
AND `cmodel`.`UPDATE_USER` = #{cmodelUpdateUser}
|
</if>
|
<if test="cmodelUpdateTime != null">
|
AND `cmodel`.`UPDATE_TIME` = #{cmodelUpdateTime}
|
</if>
|
<if test="cmodelRemark != null and cmodelRemark != ''">
|
AND `cmodel`.`REMARK` = #{cmodelRemark}
|
</if>
|
<if test="cmodelComDepartId != null">
|
AND `cmodel`.`COM_DEPART_ID` = #{cmodelComDepartId}
|
</if>
|
<if test="cmodelRootDepartId != null">
|
AND `cmodel`.`ROOT_DEPART_ID` = #{cmodelRootDepartId}
|
</if>
|
<if test="cmodelName != null and cmodelName != ''">
|
AND `cmodel`.`NAME` = #{cmodelName}
|
</if>
|
<if test="cmodelPhone != null and cmodelPhone != ''">
|
AND `cmodel`.`PHONE` = #{cmodelPhone}
|
</if>
|
<if test="cmodelPhoneAuthStatus != null and cmodelPhoneAuthStatus != ''">
|
AND `cmodel`.`PHONE_AUTH_STATUS` = #{cmodelPhoneAuthStatus}
|
</if>
|
<if test="cmodelIdcardNo != null">
|
AND `cmodel`.`IDCARD_NO` = #{cmodelIdcardNo}
|
</if>
|
<if test="cmodelEmail != null and cmodelEmail != ''">
|
AND `cmodel`.`EMAIL` = #{cmodelEmail}
|
</if>
|
<if test="cmodelEmailAuthStatus != null">
|
AND `cmodel`.`EMAIL_AUTH_STATUS` = #{cmodelEmailAuthStatus}
|
</if>
|
<if test="cmodelCode != null and cmodelCode != ''">
|
AND `cmodel`.`CODE` = #{cmodelCode}
|
</if>
|
<if test="cmodelQrcodeid != null and cmodelQrcodeid != ''">
|
AND `cmodel`.`QRCODEID` = #{cmodelQrcodeid}
|
</if>
|
<if test="cmodelLegalUser != null">
|
AND `cmodel`.`LEGAL_USER` = #{cmodelLegalUser}
|
</if>
|
<if test="cmodelPosition != null and cmodelPosition != ''">
|
AND `cmodel`.`POSITION` = #{cmodelPosition}
|
</if>
|
<if test="cmodelDepartmentId != null">
|
AND `cmodel`.`DEPARTMENT_ID` = #{cmodelDepartmentId}
|
</if>
|
<if test="cmodelDeviceId != null">
|
AND `cmodel`.`DEVICE_ID` = #{cmodelDeviceId}
|
</if>
|
<if test="cmodelDeviceDate != null">
|
AND `cmodel`.`DEVICE_DATE` = #{cmodelDeviceDate}
|
</if>
|
<if test="cmodelOrigin != null">
|
AND `cmodel`.`ORIGIN` = #{cmodelOrigin}
|
</if>
|
<if test="cmodelUserId != null">
|
AND `cmodel`.`USER_ID` = #{cmodelUserId}
|
</if>
|
<if test="cmodelPositionId != null">
|
AND `cmodel`.`POSITION_ID` = #{cmodelPositionId}
|
</if>
|
<if test="cmodelProcedureIds != null and cmodelProcedureIds != ''">
|
AND `cmodel`.`PROCEDURE_IDS` = #{cmodelProcedureIds}
|
</if>
|
<if test="umodelId != null">
|
AND `umodel`.`ID` = #{umodelId}
|
</if>
|
<if test="umodelDeleted != null">
|
AND `umodel`.`DELETED` = #{umodelDeleted}
|
</if>
|
<if test="umodelCreateUser != null">
|
AND `umodel`.`CREATE_USER` = #{umodelCreateUser}
|
</if>
|
<if test="umodelCreateTime != null">
|
AND `umodel`.`CREATE_TIME` = #{umodelCreateTime}
|
</if>
|
<if test="umodelUpdateUser != null">
|
AND `umodel`.`UPDATE_USER` = #{umodelUpdateUser}
|
</if>
|
<if test="umodelUpdateTime != null">
|
AND `umodel`.`UPDATE_TIME` = #{umodelUpdateTime}
|
</if>
|
<if test="umodelFixed != null">
|
AND `umodel`.`FIXED` = #{umodelFixed}
|
</if>
|
<if test="umodelPassword != null and umodelPassword != ''">
|
AND `umodel`.`PASSWORD` = #{umodelPassword}
|
</if>
|
<if test="umodelSalt != null and umodelSalt != ''">
|
AND `umodel`.`SALT` = #{umodelSalt}
|
</if>
|
<if test="umodelAvatar != null and umodelAvatar != ''">
|
AND `umodel`.`AVATAR` = #{umodelAvatar}
|
</if>
|
<if test="umodelMobile != null and umodelMobile != ''">
|
AND `umodel`.`MOBILE` = #{umodelMobile}
|
</if>
|
<if test="umodelEmail != null and umodelEmail != ''">
|
AND `umodel`.`EMAIL` = #{umodelEmail}
|
</if>
|
<if test="umodelSex != null and umodelSex != ''">
|
AND `umodel`.`SEX` = #{umodelSex}
|
</if>
|
<if test="umodelBirthday != null">
|
AND `umodel`.`BIRTHDAY` = #{umodelBirthday}
|
</if>
|
<if test="umodelEmpNo != null and umodelEmpNo != ''">
|
AND `umodel`.`EMP_NO` = #{umodelEmpNo}
|
</if>
|
<if test="umodelRealname != null and umodelRealname != ''">
|
AND `umodel`.`REALNAME` = #{umodelRealname}
|
</if>
|
<if test="umodelUsername != null and umodelUsername != ''">
|
AND `umodel`.`USERNAME` = #{umodelUsername}
|
</if>
|
<if test="umodelSystemid != null and umodelSystemid != ''">
|
AND `umodel`.`SYSTEMID` = #{umodelSystemid}
|
</if>
|
<if test="umodelInvalidTime != null">
|
AND `umodel`.`INVALID_TIME` = #{umodelInvalidTime}
|
</if>
|
<if test="umodelType != null">
|
AND `umodel`.`TYPE` = #{umodelType}
|
</if>
|
</where>
|
order by `a`.`CREATE_TIME` desc
|
</select>
|
<select id="selectByModel" parameterType="doumeemes.dao.ext.dto.QueryNoticesExtDTO" resultMap="NoticesExtListVO">
|
SELECT
|
`a`.*,
|
`cmodel`.`ID` AS CMODEL_ID,
|
`cmodel`.`DELETED` AS CMODEL_DELETED,
|
`cmodel`.`CREATE_USER` AS CMODEL_CREATE_USER,
|
`cmodel`.`CREATE_TIME` AS CMODEL_CREATE_TIME,
|
`cmodel`.`UPDATE_USER` AS CMODEL_UPDATE_USER,
|
`cmodel`.`UPDATE_TIME` AS CMODEL_UPDATE_TIME,
|
`cmodel`.`REMARK` AS CMODEL_REMARK,
|
`cmodel`.`COM_DEPART_ID` AS CMODEL_COM_DEPART_ID,
|
`cmodel`.`ROOT_DEPART_ID` AS CMODEL_ROOT_DEPART_ID,
|
`cmodel`.`NAME` AS CMODEL_NAME,
|
`cmodel`.`PHONE` AS CMODEL_PHONE,
|
`cmodel`.`PHONE_AUTH_STATUS` AS CMODEL_PHONE_AUTH_STATUS,
|
`cmodel`.`IDCARD_NO` AS CMODEL_IDCARD_NO,
|
`cmodel`.`EMAIL` AS CMODEL_EMAIL,
|
`cmodel`.`EMAIL_AUTH_STATUS` AS CMODEL_EMAIL_AUTH_STATUS,
|
`cmodel`.`CODE` AS CMODEL_CODE,
|
`cmodel`.`QRCODEID` AS CMODEL_QRCODEID,
|
`cmodel`.`LEGAL_USER` AS CMODEL_LEGAL_USER,
|
`cmodel`.`POSITION` AS CMODEL_POSITION,
|
`cmodel`.`DEPARTMENT_ID` AS CMODEL_DEPARTMENT_ID,
|
`cmodel`.`DEVICE_ID` AS CMODEL_DEVICE_ID,
|
`cmodel`.`DEVICE_DATE` AS CMODEL_DEVICE_DATE,
|
`cmodel`.`ORIGIN` AS CMODEL_ORIGIN,
|
`cmodel`.`USER_ID` AS CMODEL_USER_ID,
|
`cmodel`.`POSITION_ID` AS CMODEL_POSITION_ID,
|
`cmodel`.`PROCEDURE_IDS` AS CMODEL_PROCEDURE_IDS,
|
`umodel`.`ID` AS UMODEL_ID,
|
`umodel`.`DELETED` AS UMODEL_DELETED,
|
`umodel`.`CREATE_USER` AS UMODEL_CREATE_USER,
|
`umodel`.`CREATE_TIME` AS UMODEL_CREATE_TIME,
|
`umodel`.`UPDATE_USER` AS UMODEL_UPDATE_USER,
|
`umodel`.`UPDATE_TIME` AS UMODEL_UPDATE_TIME,
|
`umodel`.`FIXED` AS UMODEL_FIXED,
|
`umodel`.`PASSWORD` AS UMODEL_PASSWORD,
|
`umodel`.`SALT` AS UMODEL_SALT,
|
`umodel`.`AVATAR` AS UMODEL_AVATAR,
|
`umodel`.`MOBILE` AS UMODEL_MOBILE,
|
`umodel`.`EMAIL` AS UMODEL_EMAIL,
|
`umodel`.`SEX` AS UMODEL_SEX,
|
`umodel`.`BIRTHDAY` AS UMODEL_BIRTHDAY,
|
`umodel`.`EMP_NO` AS UMODEL_EMP_NO,
|
`umodel`.`REALNAME` AS UMODEL_REALNAME,
|
`umodel`.`USERNAME` AS UMODEL_USERNAME,
|
`umodel`.`SYSTEMID` AS UMODEL_SYSTEMID,
|
`umodel`.`INVALID_TIME` AS UMODEL_INVALID_TIME,
|
`umodel`.`TYPE` AS UMODEL_TYPE
|
FROM `notices` `a`
|
RIGHT JOIN `company_user` `cmodel` ON a.COMPANY_USER_ID=cmodel.ID
|
RIGHT JOIN `system_user` `umodel` ON a.USER_ID=umodel.ID
|
<where>
|
<if test="id != null and id !=''">
|
AND `a`.`ID` = #{id}
|
</if>
|
<if test="deleted != null">
|
AND `a`.`DELETED` = #{deleted}
|
</if>
|
<if test="createUser != null">
|
AND `a`.`CREATE_USER` = #{createUser}
|
</if>
|
<if test="createTime != null">
|
AND `a`.`CREATE_TIME` = #{createTime}
|
</if>
|
<if test="updateUser != null">
|
AND `a`.`UPDATE_USER` = #{updateUser}
|
</if>
|
<if test="updateTime != null">
|
AND `a`.`UPDATE_TIME` = #{updateTime}
|
</if>
|
<if test="remark != null and remark != ''">
|
AND `a`.`REMARK` = #{remark}
|
</if>
|
<if test="rootId != null">
|
AND `a`.`ROOT_ID` = #{rootId}
|
</if>
|
<if test="departmentId != null">
|
AND `a`.`DEPARTMENT_ID` = #{departmentId}
|
</if>
|
<if test="type != null">
|
AND `a`.`TYPE` = #{type}
|
</if>
|
<if test="objId != null">
|
AND `a`.`OBJ_ID` = #{objId}
|
</if>
|
<if test="status != null">
|
AND `a`.`STATUS` = #{status}
|
</if>
|
<if test="dealDate != null">
|
AND `a`.`DEAL_DATE` = #{dealDate}
|
</if>
|
<if test="dealInfo != null and dealInfo != ''">
|
AND `a`.`DEAL_INFO` = #{dealInfo}
|
</if>
|
<if test="url != null and url != ''">
|
AND `a`.`URL` = #{url}
|
</if>
|
<if test="ddStatus != null">
|
AND `a`.`DD_STATUS` = #{ddStatus}
|
</if>
|
<if test="ddParam != null and ddParam != ''">
|
AND `a`.`DD_PARAM` = #{ddParam}
|
</if>
|
<if test="userId != null">
|
AND `a`.`USER_ID` = #{userId}
|
</if>
|
<if test="companyUserId != null">
|
AND `a`.`COMPANY_USER_ID` = #{companyUserId}
|
</if>
|
<if test="title != null and title != ''">
|
AND `a`.`TITLE` = #{title}
|
</if>
|
<if test="content != null and content != ''">
|
AND `a`.`CONTENT` = #{content}
|
</if>
|
<if test="cmodelId != null">
|
AND `cmodel`.`ID` = #{cmodelId}
|
</if>
|
<if test="cmodelDeleted != null">
|
AND `cmodel`.`DELETED` = #{cmodelDeleted}
|
</if>
|
<if test="cmodelCreateUser != null">
|
AND `cmodel`.`CREATE_USER` = #{cmodelCreateUser}
|
</if>
|
<if test="cmodelCreateTime != null">
|
AND `cmodel`.`CREATE_TIME` = #{cmodelCreateTime}
|
</if>
|
<if test="cmodelUpdateUser != null">
|
AND `cmodel`.`UPDATE_USER` = #{cmodelUpdateUser}
|
</if>
|
<if test="cmodelUpdateTime != null">
|
AND `cmodel`.`UPDATE_TIME` = #{cmodelUpdateTime}
|
</if>
|
<if test="cmodelRemark != null and cmodelRemark != ''">
|
AND `cmodel`.`REMARK` = #{cmodelRemark}
|
</if>
|
<if test="cmodelComDepartId != null">
|
AND `cmodel`.`COM_DEPART_ID` = #{cmodelComDepartId}
|
</if>
|
<if test="cmodelRootDepartId != null">
|
AND `cmodel`.`ROOT_DEPART_ID` = #{cmodelRootDepartId}
|
</if>
|
<if test="cmodelName != null and cmodelName != ''">
|
AND `cmodel`.`NAME` = #{cmodelName}
|
</if>
|
<if test="cmodelPhone != null and cmodelPhone != ''">
|
AND `cmodel`.`PHONE` = #{cmodelPhone}
|
</if>
|
<if test="cmodelPhoneAuthStatus != null and cmodelPhoneAuthStatus != ''">
|
AND `cmodel`.`PHONE_AUTH_STATUS` = #{cmodelPhoneAuthStatus}
|
</if>
|
<if test="cmodelIdcardNo != null">
|
AND `cmodel`.`IDCARD_NO` = #{cmodelIdcardNo}
|
</if>
|
<if test="cmodelEmail != null and cmodelEmail != ''">
|
AND `cmodel`.`EMAIL` = #{cmodelEmail}
|
</if>
|
<if test="cmodelEmailAuthStatus != null">
|
AND `cmodel`.`EMAIL_AUTH_STATUS` = #{cmodelEmailAuthStatus}
|
</if>
|
<if test="cmodelCode != null and cmodelCode != ''">
|
AND `cmodel`.`CODE` = #{cmodelCode}
|
</if>
|
<if test="cmodelQrcodeid != null and cmodelQrcodeid != ''">
|
AND `cmodel`.`QRCODEID` = #{cmodelQrcodeid}
|
</if>
|
<if test="cmodelLegalUser != null">
|
AND `cmodel`.`LEGAL_USER` = #{cmodelLegalUser}
|
</if>
|
<if test="cmodelPosition != null and cmodelPosition != ''">
|
AND `cmodel`.`POSITION` = #{cmodelPosition}
|
</if>
|
<if test="cmodelDepartmentId != null">
|
AND `cmodel`.`DEPARTMENT_ID` = #{cmodelDepartmentId}
|
</if>
|
<if test="cmodelDeviceId != null">
|
AND `cmodel`.`DEVICE_ID` = #{cmodelDeviceId}
|
</if>
|
<if test="cmodelDeviceDate != null">
|
AND `cmodel`.`DEVICE_DATE` = #{cmodelDeviceDate}
|
</if>
|
<if test="cmodelOrigin != null">
|
AND `cmodel`.`ORIGIN` = #{cmodelOrigin}
|
</if>
|
<if test="cmodelUserId != null">
|
AND `cmodel`.`USER_ID` = #{cmodelUserId}
|
</if>
|
<if test="cmodelPositionId != null">
|
AND `cmodel`.`POSITION_ID` = #{cmodelPositionId}
|
</if>
|
<if test="cmodelProcedureIds != null and cmodelProcedureIds != ''">
|
AND `cmodel`.`PROCEDURE_IDS` = #{cmodelProcedureIds}
|
</if>
|
<if test="umodelId != null">
|
AND `umodel`.`ID` = #{umodelId}
|
</if>
|
<if test="umodelDeleted != null">
|
AND `umodel`.`DELETED` = #{umodelDeleted}
|
</if>
|
<if test="umodelCreateUser != null">
|
AND `umodel`.`CREATE_USER` = #{umodelCreateUser}
|
</if>
|
<if test="umodelCreateTime != null">
|
AND `umodel`.`CREATE_TIME` = #{umodelCreateTime}
|
</if>
|
<if test="umodelUpdateUser != null">
|
AND `umodel`.`UPDATE_USER` = #{umodelUpdateUser}
|
</if>
|
<if test="umodelUpdateTime != null">
|
AND `umodel`.`UPDATE_TIME` = #{umodelUpdateTime}
|
</if>
|
<if test="umodelFixed != null">
|
AND `umodel`.`FIXED` = #{umodelFixed}
|
</if>
|
<if test="umodelPassword != null and umodelPassword != ''">
|
AND `umodel`.`PASSWORD` = #{umodelPassword}
|
</if>
|
<if test="umodelSalt != null and umodelSalt != ''">
|
AND `umodel`.`SALT` = #{umodelSalt}
|
</if>
|
<if test="umodelAvatar != null and umodelAvatar != ''">
|
AND `umodel`.`AVATAR` = #{umodelAvatar}
|
</if>
|
<if test="umodelMobile != null and umodelMobile != ''">
|
AND `umodel`.`MOBILE` = #{umodelMobile}
|
</if>
|
<if test="umodelEmail != null and umodelEmail != ''">
|
AND `umodel`.`EMAIL` = #{umodelEmail}
|
</if>
|
<if test="umodelSex != null and umodelSex != ''">
|
AND `umodel`.`SEX` = #{umodelSex}
|
</if>
|
<if test="umodelBirthday != null">
|
AND `umodel`.`BIRTHDAY` = #{umodelBirthday}
|
</if>
|
<if test="umodelEmpNo != null and umodelEmpNo != ''">
|
AND `umodel`.`EMP_NO` = #{umodelEmpNo}
|
</if>
|
<if test="umodelRealname != null and umodelRealname != ''">
|
AND `umodel`.`REALNAME` = #{umodelRealname}
|
</if>
|
<if test="umodelUsername != null and umodelUsername != ''">
|
AND `umodel`.`USERNAME` = #{umodelUsername}
|
</if>
|
<if test="umodelSystemid != null and umodelSystemid != ''">
|
AND `umodel`.`SYSTEMID` = #{umodelSystemid}
|
</if>
|
<if test="umodelInvalidTime != null">
|
AND `umodel`.`INVALID_TIME` = #{umodelInvalidTime}
|
</if>
|
<if test="umodelType != null">
|
AND `umodel`.`TYPE` = #{umodelType}
|
</if>
|
</where>
|
limit 1
|
</select>
|
</mapper>
|