bug--代码规范优化

This commit is contained in:
taochengbo
2020-10-11 18:44:17 +08:00
parent 61a09632d8
commit cb5f228ac6
7 changed files with 22 additions and 7 deletions

View File

@ -36,6 +36,7 @@ public interface YxStoreCombinationMapper extends CoreMapper<YxStoreCombination>
" AND c.stop_time > now() ORDER BY c.sort desc,c.id desc")
List<YxStoreCombinationQueryVo> getCombList(Page page);
@Override
IPage<YxStoreCombination> selectPage(IPage<YxStoreCombination> page, @Param("ew") Wrapper<YxStoreCombination> queryWrapper);
@Select("SELECT c.id,c.effective_time as effectiveTime,c.image,c.people,c.price,c.browse," +

View File

@ -129,7 +129,9 @@ public class YxStoreOrderQueryVo implements Serializable {
private String deliveryType;
public String getDeliveryType() {
if(StrUtil.isBlank(deliveryType)) return "express";
if(StrUtil.isBlank(deliveryType)) {
return "express";
}
return deliveryType;
}

View File

@ -75,7 +75,9 @@ public class YxStoreProductReplyServiceImpl extends BaseServiceImpl<StoreProduct
public ReplyCountVo getReplyCount(long productId) {
int sumCount = productReplyCount(productId);
if(sumCount == 0) return new ReplyCountVo();
if(sumCount == 0) {
return new ReplyCountVo();
}
//好评
int goodCount = this.baseMapper.selectCount(Wrappers.<YxStoreProductReply>lambdaQuery()