Browse Source

优化代码

Your Name 3 years ago
parent
commit
b3865c42e7

+ 2 - 2
java110-db/src/main/resources/mapper/store/ReserveGoodsV1ServiceDaoImplMapper.xml

@@ -17,10 +17,10 @@
 
 
     <!-- 查询预约商品信息 add by wuxw 2018-07-03 -->
     <!-- 查询预约商品信息 add by wuxw 2018-07-03 -->
     <select id="getReserveGoodsInfo" parameterType="Map" resultType="Map">
     <select id="getReserveGoodsInfo" parameterType="Map" resultType="Map">
-        select t.end_date,t.end_date endDate,t.goods_id,t.goods_id goodsId,t.status_cd,t.status_cd
+        select t.end_date,DATE_FORMAT(t.end_date,'%Y-%m-%d') endDate,t.goods_id,t.goods_id goodsId,t.status_cd,t.status_cd
         statusCd,t.sort,t.type,t.img_url,t.img_url imgUrl,t.catalog_id,t.catalog_id catalogId,t.params_id,t.params_id
         statusCd,t.sort,t.type,t.img_url,t.img_url imgUrl,t.catalog_id,t.catalog_id catalogId,t.params_id,t.params_id
         paramsId,t.price,t.state,t.community_id,t.community_id communityId,t.goods_name,t.goods_name
         paramsId,t.price,t.state,t.community_id,t.community_id communityId,t.goods_name,t.goods_name
-        goodsName,t.start_date,t.start_date startDate,t.goods_desc,t.goods_desc goodsDesc,t.create_time createTime,
+        goodsName,t.start_date,DATE_FORMAT(t.start_date,'%Y-%m-%d') startDate,t.goods_desc,t.goods_desc goodsDesc,t.create_time createTime,
         rp.param_way paramWay,rp.max_quantity  maxQuantity,rp.name paramsName,rp.start_time startTime,
         rp.param_way paramWay,rp.max_quantity  maxQuantity,rp.name paramsName,rp.start_time startTime,
         rp.hours_max_quantity hoursMaxQuantity
         rp.hours_max_quantity hoursMaxQuantity
         from reserve_goods t
         from reserve_goods t