Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
ims
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
ims
Commits
33d54b3f
提交
33d54b3f
authored
7月 17, 2023
作者:
张小凤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OrgBack(update)
上级
bf9aa58c
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
34 行增加
和
19 行删除
+34
-19
LicenseOrganizationsDTO.java
...java/com/mmc/csf/licence/dto/LicenseOrganizationsDTO.java
+11
-0
LicenseOrganizationsQO.java
...n/java/com/mmc/csf/licence/qo/LicenseOrganizationsQO.java
+4
-9
LicenseOrganizationsDO.java
...mc/csf/release/entity/licence/LicenseOrganizationsDO.java
+12
-0
LicenceBackgroundServiceImpl.java
...se/service/licence/impl/LicenceBackgroundServiceImpl.java
+3
-6
LicenceBackgroundDao.xml
...rc/main/resources/mapper/licence/LicenceBackgroundDao.xml
+4
-4
没有找到文件。
csf-common/csf-common-model/src/main/java/com/mmc/csf/licence/dto/LicenseOrganizationsDTO.java
浏览文件 @
33d54b3f
...
@@ -7,10 +7,12 @@ import lombok.AllArgsConstructor;
...
@@ -7,10 +7,12 @@ import lombok.AllArgsConstructor;
import
lombok.Builder
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
javax.validation.constraints.Size
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -85,4 +87,13 @@ public class LicenseOrganizationsDTO {
...
@@ -85,4 +87,13 @@ public class LicenseOrganizationsDTO {
@ApiModelProperty
(
value
=
"纬度"
,
example
=
"50.892313123"
,
required
=
true
)
@ApiModelProperty
(
value
=
"纬度"
,
example
=
"50.892313123"
,
required
=
true
)
private
Double
latitude
;
private
Double
latitude
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty
(
value
=
"创建时间"
,
example
=
"2023-07-14"
,
required
=
true
)
private
Date
createTime
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty
(
value
=
"更新时间"
,
example
=
"2023-07-14"
,
required
=
true
)
private
Date
update_time
;
}
}
csf-common/csf-common-model/src/main/java/com/mmc/csf/licence/qo/LicenseOrganizationsQO.java
浏览文件 @
33d54b3f
package
com
.
mmc
.
csf
.
licence
.
qo
;
package
com
.
mmc
.
csf
.
licence
.
qo
;
import
com.mmc.csf.release.model.group.Freeze
;
import
com.mmc.csf.release.model.group.Page
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
/**
/**
* @Author small
* @Author small
* @Date 2023/7/14 16:58
* @Date 2023/7/14 16:58
...
@@ -47,13 +42,13 @@ public class LicenseOrganizationsQO {
...
@@ -47,13 +42,13 @@ public class LicenseOrganizationsQO {
private
String
region
;
private
String
region
;
@ApiModelProperty
(
value
=
"当前页"
,
required
=
true
,
example
=
"1"
)
@ApiModelProperty
(
value
=
"当前页"
,
required
=
true
,
example
=
"1"
)
@NotNull
(
message
=
"当前页不能为空"
,
groups
=
{
Page
.
class
,
Freeze
.
class
})
//
@NotNull(message = "当前页不能为空", groups = {Page.class, Freeze.class})
@Min
(
value
=
1
,
groups
=
Page
.
class
)
//
@Min(value = 1, groups = Page.class)
private
Integer
pageNo
;
private
Integer
pageNo
;
@ApiModelProperty
(
value
=
"页大小"
,
required
=
true
,
example
=
"10"
)
@ApiModelProperty
(
value
=
"页大小"
,
required
=
true
,
example
=
"10"
)
@NotNull
(
message
=
"页大小不能为空"
,
groups
=
{
Page
.
class
,
Freeze
.
class
})
//
@NotNull(message = "页大小不能为空", groups = {Page.class, Freeze.class})
@Min
(
value
=
1
,
groups
=
Page
.
class
)
//
@Min(value = 1, groups = Page.class)
private
Integer
pageSize
;
private
Integer
pageSize
;
public
void
buildCurrentPage
()
{
public
void
buildCurrentPage
()
{
...
...
release-service/src/main/java/com/mmc/csf/release/entity/licence/LicenseOrganizationsDO.java
浏览文件 @
33d54b3f
...
@@ -9,9 +9,11 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -9,9 +9,11 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -83,6 +85,14 @@ public class LicenseOrganizationsDO {
...
@@ -83,6 +85,14 @@ public class LicenseOrganizationsDO {
@ApiModelProperty
(
value
=
"纬度"
,
example
=
"50.892313123"
,
required
=
true
)
@ApiModelProperty
(
value
=
"纬度"
,
example
=
"50.892313123"
,
required
=
true
)
private
Double
latitude
;
private
Double
latitude
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty
(
value
=
"创建时间"
,
example
=
"2023-07-14"
,
required
=
true
)
private
Date
createTime
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty
(
value
=
"更新时间"
,
example
=
"2023-07-14"
,
required
=
true
)
private
Date
updateTime
;
/**
/**
* VO类转换
* VO类转换
*/
*/
...
@@ -127,6 +137,8 @@ public class LicenseOrganizationsDO {
...
@@ -127,6 +137,8 @@ public class LicenseOrganizationsDO {
.
regionName
(
this
.
regionName
)
.
regionName
(
this
.
regionName
)
.
longitude
(
this
.
longitude
)
.
longitude
(
this
.
longitude
)
.
latitude
(
this
.
latitude
)
.
latitude
(
this
.
latitude
)
.
createTime
(
this
.
createTime
)
.
update_time
(
this
.
updateTime
)
.
build
();
.
build
();
}
}
}
}
release-service/src/main/java/com/mmc/csf/release/service/licence/impl/LicenceBackgroundServiceImpl.java
浏览文件 @
33d54b3f
...
@@ -128,7 +128,6 @@ public class LicenceBackgroundServiceImpl implements LicenceBackgroundService {
...
@@ -128,7 +128,6 @@ public class LicenceBackgroundServiceImpl implements LicenceBackgroundService {
}
}
Integer
pageNo
=
organizationsQO
.
getPageNo
();
Integer
pageNo
=
organizationsQO
.
getPageNo
();
organizationsQO
.
buildCurrentPage
();
organizationsQO
.
buildCurrentPage
();
List
<
LicenseOrganizationsDO
>
licenseOrganizationsDOS
=
licenceBackgroundDao
.
listOrgPage
(
organizationsQO
);
List
<
LicenseOrganizationsDO
>
licenseOrganizationsDOS
=
licenceBackgroundDao
.
listOrgPage
(
organizationsQO
);
List
<
LicenseOrganizationsDTO
>
orgList
=
licenseOrganizationsDOS
.
stream
().
map
(
t
->
t
.
organizationsDTO
()).
collect
(
Collectors
.
toList
());
List
<
LicenseOrganizationsDTO
>
orgList
=
licenseOrganizationsDOS
.
stream
().
map
(
t
->
t
.
organizationsDTO
()).
collect
(
Collectors
.
toList
());
//培训项目数据
//培训项目数据
...
@@ -149,11 +148,9 @@ public class LicenceBackgroundServiceImpl implements LicenceBackgroundService {
...
@@ -149,11 +148,9 @@ public class LicenceBackgroundServiceImpl implements LicenceBackgroundService {
}
}
return
true
;
return
true
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
if
(
collect
.
size
()
==
0
)
{
List
<
LicenseOrganizationsDTO
>
subList
=
collect
.
stream
().
skip
((
pageNo
-
1
)
*
organizationsQO
.
getPageSize
()).
limit
(
organizationsQO
.
getPageSize
()).
count
=
0
;
collect
(
Collectors
.
toList
());
}
return
PageResult
.
buildPage
(
pageNo
,
organizationsQO
.
getPageSize
(),
subList
.
size
(),
subList
);
count
=
collect
.
size
();
return
PageResult
.
buildPage
(
pageNo
,
organizationsQO
.
getPageSize
(),
count
,
collect
);
}
}
...
...
release-service/src/main/resources/mapper/licence/LicenceBackgroundDao.xml
浏览文件 @
33d54b3f
...
@@ -256,7 +256,9 @@
...
@@ -256,7 +256,9 @@
lo.detailed_address AS detailedAddress,
lo.detailed_address AS detailedAddress,
lo.region_name AS regionName,
lo.region_name AS regionName,
lo.longitude,
lo.longitude,
lo.latitude
lo.latitude,
lo.create_time AS createTime,
lo.update_time AS updateTime
FROM license_organizations lo
FROM license_organizations lo
LEFT JOIN licence_scale ls ON lo.scale_id = ls.id
LEFT JOIN licence_scale ls ON lo.scale_id = ls.id
where 1=1
where 1=1
...
@@ -273,9 +275,7 @@
...
@@ -273,9 +275,7 @@
and lo.id =#{id}
and lo.id =#{id}
</if>
</if>
order by lo.id desc
order by lo.id desc
<if
test=
" pageNo != null and pageNo != '' and pageSize != null and pageSize != '' "
>
limit #{pageNo}, #{pageSize}
</if>
</select>
</select>
<select
id=
"trainingProgram"
resultType=
"com.mmc.csf.release.entity.licence.LicenseProgramsDO"
>
<select
id=
"trainingProgram"
resultType=
"com.mmc.csf.release.entity.licence.LicenseProgramsDO"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论