src/main/resources/com/web/mapper/PatientMapper.xml
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?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.web.dao.PatientMapper">
<resultMap id="BaseResultMap" type="com.web.entity.Patient">
<id column="patientId" jdbcType="INTEGER" property="patientid" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="sex" jdbcType="VARCHAR" property="sex" />
<result column="birthday" jdbcType="TIMESTAMP" property="birthday" />
<result column="age" jdbcType="INTEGER" property="age" />
<result column="marrage" jdbcType="VARCHAR" property="marrage" />
<result column="occupation" jdbcType="VARCHAR" property="occupation" />
<result column="birthPlace" jdbcType="VARCHAR" property="birthplace" />
<result column="nation" jdbcType="VARCHAR" property="nation" />
<result column="nationality" jdbcType="VARCHAR" property="nationality" />
<result column="idCard" jdbcType="VARCHAR" property="idcard" />
<result column="companyAndAddress" jdbcType="VARCHAR" property="companyandaddress" />
<result column="telephone" jdbcType="VARCHAR" property="telephone" />
<result column="postalCode" jdbcType="INTEGER" property="postalcode" />
<result column="registeredAddress" jdbcType="VARCHAR" property="registeredaddress" />
<result column="contactsName" jdbcType="VARCHAR" property="contactsname" />
<result column="contactsAddress" jdbcType="VARCHAR" property="contactsaddress" />
<result column="contactsRelationship" jdbcType="VARCHAR" property="contactsrelationship" />
<result column="contactsTelephone" jdbcType="VARCHAR" property="contactstelephone" />
<result column="isDelete" jdbcType="INTEGER" property="isdelete" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
后面还有 406 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
