فهرست منبع

查询订单增加返回字段

Memory_LG 5 ماه پیش
والد
کامیت
72e8f3296e

+ 2 - 0
qmjszx-admin/src/main/java/beilv/web/controller/stadium/StadiumController.java

@@ -78,9 +78,11 @@ public class StadiumController extends BaseController {
     public AjaxResult getStadiumList(StadiumBO stadiumBO) {
         startPage();
         Map<String, String> paymentStatus = DictUtils.getDictCacheToMap("payment_status");
+        Map<String, String> competitionType = DictUtils.getDictCacheToMap("competition_type");
         List<Stadium> stadiumList = stadiumService.getStadiumList(stadiumBO);
         stadiumList.forEach(stadium -> {
             stadium.setPaymentStatusLabel(paymentStatus.get(stadium.getPaymentStatus()));
+            stadium.setCompetitionTypeLabel(competitionType.get(stadium.getCompetitionType()));
         });
         return AjaxResult.success(getDataTable(stadiumList));
     }

+ 6 - 0
qmjszx-business/src/main/java/beilv/stadium/domain/Stadium.java

@@ -86,4 +86,10 @@ public class Stadium {
     private String paymentStatusLabel;
     private String competitionPlace;
     private String cameraIndexCode;
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date applyStartTime;
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date applyEndTime;
+    private String competitionType;
+    private String competitionTypeLabel;
 }

+ 4 - 1
qmjszx-business/src/main/resources/mapper/stadium/StadiumMapper.xml

@@ -26,6 +26,9 @@
         <result property="competitionImg" column="competition_img"/>
         <result property="competitionPlace" column="competition_place"/>
         <result property="cameraIndexCode" column="camera_index_code"/>
+        <result property="applyStartTime" column="apply_start_time"/>
+        <result property="applyEndTime" column="apply_end_time"/>
+        <result property="competitionType" column="competition_type"/>
     </resultMap>
 
 
@@ -86,7 +89,7 @@
         ar.id, ar.user_id, ar.contact_people, ar.contact_number, ar.registration_time, ar.payment_time,
         ar.cancellation_time, ar.refund_time, ar.payment_status, ar.order_id, ar.competition_id, ar.order_type, ar.refund_instructions,
         ar.verification_time, ar.amount_actually_paid ,bc.competition_title, bc.competition_expense, bc.viewing_ticket, bc.competition_img,
-        bs.name as competition_place, bs.camera_index_code
+        bs.name as competition_place, bs.camera_index_code, bc.apply_start_time, bc.apply_end_time, bc.competition_type
         from beilv_book_a_race ar
         left join beilv_competition bc on ar.competition_id = bc.id
         left join beilv_site bs on bc.competition_place = bs.id