src/main/webapp/WEB-INF/classes/mapper/HsRegionMapper.xml

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
"http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">


<!-- 不使用namespace的话sql搜索定位会比较方便 -->
<mapper namespace="HsRegion">

	<resultMap id="RM.HsRegion" type="com.zx.maintain.model.HsRegion">
        <result property="regionId" column="region_id"/>
        <result property="parentId" column="parent_id"/>
        <result property="regionName" column="region_name"/>
        <result property="regionType" column="region_type"/>
        <result property="agencyId" column="agency_id"/>
        <result property="doorFlag" column="door_flag"/>
        <result property="firstLetter" column="first_letter"/>
        <result property="sortOrder" column="sort_order"/>
        <result property="isHot" column="is_hot"/>
	</resultMap>
	
	<resultMap id="RM.ProvinceVO" type="com.zx.maintain.manager.controller.vo.ProvinceVO">
        <result property="value" column="value"/>
        <result property="title" column="title"/>
	</resultMap>
	
	<!-- 用于select查询公用抽取的列 -->
	<sql id="HsRegion.columns">
	    <![CDATA[
		region_id,parent_id,region_name,region_type,agency_id,door_flag,first_letter,sort_order,is_hot
	    ]]>
	</sql>

	<!-- useGeneratedKeys="true" keyProperty="xxx" for sqlserver and mysql -->
	<insert id="HsRegion.insert" useGeneratedKeys="true" keyProperty="regionId">
    <![CDATA[
        INSERT INTO hs_region (
        	region_id ,
        	parent_id ,
        	region_name ,
        	region_type ,
        	agency_id ,
        	door_flag ,
        	first_letter ,
        	sort_order ,
        	is_hot 
        ) VALUES (
        	#{regionId} ,
        	#{parentId} ,
        	#{regionName} ,
        	#{regionType} ,
        	#{agencyId} ,
        	#{doorFlag} ,
        	#{firstLetter} ,
        	#{sortOrder} ,
        	#{isHot} 
        )
    ]]>
		<!--	
			oracle: order="BEFORE" SELECT sequenceName.nextval AS ID FROM DUAL 
后面还有 110 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。