Browse Source

//activity v.2

release_toaliyun_real
xiaohu 1 year ago
parent
commit
e29a8b8fa2
3 changed files with 5 additions and 2 deletions
  1. +2
    -1
      mallinkService/src/main/java/com/iformall/mapper/WxVtwoActivitySpecialTopicMapper.java
  2. +2
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxVtwoActivitySpecialTopicServiceImpl.java
  3. +1
    -0
      mallinkService/src/main/resources/mapper/WxVtwoActivitySpecialTopicMapper.xml

+ 2
- 1
mallinkService/src/main/java/com/iformall/mapper/WxVtwoActivitySpecialTopicMapper.java View File

@@ -22,7 +22,8 @@ public interface WxVtwoActivitySpecialTopicMapper extends CommonMapper<WxVtwoAct

WxVtwoActivitySpecialTopic selectById(@Param("id") Long id, @Param("tenantId")String tenantId);

WxVtwoActivitySpecialTopic selectCreditOne(@Param("tenantId")String tenantId,@Param("creditOnOff") Integer creditOnOff, @Param("orderDate") Date orderDate);
WxVtwoActivitySpecialTopic selectCreditOne(@Param("tenantId")String tenantId,@Param("creditOnOff") Integer creditOnOff,
@Param("orderDate") Date orderDate,@Param("status") Integer status);
}




+ 2
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxVtwoActivitySpecialTopicServiceImpl.java View File

@@ -151,7 +151,8 @@ public class WxVtwoActivitySpecialTopicServiceImpl extends ServiceImpl<WxVtwoAct

@Override
public WxVtwoActivitySpecialTopic selectCreditOne(TenantEntity tenantEntity, Date orderDate) {
WxVtwoActivitySpecialTopic specialTopic = wxVtwoActivitySpecialTopicMapper.selectCreditOne(tenantEntity.getTenantId(),EnumYesOrNo.YES.getCode(),orderDate);
WxVtwoActivitySpecialTopic specialTopic = wxVtwoActivitySpecialTopicMapper.selectCreditOne(tenantEntity.getTenantId(),EnumYesOrNo.YES.getCode(),
orderDate,EnumOfflineActivityStatus.ON_LINE.getCode());
if (specialTopic == null) {
return null;
}


+ 1
- 0
mallinkService/src/main/resources/mapper/WxVtwoActivitySpecialTopicMapper.xml View File

@@ -107,6 +107,7 @@
and credit_on_off = #{creditOnOff}
and `start_time` &lt;= #{orderDate}
and `end_time` &gt;= #{orderDate}
and `status` = #{status}
limit 1
</select>
</mapper>

Loading…
Cancel
Save