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
3fb7c3a9
Commit
3fb7c3a9
authored
Apr 12, 2023
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改ugpbug
parent
10995161
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
4 deletions
+26
-4
ProblemCodeLibController.java
...t/module/ugp/biz/controller/ProblemCodeLibController.java
+2
-2
ProblemCodeLibServiceImpl.java
...odule/ugp/biz/service/impl/ProblemCodeLibServiceImpl.java
+23
-1
ProjectInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
+1
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProblemCodeLibController.java
View file @
3fb7c3a9
...
@@ -129,11 +129,11 @@ public class ProblemCodeLibController extends BaseController {
...
@@ -129,11 +129,11 @@ public class ProblemCodeLibController extends BaseController {
@GetMapping
(
value
=
"/page"
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"质量问题代码库表分页查询"
,
notes
=
"质量问题代码库表分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"质量问题代码库表分页查询"
,
notes
=
"质量问题代码库表分页查询"
)
public
ResponseModel
<
IPage
<
ProblemCodeLib
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
public
ResponseModel
<
IPage
<
ProblemCodeLib
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
(
value
=
"size"
)
int
size
,
ProblemCodeLib
problemCodeLib
)
{
Page
<
ProblemCodeLib
>
page
=
new
Page
<>();
Page
<
ProblemCodeLib
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
problemCodeLibServiceImpl
.
queryProblemCodeInfoPage
(
page
));
return
ResponseHelper
.
buildResponse
(
problemCodeLibServiceImpl
.
queryProblemCodeInfoPage
(
page
,
problemCodeLib
));
}
}
/**
/**
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProblemCodeLibServiceImpl.java
View file @
3fb7c3a9
...
@@ -16,6 +16,7 @@ import com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel;
...
@@ -16,6 +16,7 @@ import com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
...
@@ -32,10 +33,11 @@ public class ProblemCodeLibServiceImpl extends BaseService<ProblemCodeLibDto, Pr
...
@@ -32,10 +33,11 @@ public class ProblemCodeLibServiceImpl extends BaseService<ProblemCodeLibDto, Pr
@Value
(
"${dict.code.unit:UNIT_MANAGE}"
)
@Value
(
"${dict.code.unit:UNIT_MANAGE}"
)
private
String
unitManage
;
private
String
unitManage
;
public
IPage
<
ProblemCodeLib
>
queryProblemCodeInfoPage
(
Page
<
ProblemCodeLib
>
page
)
{
public
IPage
<
ProblemCodeLib
>
queryProblemCodeInfoPage
(
Page
<
ProblemCodeLib
>
page
,
ProblemCodeLib
problemCodeLib
)
{
LambdaQueryWrapper
<
ProblemCodeLib
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
ProblemCodeLib
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
lambdaQueryWrapper
.
eq
(
ProblemCodeLib:
:
getIsDelete
,
Boolean
.
FALSE
);
lambdaQueryWrapper
.
eq
(
ProblemCodeLib:
:
getIsDelete
,
Boolean
.
FALSE
);
lambdaQueryWrapper
.
orderByDesc
(
ProblemCodeLib:
:
getRecDate
);
lambdaQueryWrapper
.
orderByDesc
(
ProblemCodeLib:
:
getRecDate
);
createWarpper
(
lambdaQueryWrapper
,
problemCodeLib
);
Map
<
String
,
String
>
dictValueMap
=
getDictInfoMapByCode
(
unitManage
);
Map
<
String
,
String
>
dictValueMap
=
getDictInfoMapByCode
(
unitManage
);
IPage
<
ProblemCodeLib
>
problemCodeLibIPage
=
problemCodeLibMapper
.
selectPage
(
page
,
lambdaQueryWrapper
);
IPage
<
ProblemCodeLib
>
problemCodeLibIPage
=
problemCodeLibMapper
.
selectPage
(
page
,
lambdaQueryWrapper
);
problemCodeLibIPage
.
getRecords
().
forEach
(
item
->
{
problemCodeLibIPage
.
getRecords
().
forEach
(
item
->
{
...
@@ -47,6 +49,26 @@ public class ProblemCodeLibServiceImpl extends BaseService<ProblemCodeLibDto, Pr
...
@@ -47,6 +49,26 @@ public class ProblemCodeLibServiceImpl extends BaseService<ProblemCodeLibDto, Pr
return
problemCodeLibIPage
;
return
problemCodeLibIPage
;
}
}
public
void
createWarpper
(
LambdaQueryWrapper
<
ProblemCodeLib
>
lambdaQueryWrapper
,
ProblemCodeLib
problemCodeLib
){
if
(!
ValidationUtil
.
isEmpty
(
problemCodeLib
))
{
if
(!
ValidationUtil
.
isEmpty
(
problemCodeLib
.
getGenStage
()))
{
lambdaQueryWrapper
.
like
(
ProblemCodeLib:
:
getGenStage
,
problemCodeLib
.
getGenStage
());
}
if
(!
ValidationUtil
.
isEmpty
(
problemCodeLib
.
getContent
()))
{
lambdaQueryWrapper
.
like
(
ProblemCodeLib:
:
getContent
,
problemCodeLib
.
getContent
());
}
if
(!
ValidationUtil
.
isEmpty
(
problemCodeLib
.
getCode
()))
{
lambdaQueryWrapper
.
like
(
ProblemCodeLib:
:
getCode
,
problemCodeLib
.
getCode
());
}
if
(!
ValidationUtil
.
isEmpty
(
problemCodeLib
.
getRecUserName
()))
{
lambdaQueryWrapper
.
like
(
ProblemCodeLib:
:
getRecUserName
,
problemCodeLib
.
getRecUserName
());
}
if
(!
ValidationUtil
.
isEmpty
(
problemCodeLib
.
getRecDate
()))
{
lambdaQueryWrapper
.
like
(
ProblemCodeLib:
:
getRecDate
,
problemCodeLib
.
getRecDate
());
}
}
}
/**
/**
* 处理监管指标类型列表展示问题
* 处理监管指标类型列表展示问题
* @param idxThresholds 子表单提交的数据
* @param idxThresholds 子表单提交的数据
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
View file @
3fb7c3a9
...
@@ -328,7 +328,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
...
@@ -328,7 +328,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
taskType
=
TaskTypeEnum
.
流程
.
getKey
();
taskType
=
TaskTypeEnum
.
流程
.
getKey
();
}
}
if
(
ProjectInitiationEnum
.
监检员分配
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
监检员审核
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
监检科室分配
.
getName
().
equals
(
project
.
getStatus
()))
{
if
(
ProjectInitiationEnum
.
监检员分配
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
监检员审核
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
监检科室分配
.
getName
().
equals
(
project
.
getStatus
()))
{
unitIds
.
add
(
superviseRule
.
getInspection
UnitId
());
unitIds
.
add
(
project
.
getTesting
UnitId
());
taskType
=
TaskTypeEnum
.
流程
.
getKey
();
taskType
=
TaskTypeEnum
.
流程
.
getKey
();
}
}
if
(
ProjectInitiationEnum
.
提交资料
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
安装开工资料提交
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
设计开工资料提交
.
getName
().
equals
(
project
.
getStatus
()))
{
if
(
ProjectInitiationEnum
.
提交资料
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
安装开工资料提交
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
设计开工资料提交
.
getName
().
equals
(
project
.
getStatus
()))
{
...
...
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