Przeglądaj źródła

finikes alpha 21

finikes 2 lat temu
rodzic
commit
63569d29e9

+ 1 - 1
src/main/java/com/finikes/oc/vote/controller/ChoicesController.java

@@ -108,7 +108,7 @@ public class ChoicesController {
      * @return
      */
     @ResponseBody
-    @RequestMapping(value = "/passport/house/s", method = RequestMethod.GET)
+    @RequestMapping(value = "/proprietor/house/s", method = RequestMethod.GET)
     public BaseDTO getHousesByPassportChoice(@RequestParam(name = "voteId") Integer voteId, HttpServletRequest request) {
         List<HouseChoiceInfoDTO> dtos = new ArrayList<>();
         // 名下已经投过票的房产

+ 1 - 1
src/main/resources/application.yml

@@ -9,7 +9,7 @@ spring:
   datasource:
     # matrix34.tpddns.cn:13306
     # localhost:3306
-    url: jdbc:mysql://localhost:3306/community?useSSL=false&useUnicode=true&characterEncoding=utf-8&useAffectedRows=true&serverTimezone=UTC
+    url: jdbc:mysql://matrix34.tpddns.cn:13306/community?useSSL=false&useUnicode=true&characterEncoding=utf-8&useAffectedRows=true&serverTimezone=UTC
     username: root
     password: 9a41012499f38251
     driver-class-name: com.mysql.cj.jdbc.Driver

+ 1 - 1
src/main/resources/mapper/HouseRelationMapper.xml

@@ -18,7 +18,7 @@
     <select id="findByPassport" resultType="com.finikes.oc.management.entity.HouseRelation">
         SELECT passportId, houseId, state, certificateNo, certificateUrl
         FROM t_house_relation
-        WHERE passportId = #{id}
+        WHERE passportId = #{id} AND state = 1
     </select>
 
     <update id="update" parameterType="com.finikes.oc.management.entity.HouseRelation">