记得上下班打卡 | git大法好,push需谨慎

Commit db90a8e3 authored by 胡佳晨's avatar 胡佳晨

admin mybatis 配置提交

parent 9105ba73
...@@ -21,7 +21,7 @@ public class PerformanceAdminListParam { ...@@ -21,7 +21,7 @@ public class PerformanceAdminListParam {
private Integer auditStatus; private Integer auditStatus;
@ApiModelProperty(value = "停售时间(天)-2全部", example = "-2") @ApiModelProperty(value = "停售时间(天)-2全部", example = "-2")
private long stopSellDay; private long stopSellDay;
@ApiModelProperty(value = "停售时间", example = "2000-01-01 12:00:00",hidden = true) @ApiModelProperty(value = "停售时间", example = "2000-01-01 12:00:00", hidden = true)
private String stopSellTime; private String stopSellTime;
@ApiModelProperty(value = "页数", example = "0") @ApiModelProperty(value = "页数", example = "0")
@NotNull(message = "不能为空") @NotNull(message = "不能为空")
...@@ -35,8 +35,23 @@ public class PerformanceAdminListParam { ...@@ -35,8 +35,23 @@ public class PerformanceAdminListParam {
private String orderSc; private String orderSc;
public void setStopSellDay(Long stopSellDay) { public void setStopSellDay(Long stopSellDay) {
this.stopSellDay=stopSellDay; this.stopSellDay = stopSellDay;
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
this.stopSellTime = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss").format(now.plusDays(-stopSellDay)); this.stopSellTime = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss").format(now.plusDays(-stopSellDay));
} }
@ApiModelProperty(hidden = true)
private Integer page;
@ApiModelProperty(hidden = true)
private Integer size;
public void setPageNum(Integer pageNum){
this.pageNum=pageNum;
this.page=pageNum;
}
public void setPageSize(Integer pageSize){
this.pageSize=pageSize;
this.size=pageSize;
}
} }
...@@ -91,9 +91,9 @@ spring: ...@@ -91,9 +91,9 @@ spring:
# MyBatis # MyBatis
mybatis: mybatis:
# 搜索指定包别名 # 搜索指定包别名
typeAliasesPackage: com.liquidnet.client.admin.**.domain typeAliasesPackage: com.liquidnet.service.kylin.entity,com.liquidnet.client.admin.**.domain
# 配置mapper的扫描,找到所有的mapper.xml映射文件 # 配置mapper的扫描,找到所有的mapper.xml映射文件
mapperLocations: classpath*:mapper/**/*Mapper.xml mapperLocations: classpath*:mapper/**/*Mapper.xml,classpath:com.liquidnet.service.kylin.mapper/*Mapper.xml,classpath:com.liquidnet.service.adam.mapper/*Mapper.xml
# 加载全局的配置文件 # 加载全局的配置文件
configLocation: classpath:mybatis/mybatis-config.xml configLocation: classpath:mybatis/mybatis-config.xml
......
...@@ -205,6 +205,7 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma ...@@ -205,6 +205,7 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
List<PerformanceAdminListDao> voList = performancesMapper.misPerformanceList(BeanUtil.convertBeanToMap(performanceAdminListParam)); List<PerformanceAdminListDao> voList = performancesMapper.misPerformanceList(BeanUtil.convertBeanToMap(performanceAdminListParam));
pageInfoTmp = new PageInfo(voList); pageInfoTmp = new PageInfo(voList);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
return null; return null;
} }
return pageInfoTmp; return pageInfoTmp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment