Browse Source

6月小版本

Duan_xu 2 years ago
parent
commit
fd090d099e

+ 3 - 0
src/main/java/com/caimei/modules/product/service/ProductNewService.java

@@ -220,6 +220,9 @@ public class ProductNewService extends CrudService<ProductNewDao, Product> {
         product.setBeforeValidFlag(beforeValidFlag);
         product.setNewvalidFlag(newvalidFlag);
         product.setShowTime(showtime);
+        SimpleDateFormat formatters = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+        String createDates = formatters.format(new Date());
+        product.setNewshowTime(createDates);
 
         NewPageFloorImage floorImage=new NewPageFloorImage();
         floorImage.setFloorId(productNewDao.newFloorId());

+ 3 - 0
src/main/resources/mappings/modules/product/ProductNewMapper.xml

@@ -702,6 +702,9 @@
             <if test="showTime!= '' and showTime!=null">
                 showTime=#{showTime},
             </if>
+            <if test="newshowTime !=null">
+                newshowTime=#{newshowTime}
+            </if>
             <if test="newvalidFlag == 1">
                 showFlag=1
             </if>