Bladeren bron

修改xml

魏超 6 jaren geleden
bovenliggende
commit
7a209f0073

+ 2
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpAnnouncementMapper.java Bestand weergeven

@@ -3,6 +3,7 @@ package com.community.huiju.dao;
3 3
 
4 4
 import com.community.huiju.model.TpAnnouncement;
5 5
 import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
6 7
 
7 8
 @Mapper
8 9
 public interface TpAnnouncementMapper {
@@ -12,7 +13,7 @@ public interface TpAnnouncementMapper {
12 13
 
13 14
     int insertSelective(TpAnnouncement record);
14 15
 
15
-    TpAnnouncement selectByPrimaryKey(Integer id, Integer communityId);
16
+    TpAnnouncement selectByPrimaryKey(@Param("id") Integer id, @Param("communityId") Integer communityId);
16 17
 
17 18
     int updateByPrimaryKeySelective(TpAnnouncement record);
18 19
 

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TpAnnouncementMapper.xml Bestand weergeven

@@ -1,6 +1,6 @@
1 1
 <?xml version="1.0" encoding="UTF-8" ?>
2 2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
-<mapper namespace="dao.TpAnnouncementMapper" >
3
+<mapper namespace="com.community.huiju.dao.TpAnnouncementMapper" >
4 4
   <resultMap id="BaseResultMap" type="com.community.huiju.model.TpAnnouncement" >
5 5
     <id column="id" property="id" jdbcType="INTEGER" />
6 6
     <result column="community_id" property="communityId" jdbcType="INTEGER" />
@@ -21,7 +21,7 @@
21 21
     sort, view_count, set_up_carousel, status, create_user, create_date, update_user, 
22 22
     update_date
23 23
   </sql>
24
-  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
24
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap">
25 25
     select 
26 26
     <include refid="Base_Column_List" />
27 27
     from tp_announcement