From b1ffaa0bfbe610b16b64966965fe13b7e2a57d93 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 04 十一月 2025 19:06:30 +0800
Subject: [PATCH] 处理年龄问题
---
ruoyi-project/src/main/resources/mapper/project/ServiceExternalpersonMapper.xml | 109 ++++++++++++++++++++++++++++++++++--------------------
1 files changed, 68 insertions(+), 41 deletions(-)
diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceExternalpersonMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceExternalpersonMapper.xml
index 99084a2..2b3e119 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceExternalpersonMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceExternalpersonMapper.xml
@@ -1,54 +1,81 @@
<?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">
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.project.mapper.ServiceExternalpersonMapper">
-
+
<resultMap type="com.ruoyi.project.domain.ServiceExternalperson" id="ServiceExternalpersonResult">
- <result property="id" column="ID" />
- <result property="userno" column="UserNo" />
- <result property="username" column="UserName" />
- <result property="userstatus" column="UserStatus" />
- <result property="usertype" column="UserType" />
- <result property="idcardno" column="IDCardNo" />
- <result property="personnelunitno" column="PersonnelUnitNo" />
- <result property="sex" column="Sex" />
- <result property="telephone" column="Telephone" />
- <result property="address" column="Address" />
- <result property="unitno" column="UnitNo" />
- <result property="unitname" column="UnitName" />
- <result property="title" column="Title" />
- <result property="depositbank" column="DepositBank" />
- <result property="branchbankname" column="BranchBankName" />
- <result property="bankcardno" column="BankCardNo" />
- <result property="del_flag" column="del_flag" />
- <result property="createBy" column="create_by" />
- <result property="createTime" column="create_time" />
- <result property="updateBy" column="update_by" />
- <result property="updateTime" column="update_time" />
- <result property="pym" column="PYM" />
- <result property="wbm" column="WBM" />
+ <result property="id" column="ID"/>
+ <result property="userno" column="UserNo"/>
+ <result property="username" column="UserName"/>
+ <result property="userstatus" column="UserStatus"/>
+ <result property="usertype" column="UserType"/>
+ <result property="idcardno" column="IDCardNo"/>
+ <result property="personnelunitno" column="PersonnelUnitNo"/>
+ <result property="sex" column="Sex"/>
+ <result property="telephone" column="Telephone"/>
+ <result property="address" column="Address"/>
+ <result property="unitno" column="UnitNo"/>
+ <result property="unitname" column="UnitName"/>
+ <result property="title" column="Title"/>
+ <result property="depositbank" column="DepositBank"/>
+ <result property="branchbankname" column="BranchBankName"/>
+ <result property="bankcardno" column="BankCardNo"/>
+ <result property="del_flag" column="del_flag"/>
+ <result property="createBy" column="create_by"/>
+ <result property="createTime" column="create_time"/>
+ <result property="updateBy" column="update_by"/>
+ <result property="updateTime" column="update_time"/>
+ <result property="pym" column="PYM"/>
+ <result property="wbm" column="WBM"/>
+ <result property="unitTaxNo" column="unit_tax_no"/>
</resultMap>
<sql id="selectServiceExternalpersonVo">
- select ID, UserNo, UserName, UserStatus, IDCardNo, UserType, PersonnelUnitNo, Sex, Telephone, Address, UnitNo, UnitName, Title, DepositBank, BranchBankName, BankCardNo, del_flag, create_by, create_time, update_by, update_time, PYM, WBM from service_externalperson
+ select ID,
+ UserNo,
+ unit_tax_no,
+ UserName,
+ UserStatus,
+ IDCardNo,
+ UserType,
+ PersonnelUnitNo,
+ Sex,
+ Telephone,
+ Address,
+ UnitNo,
+ UnitName,
+ Title,
+ DepositBank,
+ BranchBankName,
+ BankCardNo,
+ del_flag,
+ create_by,
+ create_time,
+ update_by,
+ update_time,
+ PYM,
+ WBM
+ from service_externalperson
</sql>
- <select id="selectServiceExternalpersonList" parameterType="com.ruoyi.project.domain.ServiceExternalperson" resultMap="ServiceExternalpersonResult">
+ <select id="selectServiceExternalpersonList" parameterType="com.ruoyi.project.domain.ServiceExternalperson"
+ resultMap="ServiceExternalpersonResult">
<include refid="selectServiceExternalpersonVo"/>
<where>
- <if test="userno != null and userno != ''"> and UserNo = #{userno}</if>
- <if test="username != null and username != ''"> and UserName like concat('%', #{username}, '%')</if>
- <if test="usertype != null and usertype != ''"> and UserType = #{usertype}</if>
- <if test="sex != null and sex != ''"> and Sex = #{sex}</if>
- <if test="telephone != null and telephone != ''"> and Telephone = #{telephone}</if>
- <if test="address != null and address != ''"> and Address = #{address}</if>
- <if test="unitno != null and unitno != ''"> and UnitNo = #{unitno}</if>
- <if test="unitname != null and unitname != ''"> and UnitName = #{unitname}</if>
- <if test="title != null and title != ''"> and Title = #{title}</if>
- <if test="depositbank != null and depositbank != ''"> and DepositBank = #{depositbank}</if>
- <if test="branchbankname != null and branchbankname != ''"> and BranchBankName = #{branchbankname}</if>
- <if test="bankcardno != null and bankcardno != ''"> and BankCardNo = #{bankcardno}</if>
+ <if test="userno != null and userno != ''">and UserNo = #{userno}</if>
+ <if test="username != null and username != ''">and UserName like concat('%', #{username}, '%')</if>
+ <if test="usertype != null and usertype != ''">and UserType = #{usertype}</if>
+ <if test="sex != null and sex != ''">and Sex = #{sex}</if>
+ <if test="telephone != null and telephone != ''">and Telephone = #{telephone}</if>
+ <if test="address != null and address != ''">and Address = #{address}</if>
+ <if test="unitno != null and unitno != ''">and UnitNo = #{unitno}</if>
+ <if test="unitname != null and unitname != ''">and UnitName = #{unitname}</if>
+ <if test="title != null and title != ''">and Title = #{title}</if>
+ <if test="depositbank != null and depositbank != ''">and DepositBank = #{depositbank}</if>
+ <if test="branchbankname != null and branchbankname != ''">and BranchBankName = #{branchbankname}</if>
+ <if test="bankcardno != null and bankcardno != ''">and BankCardNo = #{bankcardno}</if>
+ <if test="unitTaxNo != null and unitTaxNo != ''">and unit_tax_no = #{unitTaxNo}</if>
</where>
</select>
@@ -63,4 +90,4 @@
</select>
-</mapper>
\ No newline at end of file
+</mapper>
--
Gitblit v1.9.3