Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
pms-ci-test
Commits
e5f3acd9
提交
e5f3acd9
authored
8月 18, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
作业服务相关修改
上级
ca61e3fa
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
4 行删除
+8
-4
CompanyInspectionDO.java
...va/com/mmc/pms/entity/inspection/CompanyInspectionDO.java
+1
-2
CompanyInspectionDao.xml
...main/resources/mapper/inspection/CompanyInspectionDao.xml
+7
-2
没有找到文件。
src/main/java/com/mmc/pms/entity/inspection/CompanyInspectionDO.java
浏览文件 @
e5f3acd9
...
@@ -65,7 +65,6 @@ public class CompanyInspectionDO implements Serializable {
...
@@ -65,7 +65,6 @@ public class CompanyInspectionDO implements Serializable {
*/
*/
private
String
remark
;
private
String
remark
;
private
Date
createTime
;
private
Date
createTime
;
private
String
inspectionFirstImg
;
IndustryTypeDO
industryTypeDO
;
IndustryTypeDO
industryTypeDO
;
...
@@ -81,7 +80,7 @@ public class CompanyInspectionDO implements Serializable {
...
@@ -81,7 +80,7 @@ public class CompanyInspectionDO implements Serializable {
.
industryTypeDTO
(
this
.
industryTypeDO
==
null
?
null
:
this
.
industryTypeDO
.
buildIndustryTypeDTO
())
.
industryTypeDTO
(
this
.
industryTypeDO
==
null
?
null
:
this
.
industryTypeDO
.
buildIndustryTypeDTO
())
.
inspectionDTO
(
this
.
inspectionDO
==
null
?
null
:
this
.
inspectionDO
.
buildInspectionDTO
())
.
inspectionDTO
(
this
.
inspectionDO
==
null
?
null
:
this
.
inspectionDO
.
buildInspectionDTO
())
.
inspectionTagDTO
(
this
.
inspectionTagDO
==
null
?
null
:
this
.
inspectionTagDO
.
buildInspectionTagDTO
())
.
inspectionTagDTO
(
this
.
inspectionTagDO
==
null
?
null
:
this
.
inspectionTagDO
.
buildInspectionTagDTO
())
.
inspectionFirstImg
(
CollectionUtils
.
isEmpty
(
this
.
inspectionFileDOS
)
?
inspectionFirstImg
:
.
inspectionFirstImg
(
CollectionUtils
.
isEmpty
(
this
.
inspectionFileDOS
)
?
null
:
this
.
inspectionFileDOS
.
stream
().
filter
(
i
->
i
.
getFileType
().
equals
(
0
)
&&
i
.
getFirst
().
equals
(
1
))
this
.
inspectionFileDOS
.
stream
().
filter
(
i
->
i
.
getFileType
().
equals
(
0
)
&&
i
.
getFirst
().
equals
(
1
))
.
findFirst
().
get
().
getFileUrl
())
.
findFirst
().
get
().
getFileUrl
())
.
inspectionFileDTOS
(
CollectionUtils
.
isEmpty
(
this
.
inspectionFileDOS
)
?
null
:
.
inspectionFileDTOS
(
CollectionUtils
.
isEmpty
(
this
.
inspectionFileDOS
)
?
null
:
...
...
src/main/resources/mapper/inspection/CompanyInspectionDao.xml
浏览文件 @
e5f3acd9
...
@@ -233,10 +233,12 @@
...
@@ -233,10 +233,12 @@
</select>
</select>
<select
id=
"listAPPCompanyInspectionPageByCompanyId"
<select
id=
"listAPPCompanyInspectionPageByCompanyId"
result
Type=
"com.mmc.pms.entity.inspection.CompanyInspectionDO
"
>
result
Map=
"companyInspectionResultMap
"
>
select com_ins.id, com_ins.company_info_id, com_ins.service_area, com_ins.inspection_id, com_ins.inspection_tag_id, com_ins.price,
select com_ins.id, com_ins.company_info_id, com_ins.service_area, com_ins.inspection_id, com_ins.inspection_tag_id, com_ins.price,
com_ins.price_remark, com_ins.inspection_price_unit_id,com_ins.detail_page, com_ins.sale_state, com_ins.remark, com_ins.create_time,
com_ins.price_remark, com_ins.inspection_price_unit_id,com_ins.detail_page, com_ins.sale_state, com_ins.remark, com_ins.create_time,
cif.file_url as inspectionFirstImg
it.id as industry_type_id, it.type_name,
ins.id as inspection_id, ins.inspection_no, ins.inspection_name,
itag.id as inspection_tag_id, itag.tag_name
FROM
FROM
(
(
SELECT
SELECT
...
@@ -250,6 +252,9 @@
...
@@ -250,6 +252,9 @@
</foreach>
)
</foreach>
)
) com_ins
) com_ins
INNER JOIN company_inspection_file cif ON com_ins.id = cif.company_inspection_id
INNER JOIN company_inspection_file cif ON com_ins.id = cif.company_inspection_id
INNER JOIN inspection ins ON ins.id = com_ins.inspection_id
INNER JOIN industry_type it ON it.id = ins.industry_type_id
LEFT JOIN inspection_tag itag ON com_ins.inspection_tag_id = itag.id
AND cif.`first` = 1
AND cif.`first` = 1
WHERE
WHERE
row_num
<
= 2
row_num
<
= 2
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论