Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
95312a8a
Commit
95312a8a
authored
Mar 31, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
819ddff2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
9 deletions
+12
-9
AuditApiService.java
...va/com/gic/haoban/manage/api/service/AuditApiService.java
+1
-1
TabHaobanAuditMapper.java
...aoban/manage/service/dao/mapper/TabHaobanAuditMapper.java
+1
-1
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+2
-2
TabHaobanAuditMapper.xml
...ervice/src/main/resources/mapper/TabHaobanAuditMapper.xml
+5
-2
AuditController.java
...com/gic/haoban/manage/web/controller/AuditController.java
+3
-3
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/AuditApiService.java
View file @
95312a8a
...
@@ -12,7 +12,7 @@ import com.gic.haoban.manage.api.dto.AuditDTO;
...
@@ -12,7 +12,7 @@ import com.gic.haoban.manage.api.dto.AuditDTO;
*/
*/
public
interface
AuditApiService
{
public
interface
AuditApiService
{
Page
<
AuditDTO
>
page
(
Integer
auditType
,
String
search
,
String
wxEnterpriseId
,
String
enterpriseId
,
Integer
auditStatus
,
BasePageInfo
pageInfo
);
Page
<
AuditDTO
>
page
(
Integer
auditType
,
String
search
,
String
wxEnterpriseId
,
String
enterpriseId
,
Integer
auditStatus
,
Integer
auditFlag
,
BasePageInfo
pageInfo
);
void
audit
(
String
auditId
);
void
audit
(
String
auditId
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanAuditMapper.java
View file @
95312a8a
...
@@ -20,7 +20,7 @@ public interface TabHaobanAuditMapper {
...
@@ -20,7 +20,7 @@ public interface TabHaobanAuditMapper {
int
updateByPrimaryKey
(
TabHaobanAudit
record
);
int
updateByPrimaryKey
(
TabHaobanAudit
record
);
Page
<
TabHaobanAudit
>
page
(
@Param
(
"auditType"
)
Integer
auditType
,
@Param
(
"storeIds"
)
List
<
String
>
storeIds
,
@Param
(
"staffIds"
)
List
<
String
>
staffIds
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"auditStatus"
)
Integer
auditStatus
);
Page
<
TabHaobanAudit
>
page
(
@Param
(
"auditType"
)
Integer
auditType
,
@Param
(
"storeIds"
)
List
<
String
>
storeIds
,
@Param
(
"staffIds"
)
List
<
String
>
staffIds
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"auditStatus"
)
Integer
auditStatus
,
@Param
(
"auditFlag"
)
Integer
auditFlag
);
List
<
TabHaobanAudit
>
listByStoreId
(
String
storeId
);
List
<
TabHaobanAudit
>
listByStoreId
(
String
storeId
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
95312a8a
...
@@ -55,7 +55,7 @@ public class AuditApiServiceImpl implements AuditApiService{
...
@@ -55,7 +55,7 @@ public class AuditApiServiceImpl implements AuditApiService{
@Override
@Override
public
Page
<
AuditDTO
>
page
(
Integer
auditType
,
String
search
,
String
wxEnterpriseId
,
public
Page
<
AuditDTO
>
page
(
Integer
auditType
,
String
search
,
String
wxEnterpriseId
,
String
enterpriseId
,
Integer
auditStatus
,
BasePageInfo
pageInfo
)
{
String
enterpriseId
,
Integer
auditStatus
,
Integer
auditFlag
,
BasePageInfo
pageInfo
)
{
List
<
String
>
storeIds
=
new
ArrayList
<>();
List
<
String
>
storeIds
=
new
ArrayList
<>();
List
<
String
>
staffIds
=
new
ArrayList
<>();
List
<
String
>
staffIds
=
new
ArrayList
<>();
if
(
StringUtils
.
isNotEmpty
(
search
)){
if
(
StringUtils
.
isNotEmpty
(
search
)){
...
@@ -69,7 +69,7 @@ public class AuditApiServiceImpl implements AuditApiService{
...
@@ -69,7 +69,7 @@ public class AuditApiServiceImpl implements AuditApiService{
}
}
}
}
PageHelper
.
startPage
(
pageInfo
.
getPageNum
(),
pageInfo
.
getPageSize
());
PageHelper
.
startPage
(
pageInfo
.
getPageNum
(),
pageInfo
.
getPageSize
());
com
.
github
.
pagehelper
.
Page
<
TabHaobanAudit
>
page
=
auditMapper
.
page
(
auditType
,
storeIds
,
staffIds
,
wxEnterpriseId
,
enterpriseId
,
auditStatus
);
com
.
github
.
pagehelper
.
Page
<
TabHaobanAudit
>
page
=
auditMapper
.
page
(
auditType
,
storeIds
,
staffIds
,
wxEnterpriseId
,
enterpriseId
,
auditStatus
,
auditFlag
);
return
PageUtil
.
changePageHelperToCurrentPage
(
page
,
AuditDTO
.
class
);
return
PageUtil
.
changePageHelperToCurrentPage
(
page
,
AuditDTO
.
class
);
}
}
@Transactional
@Transactional
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanAuditMapper.xml
View file @
95312a8a
...
@@ -286,12 +286,15 @@
...
@@ -286,12 +286,15 @@
<if
test =
"auditType != null"
>
<if
test =
"auditType != null"
>
and audit_type = #{auditType,jdbcType=INTEGER}
and audit_type = #{auditType,jdbcType=INTEGER}
</if>
</if>
<if
test =
"audit
Status != null and auditStatus
== 0"
>
<if
test =
"audit
Flag != null and auditFlag
== 0"
>
and audit_status = 0
and audit_status = 0
</if>
</if>
<if
test =
"audit
Status != null and auditStatus
!= 0"
>
<if
test =
"audit
Flag != null and auditFlag
!= 0"
>
and audit_status in (1,2)
and audit_status in (1,2)
</if>
</if>
<if
test =
"auditStatus != null"
>
and audit_status = #{auditStatus,jdbcType=INTEGER}
</if>
<include
refid=
"storeSql"
/>
<include
refid=
"storeSql"
/>
<include
refid=
"staffSql"
/>
<include
refid=
"staffSql"
/>
</select>
</select>
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/AuditController.java
View file @
95312a8a
...
@@ -86,14 +86,14 @@ public class AuditController extends WebBaseController{
...
@@ -86,14 +86,14 @@ public class AuditController extends WebBaseController{
}
}
//分页查找
//分页查找
@RequestMapping
(
"find-page"
)
@RequestMapping
(
"find-page"
)
public
HaobanResponse
findPage
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
search
,
BasePageInfo
pageInfo
,
Integer
auditType
,
Integer
auditStatus
)
{
public
HaobanResponse
findPage
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
search
,
BasePageInfo
pageInfo
,
Integer
auditType
,
Integer
auditStatus
,
Integer
auditFlag
)
{
if
(
audit
Status
==
null
){
if
(
audit
Flag
==
null
){
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
}
if
(
StringUtils
.
isAnyBlank
(
wxEnterpriseId
)){
if
(
StringUtils
.
isAnyBlank
(
wxEnterpriseId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
}
Page
<
AuditDTO
>
page
=
auditApiService
.
page
(
auditType
,
search
,
wxEnterpriseId
,
enterpriseId
,
auditStatus
,
pageInfo
);
Page
<
AuditDTO
>
page
=
auditApiService
.
page
(
auditType
,
search
,
wxEnterpriseId
,
enterpriseId
,
auditStatus
,
auditFlag
,
pageInfo
);
List
<
AuditDTO
>
list
=
page
.
getResult
();
List
<
AuditDTO
>
list
=
page
.
getResult
();
List
<
String
>
storeIds
=
list
.
stream
().
map
(
s
->
s
.
getCommitStoreId
()).
collect
(
Collectors
.
toList
());
List
<
String
>
storeIds
=
list
.
stream
().
map
(
s
->
s
.
getCommitStoreId
()).
collect
(
Collectors
.
toList
());
String
[]
array
=
storeIds
.
toArray
(
new
String
[
storeIds
.
size
()]);
String
[]
array
=
storeIds
.
toArray
(
new
String
[
storeIds
.
size
()]);
...
...
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