src/main/resources/mapper/WxServiceProviderMapper.xml
(开头部分) 9KB这里只显示每个文件的开头 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="WxServiceProvider">
<resultMap id="RM.WxServiceProvider" type="com.zx.maintain.model.WxServiceProvider">
<result property="id" column="id"/>
<result property="fullName" column="full_name"/>
<result property="abbreviation" column="abbreviation"/>
<result property="nature" column="nature"/>
<result property="province" column="province"/>
<result property="city" column="city"/>
<result property="area" column="area"/>
<result property="address" column="address"/>
<result property="imgUrl" column="img_url"/>
<result property="dotNumber" column="dot_number"/>
<result property="coverage" column="coverage"/>
<result property="authorizedBrand" column="authorized_brand"/>
<result property="maintenanceMode" column="maintenance_mode"/>
<result property="userId" column="user_id"/>
<result property="undertakeBrand" column="undertake_brand"/>
<result property="platformDot" column="platform_dot"/>
<result property="manufactorDot" column="platform_dot"/>
<result property="telPhone" column="tel_phone"/>
<result property="username" column="username"/>
<result property="serviceAttribute" column="service_attribute"/>
<result property="state" column="state"/>
<result property="actualDotNumber" column="actual_dot_number"/>
</resultMap>
<!-- 用于select查询公用抽取的列 -->
<sql id="WxServiceProvider.columns">
<![CDATA[
id,full_name,abbreviation,nature,province,city,area,address,img_url,dot_number,coverage,authorized_brand,maintenance_mode,user_id,undertake_brand,platform_dot,manufactor_dot,
username,tel_phone,service_attribute,state,actual_dot_number
]]>
</sql>
<!-- useGeneratedKeys="true" keyProperty="xxx" for sqlserver and mysql -->
<insert id="WxServiceProvider.insert" useGeneratedKeys="true" keyProperty="id">
<