Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
c946c006
Commit
c946c006
authored
Sep 28, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改全站校验接口和列表展示接口
parent
50355ab1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
4 deletions
+20
-4
CheckResult.java
.../yeejoin/amos/boot/module/tdc/api/entity/CheckResult.java
+0
-2
CheckResultMapper.xml
...e-tdc-api/src/main/resources/mapper/CheckResultMapper.xml
+7
-1
CheckModelImpl.java
...amos/boot/module/tdc/biz/service/impl/CheckModelImpl.java
+9
-0
CheckResultImpl.java
...mos/boot/module/tdc/biz/service/impl/CheckResultImpl.java
+4
-1
No files found.
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/entity/CheckResult.java
View file @
c946c006
...
...
@@ -34,8 +34,6 @@ public class CheckResult {
@ApiModelProperty
(
value
=
"检查项值"
)
private
String
checkItemValue
;
@ApiModelProperty
(
value
=
"检查项标准值"
)
private
String
checkItemRealValue
;
@ApiModelProperty
(
value
=
"检查项结果"
)
private
String
checkItemResult
;
...
...
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/resources/mapper/CheckResultMapper.xml
View file @
c946c006
...
...
@@ -3,7 +3,13 @@
<mapper
namespace=
"com.yeejoin.amos.boot.module.tdc.api.mapper.CheckResultMapper"
>
<select
id=
"selectResult"
resultType=
"com.yeejoin.amos.boot.module.tdc.api.dto.CheckResultDto"
>
select check_date, case when check_type="1" then '全站校验' else `model_name` end as `name`
from `tdc_check_result` where amos_org_code=#{code} GROUP BY batch_no
from `tdc_check_result`
<where>
<if
test=
"code != '' and code != null"
>
and amos_org_code=#{code}
</if>
</where>
GROUP BY batch_no
</select>
<select
id=
"selectTotal"
resultType=
"com.yeejoin.amos.boot.module.tdc.api.dto.CheckResultDto"
>
...
...
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/service/impl/CheckModelImpl.java
View file @
c946c006
...
...
@@ -5,10 +5,12 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckModel
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckResult
;
import
com.yeejoin.amos.boot.module.tdc.api.mapper.CheckModelMapper
;
import
com.yeejoin.amos.boot.module.tdc.api.service.CheckModelService
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
/**
* @author xxz
...
...
@@ -19,12 +21,19 @@ public class CheckModelImpl extends ServiceImpl<CheckModelMapper, CheckModel> im
@Override
public
IPage
<
CheckModel
>
selectByOrgCode
(
int
current
,
int
size
,
String
amosOrgCode
)
{
Page
page
=
new
Page
(
current
,
size
);
if
(
ValidationUtil
.
isEmpty
(
amosOrgCode
)){
return
this
.
page
(
page
);
}
else
{
LambdaQueryWrapper
<
CheckModel
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
CheckModel:
:
getAmosOrgCode
,
amosOrgCode
);
// return baseMapper.selectList(wrapper);
return
this
.
page
(
page
,
wrapper
);
}
}
@Override
public
CheckModel
selectOneByDate
(
String
amosOrgCode
)
{
LambdaQueryWrapper
<
CheckModel
>
wrapper
=
new
LambdaQueryWrapper
<>();
...
...
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/service/impl/CheckResultImpl.java
View file @
c946c006
...
...
@@ -27,6 +27,7 @@ import org.codehaus.jettison.json.JSONString;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.io.File
;
...
...
@@ -48,10 +49,12 @@ public class CheckResultImpl extends ServiceImpl<CheckResultMapper, CheckResult>
@Override
public
IPage
<
CheckResultDto
>
selectResult
(
int
current
,
int
size
,
String
code
)
{
Page
page
=
new
Page
(
current
,
size
);
return
checkResultMapper
.
selectResult
(
page
,
code
);
// return checkResultMapper.selectResult(page,code);
}
@Override
public
List
<
CheckResult
>
selectCheckResult
(
String
modelId
,
String
amosOrgCode
)
{
LambdaQueryWrapper
<
CheckResult
>
wrapper
=
new
LambdaQueryWrapper
<>();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment