<?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"> <mapper namespace="com.yifu.cloud.plus.v1.yifu.salary.mapper.TPauseSalaryMapper"> <resultMap id="tPauseSalaryMap" type="com.yifu.cloud.plus.v1.yifu.salary.entity.TPauseSalary"> <id property="id" column="ID"/> <result property="salaryAccountId" column="SALARY_ACCOUNT_ID"/> <result property="name" column="NAME"/> <result property="idCard" column="ID_CARD"/> <result property="salaryStyle" column="SALARY_STYLE"/> <result property="bankName" column="BANK_NAME"/> <result property="bankNo" column="BANK_NO"/> <result property="balance" column="BALANCE"/> <result property="balanceSpilit" column="BALANCE_SPILIT"/> <result property="salaryDate" column="SALARY_DATE"/> <result property="settleDate" column="SETTLE_DATE"/> <result property="salaryFormId" column="SALARY_FORM_ID"/> <result property="settleDepartId" column="SETTLE_DEPART_ID"/> <result property="settleDepartNo" column="SETTLE_DEPART_NO"/> <result property="settleDepartName" column="SETTLE_DEPART_NAME"/> <result property="type" column="TYPE"/> <result property="organNameOne" column="ORGAN_NAME_ONE"/> <result property="organNameTwo" column="ORGAN_NAME_TWO"/> <result property="bankNameTwo" column="BANK_NAME_TWO"/> <result property="bankNoTwo" column="BANK_NO_TWO"/> <result property="titleTwo" column="TITLE_TWO"/> <result property="remarkTwo" column="REMARK_TWO"/> <result property="createBy" column="CREATE_BY"/> <result property="createName" column="CREATE_NAME"/> <result property="createTime" column="CREATE_TIME"/> <result property="updateBy" column="UPDATE_BY"/> <result property="updateTime" column="UPDATE_TIME"/> </resultMap> <sql id="Base_Column_List"> a.ID, a.SALARY_ACCOUNT_ID, a.NAME, a.ID_CARD, a.SALARY_STYLE, a.BANK_NAME, a.BANK_NO, a.BALANCE, a.BALANCE_SPILIT, a.SALARY_DATE, a.SETTLE_DATE, a.SALARY_FORM_ID, a.SETTLE_DEPART_ID, a.SETTLE_DEPART_NO, a.SETTLE_DEPART_NAME, a.TYPE, a.ORGAN_NAME_ONE, a.ORGAN_NAME_TWO, a.BANK_NAME_TWO, a.BANK_NO_TWO, a.TITLE_TWO, a.REMARK_TWO, a.CREATE_BY, a.CREATE_NAME, a.CREATE_TIME, a.UPDATE_BY, a.UPDATE_TIME </sql> <sql id="tPauseSalary_where"> <if test="tPauseSalary != null"> <if test="tPauseSalary.id != null and tPauseSalary.id.trim() != ''"> AND a.ID = #{tPauseSalary.id} </if> <if test="tPauseSalary.salaryAccountId != null and tPauseSalary.salaryAccountId.trim() != ''"> AND a.SALARY_ACCOUNT_ID = #{tPauseSalary.salaryAccountId} </if> <if test="tPauseSalary.name != null and tPauseSalary.name.trim() != ''"> AND a.NAME = #{tPauseSalary.name} </if> <if test="tPauseSalary.idCard != null and tPauseSalary.idCard.trim() != ''"> AND a.ID_CARD = #{tPauseSalary.idCard} </if> <if test="tPauseSalary.salaryStyle != null"> AND a.SALARY_STYLE = #{tPauseSalary.salaryStyle} </if> <if test="tPauseSalary.bankName != null and tPauseSalary.bankName.trim() != ''"> AND a.BANK_NAME = #{tPauseSalary.bankName} </if> <if test="tPauseSalary.bankNo != null and tPauseSalary.bankNo.trim() != ''"> AND a.BANK_NO = #{tPauseSalary.bankNo} </if> <if test="tPauseSalary.balance != null"> AND a.BALANCE = #{tPauseSalary.balance} </if> <if test="tPauseSalary.balanceSpilit != null"> AND a.BALANCE_SPILIT = #{tPauseSalary.balanceSpilit} </if> <if test="tPauseSalary.salaryDate != null and tPauseSalary.salaryDate.trim() != ''"> AND a.SALARY_DATE = #{tPauseSalary.salaryDate} </if> <if test="tPauseSalary.settleDate != null and tPauseSalary.settleDate.trim() != ''"> AND a.SETTLE_DATE = #{tPauseSalary.settleDate} </if> <if test="tPauseSalary.salaryFormId != null and tPauseSalary.salaryFormId.trim() != ''"> AND a.SALARY_FORM_ID = #{tPauseSalary.salaryFormId} </if> <if test="tPauseSalary.settleDepartId != null and tPauseSalary.settleDepartId.trim() != ''"> AND a.SETTLE_DEPART_ID = #{tPauseSalary.settleDepartId} </if> <if test="tPauseSalary.settleDepartNo != null and tPauseSalary.settleDepartNo.trim() != ''"> AND a.SETTLE_DEPART_NO = #{tPauseSalary.settleDepartNo} </if> <if test="tPauseSalary.settleDepartName != null and tPauseSalary.settleDepartName.trim() != ''"> AND a.SETTLE_DEPART_NAME = #{tPauseSalary.settleDepartName} </if> <if test="tPauseSalary.type != null"> AND a.TYPE = #{tPauseSalary.type} </if> <if test="tPauseSalary.organNameOne != null and tPauseSalary.organNameOne.trim() != ''"> AND a.ORGAN_NAME_ONE = #{tPauseSalary.organNameOne} </if> <if test="tPauseSalary.organNameTwo != null and tPauseSalary.organNameTwo.trim() != ''"> AND a.ORGAN_NAME_TWO = #{tPauseSalary.organNameTwo} </if> <if test="tPauseSalary.bankNameTwo != null and tPauseSalary.bankNameTwo.trim() != ''"> AND a.BANK_NAME_TWO = #{tPauseSalary.bankNameTwo} </if> <if test="tPauseSalary.bankNoTwo != null and tPauseSalary.bankNoTwo.trim() != ''"> AND a.BANK_NO_TWO = #{tPauseSalary.bankNoTwo} </if> <if test="tPauseSalary.titleTwo != null and tPauseSalary.titleTwo.trim() != ''"> AND a.TITLE_TWO = #{tPauseSalary.titleTwo} </if> <if test="tPauseSalary.remarkTwo != null and tPauseSalary.remarkTwo.trim() != ''"> AND a.REMARK_TWO = #{tPauseSalary.remarkTwo} </if> </if> </sql> <!--tPauseSalary简单分页查询--> <select id="getTPauseSalaryPage" resultMap="tPauseSalaryMap"> SELECT <include refid="Base_Column_List"/> FROM t_pause_salary a <where> 1=1 <include refid="tPauseSalary_where"/> </where> </select> </mapper>