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
cec6ccf5
Commit
cec6ccf5
authored
Aug 15, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://git.gicdev.com/haoban3.0/haoban-manage3.0.git
into developer
parents
24df0c81
1700d0cd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
23 deletions
+45
-23
TestController.java
...gic/haoban/manage/web/controller/test/TestController.java
+17
-1
HaobanQywxFeeApiServiceImpl.java
...ice/service/out/impl/fee/HaobanQywxFeeApiServiceImpl.java
+27
-21
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+1
-1
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/test/TestController.java
View file @
cec6ccf5
...
@@ -10,6 +10,7 @@ import com.gic.haoban.manage.api.enums.SyncTaskTypeEnum;
...
@@ -10,6 +10,7 @@ import com.gic.haoban.manage.api.enums.SyncTaskTypeEnum;
import
com.gic.haoban.manage.api.service.DealSyncOperationApiService
;
import
com.gic.haoban.manage.api.service.DealSyncOperationApiService
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.TestApiService
;
import
com.gic.haoban.manage.api.service.TestApiService
;
import
com.gic.haoban.manage.api.service.fee.HaobanQywxFeeApiService
;
import
com.gic.haoban.manage.web.controller.WebBaseController
;
import
com.gic.haoban.manage.web.controller.WebBaseController
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.task.manage.api.service.GroupSendOperateApiService
;
import
com.gic.haoban.task.manage.api.service.GroupSendOperateApiService
;
...
@@ -58,6 +59,9 @@ public class TestController extends WebBaseController {
...
@@ -58,6 +59,9 @@ public class TestController extends WebBaseController {
@Autowired
@Autowired
private
GroupSendOperateApiService
groupSendOperateApiService
;
private
GroupSendOperateApiService
groupSendOperateApiService
;
@Autowired
private
HaobanQywxFeeApiService
haobanQywxFeeApiService
;
/**
/**
* 创建定时器
* 创建定时器
*
*
...
@@ -215,7 +219,7 @@ public class TestController extends WebBaseController {
...
@@ -215,7 +219,7 @@ public class TestController extends WebBaseController {
* @return
* @return
*/
*/
@RequestMapping
(
"/flash-friend-wxEnterpriseId"
)
@RequestMapping
(
"/flash-friend-wxEnterpriseId"
)
public
HaobanResponse
send
Mass
(
String
wxEnterpriseId
)
{
public
HaobanResponse
send
StockMemberRelationMessage
(
String
wxEnterpriseId
)
{
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isEmpty
(
wxEnterpriseId
))
{
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isEmpty
(
wxEnterpriseId
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
}
...
@@ -223,4 +227,16 @@ public class TestController extends WebBaseController {
...
@@ -223,4 +227,16 @@ public class TestController extends WebBaseController {
groupSendOperateApiService
.
sendStockMemberRelationMessage
(
wxEnterpriseId
);
groupSendOperateApiService
.
sendStockMemberRelationMessage
(
wxEnterpriseId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
}
/**
* 收费
*
* @param wxEnterpriseId
* @return
*/
@RequestMapping
(
"/addFee"
)
public
HaobanResponse
addFee
(
String
wxEnterpriseId
)
{
haobanQywxFeeApiService
.
addFee
(
wxEnterpriseId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/fee/HaobanQywxFeeApiServiceImpl.java
View file @
cec6ccf5
...
@@ -129,10 +129,6 @@ public class HaobanQywxFeeApiServiceImpl implements HaobanQywxFeeApiService {
...
@@ -129,10 +129,6 @@ public class HaobanQywxFeeApiServiceImpl implements HaobanQywxFeeApiService {
}
}
}
}
if
(
CollectionUtils
.
isEmpty
(
orderIds
))
{
logger
.
error
(
"订单为空"
);
return
;
}
List
<
Map
<
String
,
String
>>
activeCodeList
=
new
ArrayList
<>();
List
<
Map
<
String
,
String
>>
activeCodeList
=
new
ArrayList
<>();
for
(
String
orderId
:
orderIds
)
{
for
(
String
orderId
:
orderIds
)
{
FeeOrderDeatilResponseDTO
order
=
qywxUserApiService
.
getOrder
(
corpid
,
serviceCorpid
,
orderId
);
FeeOrderDeatilResponseDTO
order
=
qywxUserApiService
.
getOrder
(
corpid
,
serviceCorpid
,
orderId
);
...
@@ -196,7 +192,11 @@ public class HaobanQywxFeeApiServiceImpl implements HaobanQywxFeeApiService {
...
@@ -196,7 +192,11 @@ public class HaobanQywxFeeApiServiceImpl implements HaobanQywxFeeApiService {
activeCodeList
.
add
(
map
);
activeCodeList
.
add
(
map
);
}
}
}
}
addOrderAccount
(
wxEnterpriseId
,
serviceCorpid
,
corpid
,
activeCodeList
);
if
(
CollectionUtils
.
isNotEmpty
(
activeCodeList
))
{
//处理订单账号
addOrderAccount
(
wxEnterpriseId
,
serviceCorpid
,
corpid
,
activeCodeList
);
}
List
<
String
>
userIdList
=
new
ArrayList
<>();
List
<
String
>
userIdList
=
new
ArrayList
<>();
//企业账号
//企业账号
...
@@ -227,10 +227,14 @@ public class HaobanQywxFeeApiServiceImpl implements HaobanQywxFeeApiService {
...
@@ -227,10 +227,14 @@ public class HaobanQywxFeeApiServiceImpl implements HaobanQywxFeeApiService {
userIdList
.
add
(
accountListDTO
.
getUserid
());
userIdList
.
add
(
accountListDTO
.
getUserid
());
}
}
}
}
if
(
CollectionUtils
.
isNotEmpty
(
userIdList
))
{
addAccountStaff
(
wxEnterpriseId
,
serviceCorpid
,
corpid
,
userIdList
);
addAccountStaff
(
wxEnterpriseId
,
serviceCorpid
,
corpid
,
userIdList
);
//更新企微状态
}
wxEnterpriseService
.
updateAutoActiveFlagById
(
1
,
wxEnterpriseId
);
Integer
autoActiveFlag
=
wxEnterpriseDTO
.
getAutoActiveFlag
();
if
(
autoActiveFlag
!=
null
&&
autoActiveFlag
!=
1
)
{
//更新企微状态
wxEnterpriseService
.
updateAutoActiveFlagById
(
1
,
wxEnterpriseId
);
}
//更新收费
//更新收费
HaobanQywxFeeDetailDTO
haobanQywxFeeDetailDTO
=
haobanQywxFeeAccountStaffService
.
feeIntercept
(
wxEnterpriseId
);
HaobanQywxFeeDetailDTO
haobanQywxFeeDetailDTO
=
haobanQywxFeeAccountStaffService
.
feeIntercept
(
wxEnterpriseId
);
...
@@ -286,18 +290,20 @@ public class HaobanQywxFeeApiServiceImpl implements HaobanQywxFeeApiService {
...
@@ -286,18 +290,20 @@ public class HaobanQywxFeeApiServiceImpl implements HaobanQywxFeeApiService {
continue
;
continue
;
}
}
String
userid
=
activeInfoCodeResponseDTO
.
getUserid
();
String
userid
=
activeInfoCodeResponseDTO
.
getUserid
();
TabHaobanQywxFeeOrderAccount
tabHaobanQywxFeeOrderAccount
=
new
TabHaobanQywxFeeOrderAccount
();
if
(
StringUtils
.
isNotBlank
(
userid
))
{
tabHaobanQywxFeeOrderAccount
.
setFeeAccountId
(
UniqueIdUtils
.
uniqueLong
());
TabHaobanQywxFeeOrderAccount
tabHaobanQywxFeeOrderAccount
=
new
TabHaobanQywxFeeOrderAccount
();
tabHaobanQywxFeeOrderAccount
.
setOrderId
(
orderId
);
tabHaobanQywxFeeOrderAccount
.
setFeeAccountId
(
UniqueIdUtils
.
uniqueLong
());
tabHaobanQywxFeeOrderAccount
.
setCorpId
(
corpid
);
tabHaobanQywxFeeOrderAccount
.
setOrderId
(
orderId
);
tabHaobanQywxFeeOrderAccount
.
setWxEnterpriseId
(
wxEnterpriseId
);
tabHaobanQywxFeeOrderAccount
.
setCorpId
(
corpid
);
tabHaobanQywxFeeOrderAccount
.
setWxUserId
(
userid
);
tabHaobanQywxFeeOrderAccount
.
setWxEnterpriseId
(
wxEnterpriseId
);
tabHaobanQywxFeeOrderAccount
.
setActiveCode
(
activeInfoCodeResponseDTO
.
getActiveCode
());
tabHaobanQywxFeeOrderAccount
.
setWxUserId
(
userid
);
tabHaobanQywxFeeOrderAccount
.
setAccountType
(
activeInfoCodeResponseDTO
.
getType
());
tabHaobanQywxFeeOrderAccount
.
setActiveCode
(
activeInfoCodeResponseDTO
.
getActiveCode
());
tabHaobanQywxFeeOrderAccount
.
setStatus
(
activeInfoCodeResponseDTO
.
getStatus
());
tabHaobanQywxFeeOrderAccount
.
setAccountType
(
activeInfoCodeResponseDTO
.
getType
());
tabHaobanQywxFeeOrderAccount
.
setExpireTime
(
DateUtil
.
date
(
activeInfoCodeResponseDTO
.
getExpireTime
()
*
1000
));
tabHaobanQywxFeeOrderAccount
.
setStatus
(
activeInfoCodeResponseDTO
.
getStatus
());
tabHaobanQywxFeeOrderAccount
.
setActiveTime
(
DateUtil
.
date
(
activeInfoCodeResponseDTO
.
getActiveTime
()
*
1000
));
tabHaobanQywxFeeOrderAccount
.
setExpireTime
(
DateUtil
.
date
(
activeInfoCodeResponseDTO
.
getExpireTime
()
*
1000
));
haobanQywxFeeOrderAccountService
.
insert
(
tabHaobanQywxFeeOrderAccount
);
tabHaobanQywxFeeOrderAccount
.
setActiveTime
(
DateUtil
.
date
(
activeInfoCodeResponseDTO
.
getActiveTime
()
*
1000
));
haobanQywxFeeOrderAccountService
.
insert
(
tabHaobanQywxFeeOrderAccount
);
}
}
}
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
cec6ccf5
...
@@ -520,7 +520,7 @@
...
@@ -520,7 +520,7 @@
<update
id=
"updateActiveStatusById"
>
<update
id=
"updateActiveStatusById"
>
update tab_haoban_staff
update tab_haoban_staff
set active_status = #{activeStatus}
set active_status = #{activeStatus}
,
update_time = now()
update_time = now()
where staff_id = #{staffId}
where staff_id = #{staffId}
</update>
</update>
...
...
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