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
e85c1d7d
Commit
e85c1d7d
authored
Feb 20, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/xgh/20241月迭代' into 'developer'
Feature/xgh/20241月迭代 See merge request
!1651
parents
222e3c11
cc7d594d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
9 deletions
+18
-9
AuditApiService.java
...va/com/gic/haoban/manage/api/service/AuditApiService.java
+1
-1
TabHaobanAuditMapper.java
...aoban/manage/service/dao/mapper/TabHaobanAuditMapper.java
+3
-2
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+5
-3
TabHaobanAuditMapper.xml
...ervice/src/main/resources/mapper/TabHaobanAuditMapper.xml
+8
-2
AuditController.java
...com/gic/haoban/manage/web/controller/AuditController.java
+1
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/AuditApiService.java
View file @
e85c1d7d
...
...
@@ -32,7 +32,7 @@ public interface AuditApiService {
Page
<
AuditDTO
>
listByStaffId
(
String
staffId
,
Integer
auditType
,
Integer
auditStatus
,
String
enterpriseId
,
BasePageInfo
pageInfo
);
Page
<
AuditDTO
>
pageStoreListByParams
(
List
<
String
>
storeIds
,
BasePageInfo
pageInfo
,
Integer
auditType
,
Integer
auditStatus
,
String
wxEnterpriseId
,
String
enterpriseId
);
Integer
auditType
,
Integer
auditStatus
,
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerkId
);
AuditDTO
findById
(
String
auditId
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanAuditMapper.java
View file @
e85c1d7d
...
...
@@ -36,7 +36,7 @@ public interface TabHaobanAuditMapper {
@Param
(
"auditType"
)
Integer
auditType
,
@Param
(
"auditStatus"
)
Integer
auditStatus
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
);
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"clerkType"
)
int
clerkType
);
TabHaobanAudit
findByBindRelatedIdAndAuditType
(
@Param
(
"relatedId"
)
String
relatedId
,
@Param
(
"auditType"
)
int
auditType
,
...
...
@@ -51,5 +51,5 @@ public interface TabHaobanAuditMapper {
int
getAuditCount
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"relatedId"
)
String
relatedId
,
@Param
(
"storeIds"
)
List
<
String
>
storeIds
);
@Param
(
"storeIds"
)
List
<
String
>
storeIds
,
@Param
(
"clerkType"
)
int
clerkType
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
e85c1d7d
...
...
@@ -412,9 +412,11 @@ public class AuditApiServiceImpl implements AuditApiService {
@Override
public
Page
<
AuditDTO
>
pageStoreListByParams
(
List
<
String
>
storeIds
,
BasePageInfo
pageInfo
,
Integer
auditType
,
Integer
auditStatus
,
String
wxEnterpriseId
,
String
enterpriseId
)
{
Integer
auditStatus
,
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerkId
)
{
ClerkDTO
clerkDTO
=
this
.
clerkService
.
getclerkById
(
clerkId
)
;
int
clerkType
=
clerkDTO
.
getClerkType
()
;
PageHelper
.
startPage
(
pageInfo
.
getPageNum
(),
pageInfo
.
getPageSize
());
return
PageUtil
.
changePageHelperToCurrentPage
(
auditMapper
.
pageStoreListByParams
(
storeIds
,
auditType
,
auditStatus
,
wxEnterpriseId
,
enterpriseId
),
AuditDTO
.
class
);
return
PageUtil
.
changePageHelperToCurrentPage
(
auditMapper
.
pageStoreListByParams
(
storeIds
,
auditType
,
auditStatus
,
wxEnterpriseId
,
enterpriseId
,
clerkType
),
AuditDTO
.
class
);
}
public
void
insertBatchLog
(
String
batchId
,
int
auditResult
,
TabHaobanAudit
tab
)
{
...
...
@@ -492,7 +494,7 @@ public class AuditApiServiceImpl implements AuditApiService {
clerkId
=
null
;
}
}
return
this
.
auditMapper
.
getAuditCount
(
wxEnterpriseId
,
enterpriseId
,
clerkId
,
storeIdList
);
return
this
.
auditMapper
.
getAuditCount
(
wxEnterpriseId
,
enterpriseId
,
clerkId
,
storeIdList
,
clerkType
);
}
}
haoban-manage3-service/src/main/resources/mapper/TabHaobanAuditMapper.xml
View file @
e85c1d7d
...
...
@@ -210,8 +210,10 @@
from tab_haoban_audit
where
status_flag = 1
<if
test=
"auditType == null || auditType == -1"
>
and audit_type in (2,3,4,5)
<if
test=
"clerkType==1"
>
<if
test=
"auditType == null || auditType == -1"
>
and audit_type in (2,3,4,5)
</if>
</if>
<if
test=
"auditType != null and auditType != -1"
>
and audit_type = #{auditType}
...
...
@@ -280,6 +282,9 @@
<if
test=
"relatedId != null and relatedId != ''"
>
and related_Id = #{relatedId}
</if>
<if
test=
"clerkType == 1"
>
and audit_type in (2,3,4,5)
</if>
</select>
</mapper>
\ No newline at end of file
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/AuditController.java
View file @
e85c1d7d
...
...
@@ -145,7 +145,7 @@ public class AuditController extends WebBaseController {
if
(
storeIds
.
contains
(
"-1"
))
{
storeIds
=
null
;
}
Page
<
AuditDTO
>
page
=
auditApiService
.
pageStoreListByParams
(
storeIds
,
pageInfo
,
auditType
,
auditStatus
,
wxEnterpriseId
,
enterpriseId
);
Page
<
AuditDTO
>
page
=
auditApiService
.
pageStoreListByParams
(
storeIds
,
pageInfo
,
auditType
,
auditStatus
,
wxEnterpriseId
,
enterpriseId
,
clerkId
);
List
<
AuditDTO
>
list
=
page
.
getResult
();
List
<
AuditVO
>
voList
=
new
ArrayList
<
AuditVO
>();
for
(
AuditDTO
auditDTO
:
list
)
{
...
...
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