Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
pms-ci-test
Commits
e96dcfdb
提交
e96dcfdb
authored
8月 15, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
服务团队列表
上级
c1cad465
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
31 行增加
和
8 行删除
+31
-8
CompanyInspectionQO.java
src/main/java/com/mmc/pms/model/qo/CompanyInspectionQO.java
+2
-0
CompanyInspectionDao.xml
...main/resources/mapper/inspection/CompanyInspectionDao.xml
+29
-8
没有找到文件。
src/main/java/com/mmc/pms/model/qo/CompanyInspectionQO.java
浏览文件 @
e96dcfdb
...
@@ -30,6 +30,8 @@ public class CompanyInspectionQO implements Serializable {
...
@@ -30,6 +30,8 @@ public class CompanyInspectionQO implements Serializable {
private
Integer
inspectionId
;
private
Integer
inspectionId
;
@ApiModelProperty
(
value
=
"作业团队id"
)
@ApiModelProperty
(
value
=
"作业团队id"
)
private
Integer
companyInfoId
;
private
Integer
companyInfoId
;
@ApiModelProperty
(
value
=
"标签id"
)
private
Integer
inspectionTagId
;
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
)
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
)
@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
)
...
...
src/main/resources/mapper/inspection/CompanyInspectionDao.xml
浏览文件 @
e96dcfdb
...
@@ -30,15 +30,17 @@
...
@@ -30,15 +30,17 @@
<result
property=
"tagName"
column=
"tag_name"
/>
<result
property=
"tagName"
column=
"tag_name"
/>
<result
property=
"inspectionId"
column=
"inspection_id"
/>
<result
property=
"inspectionId"
column=
"inspection_id"
/>
</association>
</association>
<collection
property=
"inspectionFileDOS"
ofType=
"com.mmc.pms.entity.inspection.CompanyInspectionFileDO"
>
<collection
property=
"inspectionFileDOS"
javaType=
"java.util.ArrayList"
<id
property=
"id"
column=
"company_inspection_file_id"
/>
select=
"listFileByCompanyInspectionId"
<result
property=
"fileType"
column=
"file_type"
/>
ofType=
"com.mmc.pms.entity.inspection.CompanyInspectionFileDO"
column=
"{companyInspectionId=id}"
>
<result
property=
"first"
column=
"first"
/>
<result
property=
"companyInspectionId"
column=
"id"
/>
<result
property=
"fileUrl"
column=
"file_url"
/>
</collection>
</collection>
</resultMap>
</resultMap>
<select
id=
"listFileByCompanyInspectionId"
resultType=
"com.mmc.pms.entity.inspection.CompanyInspectionFileDO"
>
select cif.id, file_type, `first`, company_inspection_id, file_url, create_time
from company_inspection_file cif
where cif.is_deleted = 0 and cif.company_inspection_id = #{companyInspectionId} order by cif.id desc
</select>
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
parameterType=
"com.mmc.pms.entity.inspection.CompanyInspectionDO"
>
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
parameterType=
"com.mmc.pms.entity.inspection.CompanyInspectionDO"
>
insert into company_inspection(company_info_id, service_area, inspection_id, inspection_tag_id, price, price_remark, inspection_price_unit_id,
insert into company_inspection(company_info_id, service_area, inspection_id, inspection_tag_id, price, price_remark, inspection_price_unit_id,
...
@@ -117,6 +119,7 @@
...
@@ -117,6 +119,7 @@
select count(*)
select count(*)
from company_inspection cins INNER JOIN inspection ins ON ins.id = cins.inspection_id
from company_inspection cins INNER JOIN inspection ins ON ins.id = cins.inspection_id
INNER JOIN industry_type it ON it.id = ins.industry_type_id
INNER JOIN industry_type it ON it.id = ins.industry_type_id
INNER JOIN inspection_tag itag ON cins.inspection_tag_id = itag.id
where cins.is_deleted = 0
where cins.is_deleted = 0
<if
test=
"keyword != null"
>
<if
test=
"keyword != null"
>
and ins.inspection_name = #{keyword}
and ins.inspection_name = #{keyword}
...
@@ -127,6 +130,9 @@
...
@@ -127,6 +130,9 @@
<if
test=
"companyInfoId != null"
>
<if
test=
"companyInfoId != null"
>
and cins.company_info_id = #{companyInfoId}
and cins.company_info_id = #{companyInfoId}
</if>
</if>
<if
test=
"inspectionTagId != null"
>
and cins.inspection_tag_id = #{inspectionTagId}
</if>
</select>
</select>
<select
id=
"listCompanyInspectionPage"
resultMap=
"companyInspectionResultMap"
parameterType=
"com.mmc.pms.model.qo.CompanyInspectionQO"
>
<select
id=
"listCompanyInspectionPage"
resultMap=
"companyInspectionResultMap"
parameterType=
"com.mmc.pms.model.qo.CompanyInspectionQO"
>
...
@@ -138,7 +144,7 @@
...
@@ -138,7 +144,7 @@
cif.id as company_inspection_file_id, cif.file_type, cif.`first`, cif.file_url
cif.id as company_inspection_file_id, cif.file_type, cif.`first`, cif.file_url
from company_inspection cins INNER JOIN inspection ins ON ins.id = cins.inspection_id
from company_inspection cins INNER JOIN inspection ins ON ins.id = cins.inspection_id
INNER JOIN industry_type it ON it.id = ins.industry_type_id
INNER JOIN industry_type it ON it.id = ins.industry_type_id
INNER JOIN inspection_tag itag ON
itag.inspection_id = ins
.id
INNER JOIN inspection_tag itag ON
cins.inspection_tag_id = itag
.id
INNER JOIN company_inspection_file cif ON cif.company_inspection_id = cins.id
INNER JOIN company_inspection_file cif ON cif.company_inspection_id = cins.id
where cins.is_deleted = 0
where cins.is_deleted = 0
<if
test=
"keyword != null"
>
<if
test=
"keyword != null"
>
...
@@ -150,12 +156,18 @@
...
@@ -150,12 +156,18 @@
<if
test=
"companyInfoId != null"
>
<if
test=
"companyInfoId != null"
>
and cins.company_info_id = #{companyInfoId}
and cins.company_info_id = #{companyInfoId}
</if>
</if>
<if
test=
"inspectionTagId != null"
>
and cins.inspection_tag_id = #{inspectionTagId}
</if>
order by cins.id desc
limit #{pageNo}, #{pageSize}
</select>
</select>
<select
id=
"countListAPPCompanyInspectionPage"
resultType=
"java.lang.Integer"
>
<select
id=
"countListAPPCompanyInspectionPage"
resultType=
"java.lang.Integer"
>
select count(*)
select count(*)
from company_inspection cins INNER JOIN inspection ins ON ins.id = cins.inspection_id
from company_inspection cins INNER JOIN inspection ins ON ins.id = cins.inspection_id
INNER JOIN industry_type it ON it.id = ins.industry_type_id
INNER JOIN industry_type it ON it.id = ins.industry_type_id
INNER JOIN inspection_tag itag ON cins.inspection_tag_id = itag.id
where cins.is_deleted = 0 and cins.sale_state = 1
where cins.is_deleted = 0 and cins.sale_state = 1
<if
test=
"keyword != null"
>
<if
test=
"keyword != null"
>
and ins.inspection_name = #{keyword}
and ins.inspection_name = #{keyword}
...
@@ -169,6 +181,9 @@
...
@@ -169,6 +181,9 @@
<if
test=
"companyInfoId != null"
>
<if
test=
"companyInfoId != null"
>
and cins.company_info_id = #{companyInfoId}
and cins.company_info_id = #{companyInfoId}
</if>
</if>
<if
test=
"inspectionTagId != null"
>
and cins.inspection_tag_id = #{inspectionTagId}
</if>
</select>
</select>
<select
id=
"listAPPCompanyInspectionPage"
resultMap=
"companyInspectionResultMap"
>
<select
id=
"listAPPCompanyInspectionPage"
resultMap=
"companyInspectionResultMap"
>
...
@@ -180,7 +195,7 @@
...
@@ -180,7 +195,7 @@
cif.id as company_inspection_file_id, cif.file_type, cif.`first`, cif.file_url
cif.id as company_inspection_file_id, cif.file_type, cif.`first`, cif.file_url
from company_inspection cins INNER JOIN inspection ins ON ins.id = cins.inspection_id
from company_inspection cins INNER JOIN inspection ins ON ins.id = cins.inspection_id
INNER JOIN industry_type it ON it.id = ins.industry_type_id
INNER JOIN industry_type it ON it.id = ins.industry_type_id
INNER JOIN inspection_tag itag ON
itag.inspection_id = ins
.id
INNER JOIN inspection_tag itag ON
cins.inspection_tag_id = itag
.id
INNER JOIN company_inspection_file cif ON cif.company_inspection_id = cins.id
INNER JOIN company_inspection_file cif ON cif.company_inspection_id = cins.id
where cins.is_deleted = 0 and cins.sale_state = 1
where cins.is_deleted = 0 and cins.sale_state = 1
<if
test=
"keyword != null"
>
<if
test=
"keyword != null"
>
...
@@ -195,5 +210,10 @@
...
@@ -195,5 +210,10 @@
<if
test=
"companyInfoId != null"
>
<if
test=
"companyInfoId != null"
>
and cins.company_info_id = #{companyInfoId}
and cins.company_info_id = #{companyInfoId}
</if>
</if>
<if
test=
"inspectionTagId != null"
>
and cins.inspection_tag_id = #{inspectionTagId}
</if>
order by cins.id desc
limit #{pageNo}, #{pageSize}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论