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
934262dc
Commit
934262dc
authored
Nov 03, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安装告知管理
parent
fc4e1e60
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
InstallNoticeMapper.java
.../amos/boot/module/ugp/api/mapper/InstallNoticeMapper.java
+2
-1
InstallNoticeMapper.xml
...ugp-api/src/main/resources/mapper/InstallNoticeMapper.xml
+6
-0
InstallNoticeServiceImpl.java
...module/ugp/biz/service/impl/InstallNoticeServiceImpl.java
+13
-3
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/mapper/InstallNoticeMapper.java
View file @
934262dc
...
@@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.RequestParam;
...
@@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
/**
/**
* 安装告知表 Mapper 接口
* 安装告知表 Mapper 接口
...
@@ -22,7 +23,7 @@ import java.util.List;
...
@@ -22,7 +23,7 @@ import java.util.List;
public
interface
InstallNoticeMapper
extends
BaseMapper
<
InstallNotice
>
{
public
interface
InstallNoticeMapper
extends
BaseMapper
<
InstallNotice
>
{
//安装告知申请页面分页列表
//安装告知申请页面分页列表
Page
<
InstallNoticePageDto
>
installNoticePage
(
IPage
<
InstallNoticePageDto
>
page
,
@RequestParam
String
name
,
@RequestParam
String
constructionUnit
);
Page
<
InstallNoticePageDto
>
installNoticePage
(
IPage
<
InstallNoticePageDto
>
page
,
@RequestParam
String
name
,
@RequestParam
String
constructionUnit
,
Set
<
String
>
ids
);
//根据project_id查询一条数据
//根据project_id查询一条数据
InstallNoticeDto
selectOneByPid
(
Long
sequenceNbr
);
InstallNoticeDto
selectOneByPid
(
Long
sequenceNbr
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/resources/mapper/InstallNoticeMapper.xml
View file @
934262dc
...
@@ -32,6 +32,12 @@
...
@@ -32,6 +32,12 @@
<if
test=
"constructionUnit != '' and constructionUnit != null"
>
<if
test=
"constructionUnit != '' and constructionUnit != null"
>
and a.construction_unit LIKE concat("%",#{constructionUnit},"%")
and a.construction_unit LIKE concat("%",#{constructionUnit},"%")
</if>
</if>
<if
test=
"ids != null"
>
and tz_ugp_install_notice.project_id in
<foreach
collection=
"ids"
item =
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</where>
</where>
</select>
</select>
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/InstallNoticeServiceImpl.java
View file @
934262dc
...
@@ -3,13 +3,16 @@ package com.yeejoin.amos.boot.module.ugp.biz.service.impl;
...
@@ -3,13 +3,16 @@ package com.yeejoin.amos.boot.module.ugp.biz.service.impl;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticePageDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticePageDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.ProjectDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.ProjectDto
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.InstallNotice
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.InstallNotice
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.InstallNoticeMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.InstallNoticeMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IInstallNoticeService
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IInstallNoticeService
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticeDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticeDto
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
@@ -23,8 +26,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
...
@@ -23,8 +26,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.sql.Wrapper
;
import
java.sql.Wrapper
;
import
java.util.Date
;
import
java.util.*
;
import
java.util.List
;
/**
/**
* 安装告知表服务实现类
* 安装告知表服务实现类
...
@@ -43,6 +45,8 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
...
@@ -43,6 +45,8 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
ProjectInitiationServiceImpl
projectInitiationServiceImpl
;
ProjectInitiationServiceImpl
projectInitiationServiceImpl
;
@Autowired
@Autowired
OrgServiceImpl
orgServiceImpl
;
OrgServiceImpl
orgServiceImpl
;
@Autowired
ProjectResourceServiceImpl
projectResourceServiceImpl
;
/**
/**
* 分页查询
* 分页查询
*/
*/
...
@@ -61,7 +65,13 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
...
@@ -61,7 +65,13 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
* 安装告知申请分页查询
* 安装告知申请分页查询
*/
*/
public
Page
<
InstallNoticePageDto
>
installNoticePage
(
Page
<
InstallNoticePageDto
>
page
,
String
name
,
String
constructionUnit
)
{
public
Page
<
InstallNoticePageDto
>
installNoticePage
(
Page
<
InstallNoticePageDto
>
page
,
String
name
,
String
constructionUnit
)
{
Page
<
InstallNoticePageDto
>
installNoticePage
=
installNoticeMapper
.
installNoticePage
(
page
,
name
,
constructionUnit
);
List
<
Project
>
projectList
=
projectResourceServiceImpl
.
getProjectList
();
Set
<
String
>
ids
=
new
HashSet
<>();
for
(
Project
project
:
projectList
){
String
id
=
String
.
valueOf
(
project
.
getSequenceNbr
());
ids
.
add
(
id
);
}
Page
<
InstallNoticePageDto
>
installNoticePage
=
installNoticeMapper
.
installNoticePage
(
page
,
name
,
constructionUnit
,
ids
);
List
<
InstallNoticePageDto
>
installNoticePageDtos
=
installNoticePage
.
getRecords
();
List
<
InstallNoticePageDto
>
installNoticePageDtos
=
installNoticePage
.
getRecords
();
for
(
InstallNoticePageDto
installNoticePageDto:
installNoticePageDtos
){
for
(
InstallNoticePageDto
installNoticePageDto:
installNoticePageDtos
){
if
(!
ValidationUtil
.
isEmpty
(
installNoticePageDto
.
getApproved
())){
if
(!
ValidationUtil
.
isEmpty
(
installNoticePageDto
.
getApproved
())){
...
...
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