banner、商品、商品分类等代码的 REVIEW
This commit is contained in:
@@ -6,7 +6,7 @@ import lombok.experimental.Accessors;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
/** // TODO FROM 芋艿 to 2447007062:最好加下字段的注释哈;
|
||||
* @author:mac
|
||||
* @descriptio
|
||||
* @create: 2020-5-12 20:43:00
|
||||
|
||||
@@ -26,7 +26,7 @@ public interface UserMapper extends BaseMapper<UserDO> {
|
||||
*/
|
||||
default IPage<UserDO> selectUserPage(UserPageDTO userPageDTO) {
|
||||
// TODO FROM 芋艿 to jwf1173:看下 QueryWrapperX 噢,已经提供判空啦
|
||||
// TODO FROM 伟帆 to 芋艿: 这里是使用MP原生的判空,支持lambda好,还是使用QueryWrapperX,使用字段名字符串的好呢
|
||||
// TODO FROM 伟帆 to 芋艿: 这里是使用MP原生的判空,支持lambda好,还是使用QueryWrapperX,使用字段名字符串的好呢;reply:没特别想好,现在建议还是 QueryWrapperX
|
||||
return this.selectPage(new Page<>(userPageDTO.getPageNo(), userPageDTO.getPageSize()),
|
||||
Wrappers.<UserDO>query().lambda()
|
||||
.eq(StringUtils.isNotBlank(userPageDTO.getNickname()), UserDO::getNickname, userPageDTO.getNickname())
|
||||
|
||||
@@ -4,14 +4,13 @@ import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 访问日志添加 DTO
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class AccessLogPageDTO {
|
||||
public class AccessLogPageDTO { // TODO FROM 芋艿 to 2447007062:有个 PageParams 类哈,可以继承
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -48,7 +48,7 @@ public class SystemLogServiceImpl implements SystemLogService {
|
||||
@SuppressWarnings("Duplicates")
|
||||
public PageResult<AccessLogBO> getAccessLogPage(AccessLogPageDTO accessLogPageDTO) {
|
||||
PageResult<AccessLogBO> accessLogPageBOPageResult = SystemLogConvert.INSTANCE.convertPage(
|
||||
accessLogMapper.selectPage(accessLogPageDTO));
|
||||
accessLogMapper.selectPage(accessLogPageDTO)); // TODO FROM 芋艿 to 2447007062:可以考虑直接 return,简洁 + IDEA 不告警;
|
||||
return accessLogPageBOPageResult;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user