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
42d3d1fb
Commit
42d3d1fb
authored
Mar 15, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:审核通过不修改门店状态
parent
a275b2a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
45 deletions
+2
-45
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+2
-45
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
42d3d1fb
...
...
@@ -341,14 +341,13 @@ public class AuditApiServiceImpl implements AuditApiService {
detailDTO
=
EntityUtil
.
changeEntityByJSON
(
StoreDetailDTO
.
class
,
store
);
detailDTO
.
setStoreId
(
storeId
);
detailDTO
.
setEnterpriseId
(
store
.
getEnterpriseId
());
detailDTO
.
setStatus
(
2
);
//
detailDTO.setStatus(2);
detailDTO
.
setOpenTime
(
null
);
detailDTO
.
setCloseTime
(
null
);
getStoreDTO
(
detailDTO
,
changeField
,
oldValue
,
newValue
);
logger
.
info
(
"detailDTO====================>为{}"
,
JSONObject
.
toJSONString
(
detailDTO
));
storeService
.
saveStore
(
detailDTO
);
// storeService.saveOrUpdateStore(store);
}
else
{
//门店图片修改
logger
.
info
(
"===================进333"
);
...
...
@@ -356,7 +355,7 @@ public class AuditApiServiceImpl implements AuditApiService {
}
}
void
getStoreDTO
(
StoreDetailDTO
store
,
String
changeField
,
String
oldValue
,
String
newValue
)
{
private
void
getStoreDTO
(
StoreDetailDTO
store
,
String
changeField
,
String
oldValue
,
String
newValue
)
{
logger
.
info
(
"==========================>changeField={}"
,
changeField
);
if
(
StoreFieldEnum
.
BUSINESS_TIME_STRING
.
getValue
().
equals
(
changeField
))
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"HH:mm"
);
...
...
@@ -411,48 +410,6 @@ public class AuditApiServiceImpl implements AuditApiService {
private
void
sendMessageByStaffId
(
String
staffId
,
String
storeId
,
boolean
isRefuse
,
String
content
,
String
reason
)
{
//
// TabHaobanStaff staff = staffMapper.selectByPrimaryKey(staffId);
// if(staff == null){
// logger.info("staff不存在");
// return;
// }
// if(content.length()>30){
// content.substring(0, 26);
// content = content+"...";
// }
// String wxUserId = staff.getWxUserId();
// String staffName = staff.getStaffName();
// String wxEnterpriseId = staff.getWxEnterpriseId();
// TabHaobanWxEnterprise tabHaobanWxEnterprise = wxEnterpriseMapper.selectByPrimaryKey(wxEnterpriseId);
// String corpId = tabHaobanWxEnterprise.getCorpid();
//
// JSONObject jsonObject = new JSONObject();
// jsonObject.put("storeId", storeId);
// String data = jsonObject.toJSONString();
// String pageUrl = staffDepartmentRelatedApiService.getPageUrl(AppPageType.STORE_DETAIL.getCode(), data);
//
// QywxXcxSendMessageDTO messageDTO = new QywxXcxSendMessageDTO();
// List<ItemDTO> items = new ArrayList();;
// ItemDTO dto1 = new ItemDTO();
// ItemDTO dto2 = new ItemDTO();
// dto1.setKey("接收人");
// dto1.setValue(staffName);
// dto2.setKey("接收事件");
// dto2.setValue(content);
// items.add(dto1);
// items.add(dto2);
// ArrayList<String> list = new ArrayList<>();
// list.add(wxUserId);
// messageDTO.setAppid(config.getAppid());
// messageDTO.setUserIds(list);
// messageDTO.setPage(pageUrl);
// messageDTO.setTitle(title);
// messageDTO.setItems(items);
// boolean b = qywxSuiteApiService.sendMessage(corpId, config.getWxSuiteid(), messageDTO);
StaffClerkRelationDTO
staffClerkRelationDTO
=
staffClerkRelationApiService
.
getOneByStoreIdAndStaffId
(
storeId
,
staffId
);
if
(
staffClerkRelationDTO
==
null
)
{
logger
.
info
(
"staff不存在"
);
...
...
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