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
b5faea02
Commit
b5faea02
authored
Sep 28, 2022
by
fenghuazhong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl_plan6' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_dl_plan6
parents
c7ee794c
b4a4c845
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-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
+12
-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/resources/mapper/CheckResultMapper.xml
View file @
b5faea02
...
...
@@ -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 @
b5faea02
...
...
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
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.feign.IdxFeignService
;
import
com.yeejoin.amos.boot.module.tdc.api.mapper.CheckModelMapper
;
...
...
@@ -20,10 +21,14 @@ import com.yeejoin.amos.boot.module.tdc.biz.action.model.IdxProjectModel;
import
com.yeejoin.amos.component.rule.RuleTrigger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.*
;
/**
* @author xxz
*/
...
...
@@ -42,12 +47,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
List
<
CheckModel
>
selectByOrgCode
(
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 @
b5faea02
...
...
@@ -35,6 +35,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
;
...
...
@@ -65,10 +66,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
batchNo
)
{
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