Commit d4fb40a2f14652816fc9897ca39cd156ee572eaa
1 parent
258d8f4831
Exists in
master
修改区域配置文件
Showing 1 changed file with 10 additions and 10 deletions
mainData/src/main/resources/mainOrm/MedAear.xml
View file @
d4fb40a
... | ... | @@ -2,16 +2,16 @@ |
2 | 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
3 | 3 | <mapper namespace="com.lymsh.yimiao.main.data.dao.MedAearMapper"> |
4 | 4 | |
5 | -<resultMap id="MedAearResultMap" type="com.lymsh.yimiao.main.data.model.MedAear"> | |
5 | +<resultMap id="MedAreaResultMap" type="com.lymsh.yimiao.main.data.model.MedArea"> | |
6 | 6 | <result column="a_id" property="aId" jdbcType="VARCHAR" /> |
7 | 7 | <result column="a_name" property="aName" jdbcType="VARCHAR" /> |
8 | 8 | <result column="a_parentId" property="aParentId" jdbcType="VARCHAR" /> |
9 | 9 | <result column="a_isValid" property="aIsValid" jdbcType="VARCHAR" /> |
10 | 10 | </resultMap> |
11 | 11 | |
12 | -<select id="getMedAear" resultMap="MedAearResultMap" parameterType="java.lang.String"> | |
12 | +<select id="getMedArea" resultMap="MedAreaResultMap" parameterType="java.lang.String"> | |
13 | 13 | select a_id,a_name,a_parentId,a_isValid |
14 | -FROM med_aear | |
14 | +FROM med_area | |
15 | 15 | WHERE a_id = #{aId,jdbcType=VARCHAR} |
16 | 16 | </select> |
17 | 17 | |
... | ... | @@ -27,7 +27,7 @@ |
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | -<sql id="MedAearCondition"> | |
30 | +<sql id="MedAreaCondition"> | |
31 | 31 | <where> |
32 | 32 | 1 = 1 |
33 | 33 | <if test="aId != null and aId != ''"> |
34 | 34 | |
35 | 35 | |
... | ... | @@ -47,18 +47,18 @@ |
47 | 47 | |
48 | 48 | |
49 | 49 | |
50 | -<select id="queryMedAear" resultMap="MedAearResultMap" parameterType="com.lymsh.yimiao.main.data.model.MedAearQuery"> | |
50 | +<select id="queryMedArea" resultMap="MedAreaResultMap" parameterType="com.lymsh.yimiao.main.data.model.MedAreaQuery"> | |
51 | 51 | select a_id,a_name,a_parentId,a_isValid |
52 | - from med_aear | |
53 | -<include refid="MedAearCondition" /> | |
52 | + from med_area | |
53 | +<include refid="MedAreaCondition" /> | |
54 | 54 | <include refid="orderAndLimit" /> |
55 | 55 | </select> |
56 | 56 | |
57 | 57 | |
58 | 58 | |
59 | -<select id="queryMedAearCount" resultType="int" parameterType="com.lymsh.yimiao.main.data.model.MedAearQuery"> | |
60 | -select count(1) from med_aear | |
61 | -<include refid="MedAearCondition" /> | |
59 | +<select id="queryMedAreaCount" resultType="int" parameterType="com.lymsh.yimiao.main.data.model.MedAreaQuery"> | |
60 | +select count(1) from med_area | |
61 | +<include refid="MedAreaCondition" /> | |
62 | 62 | </select> |
63 | 63 | |
64 | 64 |