From 781c2e20a4bb844dae3f4eafbf5f0e494b942ea8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 25 五月 2023 18:07:08 +0800
Subject: [PATCH] optimize

---
 java110-db/src/main/resources/mapper/user/CarBlackWhiteV1ServiceDaoImplMapper.xml |   22 +++++-----------------
 1 files changed, 5 insertions(+), 17 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/user/CarBlackWhiteV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/CarBlackWhiteV1ServiceDaoImplMapper.xml
index b021068..3f90778 100644
--- a/java110-db/src/main/resources/mapper/user/CarBlackWhiteV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/CarBlackWhiteV1ServiceDaoImplMapper.xml
@@ -1,19 +1,15 @@
 <?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="carBlackWhiteV1ServiceDaoImpl">
 
-
     <!-- 淇濆瓨杞﹁締榛戠櫧鍚嶅崟淇℃伅 add by wuxw 2018-07-03 -->
     <insert id="saveCarBlackWhiteInfo" parameterType="Map">
-        insert into car_black_white(
-        black_white,pa_id,car_num,start_time,end_time,community_id,bw_id
-        ) values (
-        #{blackWhite},#{paId},#{carNum},#{startTime},#{endTime},#{communityId},#{bwId}
-        )
+        insert into car_black_white(black_white, pa_id, car_num, start_time, end_time, community_id, bw_id, b_id,
+                                    create_time)
+        values (#{blackWhite}, #{paId}, #{carNum}, #{startTime}, #{endTime}, #{communityId}, #{bwId}, #{bId},
+                #{createTime})
     </insert>
-
 
     <!-- 鏌ヨ杞﹁締榛戠櫧鍚嶅崟淇℃伅 add by wuxw 2018-07-03 -->
     <select id="getCarBlackWhiteInfo" parameterType="Map" resultType="Map">
@@ -54,9 +50,7 @@
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
         </if>
-
     </select>
-
 
     <!-- 淇敼杞﹁締榛戠櫧鍚嶅崟淇℃伅 add by wuxw 2018-07-03 -->
     <update id="updateCarBlackWhiteInfo" parameterType="Map">
@@ -86,7 +80,6 @@
         <if test="bwId !=null and bwId != ''">
             and t.bw_id= #{bwId}
         </if>
-
     </update>
 
     <!-- 鏌ヨ杞﹁締榛戠櫧鍚嶅崟鏁伴噺 add by wuxw 2018-07-03 -->
@@ -116,16 +109,11 @@
             and t.end_time &gt; now()
             and t.start_time &lt; now()
         </if>
-
-
         <if test="communityId !=null and communityId != ''">
             and t.community_id= #{communityId}
         </if>
         <if test="bwId !=null and bwId != ''">
             and t.bw_id= #{bwId}
         </if>
-
-
     </select>
-
 </mapper>

--
Gitblit v1.8.0