TAuditInfoMapper.xml 4.54 KB
Newer Older
fangxinjiang's avatar
fangxinjiang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~
  ~      Copyright (c) 2018-2025, lengleng All rights reserved.
  ~
  ~  Redistribution and use in source and binary forms, with or without
  ~  modification, are permitted provided that the following conditions are met:
  ~
  ~ Redistributions of source code must retain the above copyright notice,
  ~  this list of conditions and the following disclaimer.
  ~  Redistributions in binary form must reproduce the above copyright
  ~  notice, this list of conditions and the following disclaimer in the
  ~  documentation and/or other materials provided with the distribution.
  ~  Neither the name of the yifu4cloud.com developer nor the names of its
  ~  contributors may be used to endorse or promote products derived from
  ~  this software without specific prior written permission.
  ~  Author: lengleng (wangiegie@gmail.com)
  ~
  -->

<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

fangxinjiang's avatar
fangxinjiang committed
24
<mapper namespace="com.yifu.cloud.plus.v1.yifu.social.mapper.TAuditInfoMapper">
fangxinjiang's avatar
fangxinjiang committed
25

fangxinjiang's avatar
fangxinjiang committed
26
  <resultMap id="tAuditInfoMap" type="com.yifu.cloud.plus.v1.yifu.social.entity.TAuditInfo">
fangxinjiang's avatar
fangxinjiang committed
27 28 29 30 31 32 33 34
    <id property="id" column="ID"/>
    <result property="socialId" column="SOCIAL_ID"/>
    <result property="auditStatus" column="AUDIT_STATUS"/>
    <result property="auditRemark" column="AUDIT_REMARK"/>
    <result property="auditUser" column="AUDIT_USER"/>
    <result property="auditTime" column="AUDIT_TIME"/>
    <result property="isCommision" column="IS_COMMISION"/>
    <result property="providentId" column="PROVIDENT_ID"/>
fangxinjiang's avatar
fangxinjiang committed
35 36 37
    <result property="organName" column="ORGAN_NAME"/>
    <result property="title" column="TITLE"/>
    <result property="color" column="COLOR"/>
fangxinjiang's avatar
fangxinjiang committed
38 39
    <result property="dispatchInfoId" column="DISPATCH_INFO_ID"/>
    <result property="type" column="TYPE"/>
fangxinjiang's avatar
fangxinjiang committed
40
	  <result property="remark" column="REMARK"/>
fangxinjiang's avatar
fangxinjiang committed
41 42
  </resultMap>
    <sql id="Base_Column_List">
fangxinjiang's avatar
fangxinjiang committed
43 44 45 46 47 48 49 50
                a.ID,
                a.SOCIAL_ID,
                a.AUDIT_STATUS,
                a.AUDIT_REMARK,
                a.AUDIT_USER,
                a.AUDIT_TIME,
                a.IS_COMMISION,
                a.PROVIDENT_ID,
fangxinjiang's avatar
fangxinjiang committed
51 52 53
                a.ORGAN_NAME,
                a.TITLE,
                a.COLOR,
fangxinjiang's avatar
fangxinjiang committed
54
                a.DISPATCH_INFO_ID,
fangxinjiang's avatar
fangxinjiang committed
55
                a.TYPE,a.REMARK
fangxinjiang's avatar
fangxinjiang committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
    </sql>
    <sql id="tAuditInfo_where">
        <if test="tAuditInfo != null">
                    <if test="tAuditInfo.id != null and tAuditInfo.id.trim() != ''">
                        AND a.ID = #{tAuditInfo.id}
                    </if>
                    <if test="tAuditInfo.socialId != null and tAuditInfo.socialId.trim() != ''">
                        AND a.SOCIAL_ID = #{tAuditInfo.socialId}
                    </if>
                    <if test="tAuditInfo.auditStatus != null and tAuditInfo.auditStatus.trim() != ''">
                        AND a.AUDIT_STATUS = #{tAuditInfo.auditStatus}
                    </if>
                    <if test="tAuditInfo.auditRemark != null and tAuditInfo.auditRemark.trim() != ''">
                        AND a.AUDIT_REMARK = #{tAuditInfo.auditRemark}
                    </if>
                    <if test="tAuditInfo.auditUser != null and tAuditInfo.auditUser.trim() != ''">
                        AND a.AUDIT_USER = #{tAuditInfo.auditUser}
                    </if>
                    <if test="tAuditInfo.auditTime != null">
                        AND a.AUDIT_TIME = #{tAuditInfo.auditTime}
                    </if>
                    <if test="tAuditInfo.isCommision != null and tAuditInfo.isCommision.trim() != ''">
                        AND a.IS_COMMISION = #{tAuditInfo.isCommision}
                    </if>
                    <if test="tAuditInfo.providentId != null and tAuditInfo.providentId.trim() != ''">
                        AND a.PROVIDENT_ID = #{tAuditInfo.providentId}
                    </if>
                    <if test="tAuditInfo.dispatchInfoId != null and tAuditInfo.dispatchInfoId.trim() != ''">
                        AND a.DISPATCH_INFO_ID = #{tAuditInfo.dispatchInfoId}
                    </if>
                    <if test="tAuditInfo.type != null and tAuditInfo.type.trim() != ''">
                        AND a.TYPE = #{tAuditInfo.type}
                    </if>
        </if>
    </sql>
    <!--tAuditInfo简单分页查询-->
    <select id="getTAuditInfoPage" resultMap="tAuditInfoMap">
        SELECT
        <include refid="Base_Column_List"/>
        FROM t_audit_info a
        <where>
            1=1
            <include refid="tAuditInfo_where"/>
        </where>
    </select>
</mapper>