he2802 před 3 roky
rodič
revize
cdf3df4d23

+ 1 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/mapper/UserProfileMapper.java

@@ -25,4 +25,5 @@ public interface UserProfileMapper extends BaseMapper<UserProfile> {
     Long selectCountProfile(@Param("userId") Long userId,@Param("goodsId") Long goodsId);
 
     Long selectGrade(@Param("userId") Long userId,@Param("goodsId") Long goodsId);
+    
 }

+ 1 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/service/impl/ProfileTpServiceImpl.java

@@ -162,6 +162,7 @@ public class ProfileTpServiceImpl extends ServiceImpl<ProfileTpMapper, ProfileTp
         //查询该商品的资料模板字段
         ProfileTpQueryBo profileTpQueryBo = new ProfileTpQueryBo();
         profileTpQueryBo.setGoodsId(goodsId);
+        profileTpQueryBo.setStatus(new ArrayList<Integer>(Arrays.asList(1)));
         List<ProfileTpVo> profileTpVos = profileTpMapper.selectList(profileTpQueryBo);
         if (!CollectionUtils.isEmpty(profileTpVos)){
             return profileTpVos.get(0);

+ 2 - 0
zhongzheng-system/src/main/resources/mapper/modules/base/UserProfileMapper.xml

@@ -191,6 +191,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         order by up.create_time desc
     </select>
 
+
+
     <select id="selectCountProfile" parameterType="map" resultType="Long">
         SELECT
             COUNT(1)