Aslee 3 년 전
부모
커밋
80d99e1866
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 0
      src/main/java/com/caimei365/commodity/service/impl/PageServiceImpl.java
  2. 1 1
      src/main/resources/mapper/PageMapper.xml

+ 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