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
81720f74
Commit
81720f74
authored
Oct 13, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:审核数量调整
parent
3ca80fe1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
10 deletions
+30
-10
TabHaobanAuditMapper.java
...aoban/manage/service/dao/mapper/TabHaobanAuditMapper.java
+2
-0
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+24
-10
TabHaobanAuditMapper.xml
...ervice/src/main/resources/mapper/TabHaobanAuditMapper.xml
+4
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanAuditMapper.java
View file @
81720f74
...
@@ -50,5 +50,6 @@ public interface TabHaobanAuditMapper {
...
@@ -50,5 +50,6 @@ public interface TabHaobanAuditMapper {
int
getAuditCount
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
int
getAuditCount
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"relatedId"
)
String
relatedId
,
@Param
(
"storeIds"
)
List
<
String
>
storeIds
);
@Param
(
"storeIds"
)
List
<
String
>
storeIds
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
81720f74
...
@@ -77,8 +77,7 @@ public class AuditApiServiceImpl implements AuditApiService {
...
@@ -77,8 +77,7 @@ public class AuditApiServiceImpl implements AuditApiService {
String
enterpriseId
,
Integer
auditStatus
,
Integer
auditFlag
,
BasePageInfo
pageInfo
,
String
clerkId
)
{
String
enterpriseId
,
Integer
auditStatus
,
Integer
auditFlag
,
BasePageInfo
pageInfo
,
String
clerkId
)
{
List
<
String
>
storeIdList
=
this
.
getStoreIdList
(
enterpriseId
,
clerkId
);
List
<
String
>
storeIdList
=
this
.
getStoreIdList
(
enterpriseId
,
clerkId
);
PageHelper
.
startPage
(
pageInfo
.
getPageNum
(),
pageInfo
.
getPageSize
());
PageHelper
.
startPage
(
pageInfo
.
getPageNum
(),
pageInfo
.
getPageSize
());
com
.
github
.
pagehelper
.
Page
<
TabHaobanAudit
>
page
=
new
com
.
github
.
pagehelper
.
Page
<
TabHaobanAudit
>();
com
.
github
.
pagehelper
.
Page
<
TabHaobanAudit
>
page
=
auditMapper
.
page
(
wxEnterpriseId
,
auditType
,
storeIdList
,
search
,
enterpriseId
,
auditStatus
,
auditFlag
);
page
=
auditMapper
.
page
(
wxEnterpriseId
,
auditType
,
storeIdList
,
search
,
enterpriseId
,
auditStatus
,
auditFlag
);
if
(
CollectionUtil
.
isNotEmpty
(
page
.
getResult
()))
{
if
(
CollectionUtil
.
isNotEmpty
(
page
.
getResult
()))
{
List
<
String
>
commitStaffIds
=
page
.
getResult
().
stream
().
filter
(
item
->
StringUtils
.
isBlank
(
item
.
getCommitStaffName
())).
map
(
s
->
s
.
getCommitStaffId
()).
collect
(
Collectors
.
toList
());
List
<
String
>
commitStaffIds
=
page
.
getResult
().
stream
().
filter
(
item
->
StringUtils
.
isBlank
(
item
.
getCommitStaffName
())).
map
(
s
->
s
.
getCommitStaffId
()).
collect
(
Collectors
.
toList
());
logger
.
info
(
JSON
.
toJSONString
(
commitStaffIds
));
logger
.
info
(
JSON
.
toJSONString
(
commitStaffIds
));
...
@@ -396,9 +395,9 @@ public class AuditApiServiceImpl implements AuditApiService {
...
@@ -396,9 +395,9 @@ public class AuditApiServiceImpl implements AuditApiService {
}
}
@Override
@Override
public
Page
<
AuditDTO
>
listByStaffId
(
String
staffId
,
Integer
auditType
,
Integer
auditStatus
,
String
enterpriseId
,
BasePageInfo
pageInfo
)
{
public
Page
<
AuditDTO
>
listByStaffId
(
String
staffId
,
Integer
auditType
,
Integer
auditStatus
,
String
enterpriseId
,
BasePageInfo
pageInfo
)
{
PageHelper
.
startPage
(
pageInfo
.
getPageNum
(),
pageInfo
.
getPageSize
());
PageHelper
.
startPage
(
pageInfo
.
getPageNum
(),
pageInfo
.
getPageSize
());
return
PageUtil
.
changePageHelperToCurrentPage
(
auditMapper
.
listByStaffId
(
staffId
,
auditType
,
auditStatus
,
enterpriseId
),
AuditDTO
.
class
);
return
PageUtil
.
changePageHelperToCurrentPage
(
auditMapper
.
listByStaffId
(
staffId
,
auditType
,
auditStatus
,
enterpriseId
),
AuditDTO
.
class
);
}
}
@Override
@Override
...
@@ -443,23 +442,38 @@ public class AuditApiServiceImpl implements AuditApiService {
...
@@ -443,23 +442,38 @@ public class AuditApiServiceImpl implements AuditApiService {
}
}
@Override
@Override
public
AuditDTO
findByBindRelatedIdAndAuditType
(
String
relatedId
,
int
auditType
,
String
wxEnterpriseId
,
String
enterpriseId
)
{
public
AuditDTO
findByBindRelatedIdAndAuditType
(
String
relatedId
,
int
auditType
,
String
wxEnterpriseId
,
String
enterpriseId
)
{
TabHaobanAudit
tab
=
auditMapper
.
findByBindRelatedIdAndAuditType
(
relatedId
,
auditType
,
wxEnterpriseId
,
enterpriseId
);
TabHaobanAudit
tab
=
auditMapper
.
findByBindRelatedIdAndAuditType
(
relatedId
,
auditType
,
wxEnterpriseId
,
enterpriseId
);
return
EntityUtil
.
changeEntityByJSON
(
AuditDTO
.
class
,
tab
);
return
EntityUtil
.
changeEntityByJSON
(
AuditDTO
.
class
,
tab
);
}
}
@Override
@Override
public
boolean
judgeHavePhoneNumberOrCode
(
String
enterpriseId
,
public
boolean
judgeHavePhoneNumberOrCode
(
String
enterpriseId
,
String
clerkCode
,
String
phoneNumber
,
String
wxEnterpriseId
)
{
String
clerkCode
,
String
phoneNumber
,
String
wxEnterpriseId
)
{
List
<
TabHaobanAudit
>
list
=
auditMapper
.
judgeHavePhoneNumberOrCode
(
enterpriseId
,
clerkCode
,
phoneNumber
,
wxEnterpriseId
);
List
<
TabHaobanAudit
>
list
=
auditMapper
.
judgeHavePhoneNumberOrCode
(
enterpriseId
,
clerkCode
,
phoneNumber
,
wxEnterpriseId
);
return
!
CollectionUtil
.
isEmpty
(
list
);
return
!
CollectionUtil
.
isEmpty
(
list
);
}
}
@Override
@Override
public
int
getAuditCount
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerkId
)
{
public
int
getAuditCount
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerkId
)
{
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerkDTO
==
null
)
{
return
0
;
}
List
<
String
>
storeIdList
=
new
ArrayList
<>();
Integer
clerkType
=
clerkDTO
.
getClerkType
();
String
storeId
=
clerkDTO
.
getStoreId
();
if
(
clerkType
==
2
)
{
// 如果null,说明是所有门店
// 如果null,说明是所有门店
List
<
String
>
storeIdList
=
this
.
getStoreIdList
(
enterpriseId
,
clerkId
);
storeIdList
=
this
.
getStoreIdList
(
enterpriseId
,
clerkId
);
return
this
.
auditMapper
.
getAuditCount
(
wxEnterpriseId
,
enterpriseId
,
storeIdList
);
}
else
{
storeIdList
.
add
(
storeId
);
//店长查询门店
if
(
clerkType
==
1
)
{
clerkId
=
null
;
}
}
return
this
.
auditMapper
.
getAuditCount
(
wxEnterpriseId
,
enterpriseId
,
clerkId
,
storeIdList
);
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanAuditMapper.xml
View file @
81720f74
...
@@ -277,6 +277,9 @@
...
@@ -277,6 +277,9 @@
)
)
</if>
</if>
and audit_status = 0
and audit_status = 0
<if
test=
"relatedId != null and relatedId != ''"
>
and related_Id = #{relatedId}
</if>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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