张延森 4 yıl önce
ebeveyn
işleme
59a65aaf3f

+ 1
- 1
pom.xml Dosyayı Görüntüle

@@ -10,7 +10,7 @@
10 10
 	</parent>
11 11
 	<groupId>com.huiju</groupId>
12 12
 	<artifactId>xiangsong</artifactId>
13
-	<version>1.0.41</version>
13
+	<version>1.0.43</version>
14 14
 	<name>xiangsong</name>
15 15
 	<description>香颂</description>
16 16
 

+ 2
- 2
src/main/java/com/huiju/estateagents/property/controller/BillInvoiceController.java Dosyayı Görüntüle

@@ -95,7 +95,7 @@ public class BillInvoiceController extends BaseController {
95 95
     public ResponseBean offlinePayment(HttpServletRequest request, @RequestBody List<Integer> ids) {
96 96
         ResponseBean responseBean = new ResponseBean();
97 97
 
98
-        responseBean = iBillInvoiceService.offlinePayment(ids, getPersonId(request));
98
+        responseBean = iBillInvoiceService.offlinePayment(ids, getUserId(request).toString());
99 99
         return responseBean;
100 100
     }
101 101
 
@@ -163,7 +163,7 @@ public class BillInvoiceController extends BaseController {
163 163
         ResponseBean responseBean = new ResponseBean();
164 164
         TaUser userElement = getTaUser(request);
165 165
         Double payPrice = JSONObject.parseObject(parameter).getDouble("payPrice");
166
-//        responseBean = iBillInvoiceService.updateBillInvoiceIdPayPrice(billId, PayPriceUtils.yuanConversionPoints(payPrice) , userElement);
166
+        responseBean = iBillInvoiceService.updateBillInvoiceIdPayPrice(billId, (int) (payPrice * 100 ), userElement);
167 167
         return responseBean;
168 168
     }
169 169
 

+ 12
- 12
src/main/java/com/huiju/estateagents/property/dao/TpRoomNoMapper.java Dosyayı Görüntüle

@@ -29,13 +29,13 @@ public interface TpRoomNoMapper extends BaseMapper<TpRoomNo> {
29 29
      * @return
30 30
      */
31 31
     @ResultType(TpRoomNo.class)
32
-    @Select("select * from tp_room_no " +
33
-            "where org_id = #{orgId} " +
34
-            "and phase_name = #{phaseName} " +
35
-            "and building_name = #{buildingName} " +
36
-            "and unit_name = #{unitName} " +
37
-            "and level_name = #{levelName} " +
38
-            "and name = #{roomNoName}")
32
+//    @Select("select * from tp_room_no " +
33
+//            "where org_id = #{orgId} " +
34
+//            "and phase_name = #{phaseName} " +
35
+//            "and building_name = #{buildingName} " +
36
+//            "and unit_name = #{unitName} " +
37
+//            "and level_name = #{levelName} " +
38
+//            "and name = #{roomNoName}")
39 39
     TpRoomNo selectCommunityIdAndAddressName(@Param("orgId") Integer orgId, @Param("phaseName") String phaseName, @Param("buildingName") String buildingName, @Param("unitName") String unitName, @Param("levelName") String levelName, @Param("roomNoName") String roomNoName);
40 40
 
41 41
     /**
@@ -58,11 +58,11 @@ public interface TpRoomNoMapper extends BaseMapper<TpRoomNo> {
58 58
     Long selectCommunityIdCount(@Param("orgId") Integer orgId);
59 59
 
60 60
     @ResultType(TpRoomNo.class)
61
-    @Select("select * from tp_room_no where org_id=#{orgId} " +
62
-            "and phase_id=#{phaseId} " +
63
-            "and building_id=#{buildingId} " +
64
-            "and unit_id=#{unitId} " +
65
-            "and level_id=#{levelId}")
61
+//    @Select("select * from tp_room_no where org_id=#{orgId} " +
62
+//            "and phase_id=#{phaseId} " +
63
+//            "and building_id=#{buildingId} " +
64
+//            "and unit_id=#{unitId} " +
65
+//            "and level_id=#{levelId}")
66 66
     List<TpRoomNo> selectByAddress(Integer orgId, Integer phaseId, Integer buildingId, Integer unitId, Integer levelId);
67 67
 
68 68
 }

+ 1
- 1
src/main/resources/mapper/property/BillInvoiceMapper.xml Dosyayı Görüntüle

@@ -55,7 +55,7 @@
55 55
                 AND tpi.status = 1
56 56
             </trim>
57 57
         </where>
58
-        order by tpi.create_date DESC
58
+        order by tpi.id DESC
59 59
 
60 60
     </select>
61 61
 

+ 1
- 3
src/main/resources/mapper/property/TpAnnouncementMapper.xml Dosyayı Görüntüle

@@ -36,9 +36,7 @@
36 36
   <update id="updateTpAnnouncement" parameterType="com.huiju.estateagents.property.model.TpAnnouncement" >
37 37
     update tp_announcement
38 38
     <set >
39
-      <if test="orgId != null" >
40
-        org_id = #{orgId,jdbcType=INTEGER},
41
-      </if>
39
+        ann_type = #{annType},
42 40
       <if test="announcementTitle != null" >
43 41
         announcement_title = #{announcementTitle,jdbcType=VARCHAR},
44 42
       </if>

+ 33
- 0
src/main/resources/mapper/property/TpRoomNoMapper.xml Dosyayı Görüntüle

@@ -27,4 +27,37 @@
27 27
         WHERE
28 28
             t.org_id = #{orgId}
29 29
     </select>
30
+    <select id="selectCommunityIdAndAddressName" resultType="com.huiju.estateagents.property.model.TpRoomNo">
31
+        SELECT
32
+            t.*
33
+        FROM
34
+            tp_room_no t
35
+            INNER JOIN tp_level s ON s.id = t.level_id
36
+            INNER JOIN tp_unit m ON m.id = t.unit_id
37
+            INNER JOIN tp_building n ON n.id = t.building_id
38
+            INNER JOIN tp_phase q ON q.id = t.phase_id
39
+        WHERE
40
+            t.org_id = #{orgId}
41
+            AND s.`name` = #{levelName}
42
+            AND m.`name` = #{unitName}
43
+            AND n.`name` = #{buildingName}
44
+            AND q.`name` = #{phaseName}
45
+            AND t.`name` = #{roomNoName}
46
+    </select>
47
+    <select id="selectByAddress" resultType="com.huiju.estateagents.property.model.TpRoomNo">
48
+        SELECT
49
+            t.*
50
+        FROM
51
+            tp_room_no t
52
+            INNER JOIN tp_level s ON s.id = t.level_id
53
+            INNER JOIN tp_unit m ON m.id = t.unit_id
54
+            INNER JOIN tp_building n ON n.id = t.building_id
55
+            INNER JOIN tp_phase q ON q.id = t.phase_id
56
+        WHERE
57
+            t.org_id = #{orgId}
58
+            AND s.id = #{levelId}
59
+            AND m.id = #{unitId}
60
+            AND n.id = #{buildingId}
61
+            AND q.id = #{phaseId}
62
+    </select>
30 63
 </mapper>