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
QianQiXiang
haoban-manage3.0
Commits
ab32a6cb
Commit
ab32a6cb
authored
Jun 02, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
d35154bc
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
3 deletions
+38
-3
AuditApiService.java
...va/com/gic/haoban/manage/api/service/AuditApiService.java
+2
-0
TabHaobanAuditMapper.java
...aoban/manage/service/dao/mapper/TabHaobanAuditMapper.java
+4
-0
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+9
-3
TabHaobanAuditMapper.xml
...ervice/src/main/resources/mapper/TabHaobanAuditMapper.xml
+13
-0
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+8
-0
HaoBanErrCode.java
...java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
+2
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/AuditApiService.java
View file @
ab32a6cb
...
@@ -38,4 +38,6 @@ public interface AuditApiService {
...
@@ -38,4 +38,6 @@ public interface AuditApiService {
void
update
(
AuditDTO
audit
);
void
update
(
AuditDTO
audit
);
List
<
BatchAuditLogDTO
>
listBatchLog
(
String
batchId
);
List
<
BatchAuditLogDTO
>
listBatchLog
(
String
batchId
);
AuditDTO
findByBindRelatedIdAndAuditType
(
String
relatedId
,
int
auditType
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanAuditMapper.java
View file @
ab32a6cb
...
@@ -32,4 +32,7 @@ public interface TabHaobanAuditMapper {
...
@@ -32,4 +32,7 @@ public interface TabHaobanAuditMapper {
com
.
github
.
pagehelper
.
Page
listByStaffId
(
@Param
(
"staffId"
)
String
staffId
,
@Param
(
"auditType"
)
Integer
auditType
,
@Param
(
"auditStatus"
)
Integer
auditStatus
);
com
.
github
.
pagehelper
.
Page
listByStaffId
(
@Param
(
"staffId"
)
String
staffId
,
@Param
(
"auditType"
)
Integer
auditType
,
@Param
(
"auditStatus"
)
Integer
auditStatus
);
com
.
github
.
pagehelper
.
Page
pageStoreListByParams
(
@Param
(
"storeId"
)
String
storeId
,
@Param
(
"auditType"
)
Integer
auditType
,
@Param
(
"auditStatus"
)
Integer
auditStatus
);
com
.
github
.
pagehelper
.
Page
pageStoreListByParams
(
@Param
(
"storeId"
)
String
storeId
,
@Param
(
"auditType"
)
Integer
auditType
,
@Param
(
"auditStatus"
)
Integer
auditStatus
);
TabHaobanAudit
findByBindRelatedIdAndAuditType
(
@Param
(
"relatedId"
)
String
relatedId
,
@Param
(
"auditType"
)
int
auditType
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
ab32a6cb
...
@@ -242,11 +242,11 @@ public class AuditApiServiceImpl implements AuditApiService{
...
@@ -242,11 +242,11 @@ public class AuditApiServiceImpl implements AuditApiService{
String
storeId
=
tab2
.
getCommitStoreId
();
String
storeId
=
tab2
.
getCommitStoreId
();
this
.
sendMessageByStaffId
(
staffId
,
storeId
,
title
,
content
);
this
.
sendMessageByStaffId
(
staffId
,
storeId
,
title
,
content
);
}
else
if
(
auditType
==
AuditType
.
CLERK_BIND
.
getCode
()){
}
else
if
(
auditType
==
AuditType
.
CLERK_BIND
.
getCode
()){
staffDepartmentRelatedApiService
.
sendClerkBind
(
obj
.
getClerkId
(),
obj
.
getClerkCode
(),
1
,
""
);
staffDepartmentRelatedApiService
.
sendClerkBind
(
obj
.
getClerkId
(),
obj
.
getClerkCode
(),
2
,
auditReason
);
}
else
if
(
auditType
==
AuditType
.
CLERK_ADD
.
getCode
())
{
}
else
if
(
auditType
==
AuditType
.
CLERK_ADD
.
getCode
())
{
staffDepartmentRelatedApiService
.
sendClerkAdd
(
obj
.
getClerkId
(),
obj
.
getClerkCode
(),
1
,
""
);
staffDepartmentRelatedApiService
.
sendClerkAdd
(
obj
.
getClerkId
(),
obj
.
getClerkCode
(),
2
,
auditReason
);
}
else
if
(
auditType
==
AuditType
.
CLERK_DEL
.
getCode
())
{
}
else
if
(
auditType
==
AuditType
.
CLERK_DEL
.
getCode
())
{
staffDepartmentRelatedApiService
.
sendClerkDel
(
obj
.
getClerkId
(),
obj
.
getClerkCode
(),
1
,
""
);
staffDepartmentRelatedApiService
.
sendClerkDel
(
obj
.
getClerkId
(),
obj
.
getClerkCode
(),
2
,
auditReason
);
}
}
}
}
@Override
@Override
...
@@ -461,5 +461,11 @@ public class AuditApiServiceImpl implements AuditApiService{
...
@@ -461,5 +461,11 @@ public class AuditApiServiceImpl implements AuditApiService{
List
<
TabHaobanBatchAuditLog
>
list
=
tabHaobanBatchAuditLogMapper
.
listByBatchId
(
batchId
);
List
<
TabHaobanBatchAuditLog
>
list
=
tabHaobanBatchAuditLogMapper
.
listByBatchId
(
batchId
);
return
EntityUtil
.
changeEntityListByJSON
(
BatchAuditLogDTO
.
class
,
list
);
return
EntityUtil
.
changeEntityListByJSON
(
BatchAuditLogDTO
.
class
,
list
);
}
}
@Override
public
AuditDTO
findByBindRelatedIdAndAuditType
(
String
relatedId
,
int
auditType
)
{
TabHaobanAudit
tab
=
auditMapper
.
findByBindRelatedIdAndAuditType
(
relatedId
,
auditType
);
return
EntityUtil
.
changeEntityByJSON
(
AuditDTO
.
class
,
tab
);
}
}
}
haoban-manage3-service/src/main/resources/mapper/TabHaobanAuditMapper.xml
View file @
ab32a6cb
...
@@ -404,4 +404,16 @@
...
@@ -404,4 +404,16 @@
order by create_time desc
order by create_time desc
</select>
</select>
<select
id=
"findByBindRelatedIdAndAuditType"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_audit
where 1=1
and status_flag = 1
and related_Id = #{relatedId}
and audit_type = #{auditType}
and audit_status = 0
</select>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
ab32a6cb
...
@@ -46,6 +46,7 @@ import com.gic.haoban.manage.api.dto.StaffDTO;
...
@@ -46,6 +46,7 @@ import com.gic.haoban.manage.api.dto.StaffDTO;
import
com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO
;
import
com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO
;
import
com.gic.haoban.manage.api.dto.WxEnterpriseDTO
;
import
com.gic.haoban.manage.api.dto.WxEnterpriseDTO
;
import
com.gic.haoban.manage.api.enums.AppPageType
;
import
com.gic.haoban.manage.api.enums.AppPageType
;
import
com.gic.haoban.manage.api.enums.AuditType
;
import
com.gic.haoban.manage.api.service.AuditApiService
;
import
com.gic.haoban.manage.api.service.AuditApiService
;
import
com.gic.haoban.manage.api.service.AuditSettingApiService
;
import
com.gic.haoban.manage.api.service.AuditSettingApiService
;
import
com.gic.haoban.manage.api.service.BindApiService
;
import
com.gic.haoban.manage.api.service.BindApiService
;
...
@@ -537,6 +538,13 @@ public class ClerkController extends WebBaseController{
...
@@ -537,6 +538,13 @@ public class ClerkController extends WebBaseController{
if
(
staff
==
null
){
if
(
staff
==
null
){
return
resultResponse
(
HaoBanErrCode
.
ERR_10006
);
return
resultResponse
(
HaoBanErrCode
.
ERR_10006
);
}
}
AuditDTO
auditDTO
=
auditApiService
.
findByBindRelatedIdAndAuditType
(
clerk
.
getStoreId
(),
AuditType
.
CLERK_BIND
.
getCode
());
if
(
auditDTO
!=
null
){
return
resultResponse
(
HaoBanErrCode
.
ERR_10018
);
}
StoreDTO
store
=
storeService
.
getStore
(
clerk
.
getStoreId
());
StoreDTO
store
=
storeService
.
getStore
(
clerk
.
getStoreId
());
String
clerkCode
=
clerk
.
getClerkCode
();
String
clerkCode
=
clerk
.
getClerkCode
();
String
wxEnterpriseId
=
staff
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
staff
.
getWxEnterpriseId
();
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
View file @
ab32a6cb
...
@@ -205,6 +205,8 @@ public enum HaoBanErrCode {
...
@@ -205,6 +205,8 @@ public enum HaoBanErrCode {
ERR_10017
(
10017
,
"审核记录不存在"
),
ERR_10017
(
10017
,
"审核记录不存在"
),
ERR_10018
(
10018
,
"审核记录已存在"
),
ERR_999
(
999
,
"操作失败"
),
ERR_999
(
999
,
"操作失败"
),
ERR_DEFINE
(-
888
,
"自定义错误"
),
ERR_DEFINE
(-
888
,
"自定义错误"
),
...
...
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