Quellcode durchsuchen

游湖阿代码

java110 vor 4 Jahren
Ursprung
Commit
03d2a871f9

+ 47 - 22
java110-bean/src/main/java/com/java110/dto/parkingBox/ParkingBoxDto.java

@@ -1,6 +1,7 @@
 package com.java110.dto.parkingBox;
 
 import com.java110.dto.PageDto;
+
 import java.io.Serializable;
 import java.util.Date;
 
@@ -15,13 +16,14 @@ import java.util.Date;
 public class ParkingBoxDto extends PageDto implements Serializable {
 
     private String yelowCarIn;
-private String fee;
-private String tempCarIn;
-private String boxName;
-private String remark;
-private String communityId;
-private String blueCarIn;
-private String boxId;
+    private String fee;
+    private String tempCarIn;
+    private String boxName;
+    private String remark;
+    private String communityId;
+    private String blueCarIn;
+    private String boxId;
+    private String paId;
 
 
     private Date createTime;
@@ -32,49 +34,64 @@ private String boxId;
     public String getYelowCarIn() {
         return yelowCarIn;
     }
-public void setYelowCarIn(String yelowCarIn) {
+
+    public void setYelowCarIn(String yelowCarIn) {
         this.yelowCarIn = yelowCarIn;
     }
-public String getFee() {
+
+    public String getFee() {
         return fee;
     }
-public void setFee(String fee) {
+
+    public void setFee(String fee) {
         this.fee = fee;
     }
-public String getTempCarIn() {
+
+    public String getTempCarIn() {
         return tempCarIn;
     }
-public void setTempCarIn(String tempCarIn) {
+
+    public void setTempCarIn(String tempCarIn) {
         this.tempCarIn = tempCarIn;
     }
-public String getBoxName() {
+
+    public String getBoxName() {
         return boxName;
     }
-public void setBoxName(String boxName) {
+
+    public void setBoxName(String boxName) {
         this.boxName = boxName;
     }
-public String getRemark() {
+
+    public String getRemark() {
         return remark;
     }
-public void setRemark(String remark) {
+
+    public void setRemark(String remark) {
         this.remark = remark;
     }
-public String getCommunityId() {
+
+    public String getCommunityId() {
         return communityId;
     }
-public void setCommunityId(String communityId) {
+
+    public void setCommunityId(String communityId) {
         this.communityId = communityId;
     }
-public String getBlueCarIn() {
+
+    public String getBlueCarIn() {
         return blueCarIn;
     }
-public void setBlueCarIn(String blueCarIn) {
+
+    public void setBlueCarIn(String blueCarIn) {
         this.blueCarIn = blueCarIn;
     }
-public String getBoxId() {
+
+    public String getBoxId() {
         return boxId;
     }
-public void setBoxId(String boxId) {
+
+    public void setBoxId(String boxId) {
         this.boxId = boxId;
     }
 
@@ -94,4 +111,12 @@ public void setBoxId(String boxId) {
     public void setStatusCd(String statusCd) {
         this.statusCd = statusCd;
     }
+
+    public String getPaId() {
+        return paId;
+    }
+
+    public void setPaId(String paId) {
+        this.paId = paId;
+    }
 }

+ 102 - 104
java110-db/src/main/resources/mapper/community/ParkingBoxV1ServiceDaoImplMapper.xml

@@ -5,129 +5,127 @@
 <mapper namespace="parkingBoxV1ServiceDaoImpl">
 
 
-
-
-
     <!-- 保存岗亭信息 add by wuxw 2018-07-03 -->
     <insert id="saveParkingBoxInfo" parameterType="Map">
         insert into parking_box(
-yelow_car_in,fee,temp_car_in,box_name,remark,community_id,blue_car_in,box_id
-) values (
-#{yelowCarIn},#{fee},#{tempCarIn},#{boxName},#{remark},#{communityId},#{blueCarIn},#{boxId}
-)
+        yelow_car_in,fee,temp_car_in,box_name,remark,community_id,blue_car_in,box_id
+        ) values (
+        #{yelowCarIn},#{fee},#{tempCarIn},#{boxName},#{remark},#{communityId},#{blueCarIn},#{boxId}
+        )
     </insert>
 
 
-
     <!-- 查询岗亭信息 add by wuxw 2018-07-03 -->
     <select id="getParkingBoxInfo" parameterType="Map" resultType="Map">
-        select  t.yelow_car_in,t.yelow_car_in yelowCarIn,t.fee,t.temp_car_in,t.temp_car_in tempCarIn,t.box_name,t.box_name boxName,t.remark,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.blue_car_in,t.blue_car_in blueCarIn,t.box_id,t.box_id boxId 
-from parking_box t 
-where 1 =1 
-<if test="yelowCarIn !=null and yelowCarIn != ''">
-   and t.yelow_car_in= #{yelowCarIn}
-</if> 
-<if test="fee !=null and fee != ''">
-   and t.fee= #{fee}
-</if> 
-<if test="tempCarIn !=null and tempCarIn != ''">
-   and t.temp_car_in= #{tempCarIn}
-</if> 
-<if test="boxName !=null and boxName != ''">
-   and t.box_name= #{boxName}
-</if> 
-<if test="remark !=null and remark != ''">
-   and t.remark= #{remark}
-</if> 
-<if test="statusCd !=null and statusCd != ''">
-   and t.status_cd= #{statusCd}
-</if> 
-<if test="communityId !=null and communityId != ''">
-   and t.community_id= #{communityId}
-</if> 
-<if test="blueCarIn !=null and blueCarIn != ''">
-   and t.blue_car_in= #{blueCarIn}
-</if> 
-<if test="boxId !=null and boxId != ''">
-   and t.box_id= #{boxId}
-</if> 
-order by t.create_time desc
-<if test="page != -1 and page != null ">
-   limit #{page}, #{row}
-</if> 
+        select t.yelow_car_in,t.yelow_car_in yelowCarIn,t.fee,t.temp_car_in,t.temp_car_in
+        tempCarIn,t.box_name,t.box_name boxName,t.remark,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id
+        communityId,t.blue_car_in,t.blue_car_in blueCarIn,t.box_id,t.box_id boxId,pba.pa_id paId
+        from parking_box t
+        left join parking_box_area pba on t.box_id = pba.box_id and pba.default_area = 'T' and pba.status_cd ='0'
+        where 1 =1
+        <if test="yelowCarIn !=null and yelowCarIn != ''">
+            and t.yelow_car_in= #{yelowCarIn}
+        </if>
+        <if test="fee !=null and fee != ''">
+            and t.fee= #{fee}
+        </if>
+        <if test="tempCarIn !=null and tempCarIn != ''">
+            and t.temp_car_in= #{tempCarIn}
+        </if>
+        <if test="boxName !=null and boxName != ''">
+            and t.box_name= #{boxName}
+        </if>
+        <if test="remark !=null and remark != ''">
+            and t.remark= #{remark}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+        <if test="blueCarIn !=null and blueCarIn != ''">
+            and t.blue_car_in= #{blueCarIn}
+        </if>
+        <if test="boxId !=null and boxId != ''">
+            and t.box_id= #{boxId}
+        </if>
+        order by t.create_time desc
+        <if test="page != -1 and page != null ">
+            limit #{page}, #{row}
+        </if>
 
     </select>
 
 
-
-
     <!-- 修改岗亭信息 add by wuxw 2018-07-03 -->
     <update id="updateParkingBoxInfo" parameterType="Map">
-        update  parking_box t set t.status_cd = #{statusCd}
-<if test="newBId != null and newBId != ''">
-,t.b_id = #{newBId}
-</if> 
-<if test="yelowCarIn !=null and yelowCarIn != ''">
-, t.yelow_car_in= #{yelowCarIn}
-</if> 
-<if test="fee !=null and fee != ''">
-, t.fee= #{fee}
-</if> 
-<if test="tempCarIn !=null and tempCarIn != ''">
-, t.temp_car_in= #{tempCarIn}
-</if> 
-<if test="boxName !=null and boxName != ''">
-, t.box_name= #{boxName}
-</if> 
-<if test="remark !=null and remark != ''">
-, t.remark= #{remark}
-</if> 
-<if test="communityId !=null and communityId != ''">
-, t.community_id= #{communityId}
-</if> 
-<if test="blueCarIn !=null and blueCarIn != ''">
-, t.blue_car_in= #{blueCarIn}
-</if> 
- where 1=1 <if test="boxId !=null and boxId != ''">
-and t.box_id= #{boxId}
-</if> 
+        update parking_box t set t.status_cd = #{statusCd}
+        <if test="newBId != null and newBId != ''">
+            ,t.b_id = #{newBId}
+        </if>
+        <if test="yelowCarIn !=null and yelowCarIn != ''">
+            , t.yelow_car_in= #{yelowCarIn}
+        </if>
+        <if test="fee !=null and fee != ''">
+            , t.fee= #{fee}
+        </if>
+        <if test="tempCarIn !=null and tempCarIn != ''">
+            , t.temp_car_in= #{tempCarIn}
+        </if>
+        <if test="boxName !=null and boxName != ''">
+            , t.box_name= #{boxName}
+        </if>
+        <if test="remark !=null and remark != ''">
+            , t.remark= #{remark}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            , t.community_id= #{communityId}
+        </if>
+        <if test="blueCarIn !=null and blueCarIn != ''">
+            , t.blue_car_in= #{blueCarIn}
+        </if>
+        where 1=1
+        <if test="boxId !=null and boxId != ''">
+            and t.box_id= #{boxId}
+        </if>
 
     </update>
 
     <!-- 查询岗亭数量 add by wuxw 2018-07-03 -->
-     <select id="queryParkingBoxsCount" parameterType="Map" resultType="Map">
-        select  count(1) count 
-from parking_box t 
-where 1 =1 
-<if test="yelowCarIn !=null and yelowCarIn != ''">
-   and t.yelow_car_in= #{yelowCarIn}
-</if> 
-<if test="fee !=null and fee != ''">
-   and t.fee= #{fee}
-</if> 
-<if test="tempCarIn !=null and tempCarIn != ''">
-   and t.temp_car_in= #{tempCarIn}
-</if> 
-<if test="boxName !=null and boxName != ''">
-   and t.box_name= #{boxName}
-</if> 
-<if test="remark !=null and remark != ''">
-   and t.remark= #{remark}
-</if> 
-<if test="statusCd !=null and statusCd != ''">
-   and t.status_cd= #{statusCd}
-</if> 
-<if test="communityId !=null and communityId != ''">
-   and t.community_id= #{communityId}
-</if> 
-<if test="blueCarIn !=null and blueCarIn != ''">
-   and t.blue_car_in= #{blueCarIn}
-</if> 
-<if test="boxId !=null and boxId != ''">
-   and t.box_id= #{boxId}
-</if> 
+    <select id="queryParkingBoxsCount" parameterType="Map" resultType="Map">
+        select count(1) count
+        from parking_box t
+        where 1 =1
+        <if test="yelowCarIn !=null and yelowCarIn != ''">
+            and t.yelow_car_in= #{yelowCarIn}
+        </if>
+        <if test="fee !=null and fee != ''">
+            and t.fee= #{fee}
+        </if>
+        <if test="tempCarIn !=null and tempCarIn != ''">
+            and t.temp_car_in= #{tempCarIn}
+        </if>
+        <if test="boxName !=null and boxName != ''">
+            and t.box_name= #{boxName}
+        </if>
+        <if test="remark !=null and remark != ''">
+            and t.remark= #{remark}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+        <if test="blueCarIn !=null and blueCarIn != ''">
+            and t.blue_car_in= #{blueCarIn}
+        </if>
+        <if test="boxId !=null and boxId != ''">
+            and t.box_id= #{boxId}
+        </if>
 
 
-     </select>
+    </select>
 
 </mapper>