Aslee %!s(int64=3) %!d(string=hai) anos
pai
achega
80d99e1866

+ 2 - 0
src/main/java/com/caimei365/commodity/service/impl/PageServiceImpl.java

@@ -21,6 +21,8 @@ import org.springframework.stereotype.Service;
 import org.springframework.util.CollectionUtils;
 
 import javax.annotation.Resource;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
 import java.util.*;
 import java.util.stream.Collectors;
 

+ 1 - 1
src/main/resources/mapper/PageMapper.xml

@@ -697,7 +697,7 @@
         where productId = #{productId}
     </select>
     <select id="getSidebarBaike" resultType="com.caimei365.commodity.model.vo.BaikeProductVo">
-        select id as productId, name, image
+        select id as productId, commodityType, name, image
         from cm_baike_product
         WHERE topPosition IN (1, 2, 3)
         and status = 1 and NOW() > publishTime