|
@@ -35,9 +35,9 @@ public class SysParamService {
|
|
|
SysParamEntity sysParamEntity = sysParamMapper.selectOne(null);
|
|
SysParamEntity sysParamEntity = sysParamMapper.selectOne(null);
|
|
|
if (sysParamEntity == null) {
|
|
if (sysParamEntity == null) {
|
|
|
sysParamEntity = new SysParamEntity();
|
|
sysParamEntity = new SysParamEntity();
|
|
|
- sysParamEntity.setHoldTopCount(0);
|
|
|
|
|
- sysParamEntity.setDayBackTopCount(0);
|
|
|
|
|
- sysParamEntity.setBackPublicDayCount(0);
|
|
|
|
|
|
|
+ sysParamEntity.setHoldTopCount(100);
|
|
|
|
|
+ sysParamEntity.setDayBackTopCount(15);
|
|
|
|
|
+ sysParamEntity.setBackPublicDayCount(15);
|
|
|
sysParamEntity.setTitle("公海设置");
|
|
sysParamEntity.setTitle("公海设置");
|
|
|
sysParamMapper.insert(sysParamEntity);
|
|
sysParamMapper.insert(sysParamEntity);
|
|
|
}
|
|
}
|
|
@@ -45,6 +45,31 @@ public class SysParamService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询参数配置数据
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ public SysParamBO queryParamsPublicData() {
|
|
|
|
|
+ SysParamEntity sysParamEntity = sysParamMapper.selectOne(null);
|
|
|
|
|
+ if (sysParamEntity == null) {
|
|
|
|
|
+ sysParamEntity = new SysParamEntity();
|
|
|
|
|
+ sysParamEntity.setHoldTopCount(100);
|
|
|
|
|
+ sysParamEntity.setDayBackTopCount(15);
|
|
|
|
|
+ sysParamEntity.setBackPublicDayCount(15);
|
|
|
|
|
+ sysParamEntity.setTitle("公海设置");
|
|
|
|
|
+ sysParamMapper.insert(sysParamEntity);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return
|
|
|
|
|
+ SysParamBO.builder()
|
|
|
|
|
+ .id(sysParamEntity.getId())
|
|
|
|
|
+ .holdTopCount(sysParamEntity.getHoldTopCount())
|
|
|
|
|
+ .backPublicDayCount(sysParamEntity.getBackPublicDayCount())
|
|
|
|
|
+ .dayBackTopCount(sysParamEntity.getDayBackTopCount())
|
|
|
|
|
+ .build();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 根据 ID 取详情
|
|
* 根据 ID 取详情
|
|
|
*
|
|
*
|