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
724915ed
Commit
724915ed
authored
Jun 20, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微托管
parent
e3c946b8
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
6 deletions
+26
-6
OpenStaffLicenseDTO.java
...va/com/gic/haoban/manage/api/dto/OpenStaffLicenseDTO.java
+5
-5
OpenStaffMapper.java
...gic/haoban/manage/service/dao/mapper/OpenStaffMapper.java
+3
-0
OpenStaffApiServiceImpl.java
...age/service/service/out/impl/OpenStaffApiServiceImpl.java
+4
-0
OpenStaffMapper.xml
...ge3-service/src/main/resources/mapper/OpenStaffMapper.xml
+11
-0
QywxOpenController.java
...haoban/manage/web/controller/open/QywxOpenController.java
+3
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/OpenStaffLicenseDTO.java
View file @
724915ed
...
@@ -5,7 +5,7 @@ import java.io.Serializable;
...
@@ -5,7 +5,7 @@ import java.io.Serializable;
public
class
OpenStaffLicenseDTO
implements
Serializable
{
public
class
OpenStaffLicenseDTO
implements
Serializable
{
private
int
total
;
private
int
total
;
private
int
gic
e
Total
;
private
int
gicTotal
;
private
int
useNum
;
private
int
useNum
;
private
int
validNum
;
private
int
validNum
;
...
@@ -17,12 +17,12 @@ public class OpenStaffLicenseDTO implements Serializable {
...
@@ -17,12 +17,12 @@ public class OpenStaffLicenseDTO implements Serializable {
this
.
total
=
total
;
this
.
total
=
total
;
}
}
public
int
getGic
e
Total
()
{
public
int
getGicTotal
()
{
return
gic
e
Total
;
return
gicTotal
;
}
}
public
void
setGic
eTotal
(
int
gice
Total
)
{
public
void
setGic
Total
(
int
gic
Total
)
{
this
.
gic
eTotal
=
gice
Total
;
this
.
gic
Total
=
gic
Total
;
}
}
public
int
getUseNum
()
{
public
int
getUseNum
()
{
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/OpenStaffMapper.java
View file @
724915ed
...
@@ -53,4 +53,6 @@ public interface OpenStaffMapper {
...
@@ -53,4 +53,6 @@ public interface OpenStaffMapper {
List
<
String
>
listOpenStoreId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
);
List
<
String
>
listOpenStoreId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
);
void
updateStopTime
(
@Param
(
"id"
)
Long
openStaffId
,
@Param
(
"type"
)
int
type
,
@Param
(
"time"
)
int
time
);
void
updateStopTime
(
@Param
(
"id"
)
Long
openStaffId
,
@Param
(
"type"
)
int
type
,
@Param
(
"time"
)
int
time
);
int
getNum
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"status"
)
int
status
)
;
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/OpenStaffApiServiceImpl.java
View file @
724915ed
...
@@ -229,6 +229,10 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
...
@@ -229,6 +229,10 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
@Override
@Override
public
ServiceResponse
<
OpenStaffLicenseDTO
>
getLicenseInfo
(
String
wxEnterpriseId
,
String
enterpriseId
)
{
public
ServiceResponse
<
OpenStaffLicenseDTO
>
getLicenseInfo
(
String
wxEnterpriseId
,
String
enterpriseId
)
{
OpenStaffLicenseDTO
dto
=
new
OpenStaffLicenseDTO
();
OpenStaffLicenseDTO
dto
=
new
OpenStaffLicenseDTO
();
int
useNum
=
this
.
openStaffMapper
.
getNum
(
wxEnterpriseId
,
enterpriseId
,
0
)
;
int
validNum
=
this
.
openStaffMapper
.
getNum
(
wxEnterpriseId
,
enterpriseId
,
1
)
;
dto
.
setUseNum
(
useNum
);
dto
.
setValidNum
(
validNum
);
return
ServiceResponse
.
success
(
dto
);
return
ServiceResponse
.
success
(
dto
);
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/OpenStaffMapper.xml
View file @
724915ed
...
@@ -216,6 +216,7 @@
...
@@ -216,6 +216,7 @@
#{item}
#{item}
</foreach>
</foreach>
</select>
</select>
<select
id=
"listOpenStaffByStore"
resultType=
"com.gic.haoban.manage.api.dto.StaffClerkRelationDTO"
>
<select
id=
"listOpenStaffByStore"
resultType=
"com.gic.haoban.manage.api.dto.StaffClerkRelationDTO"
>
select a.staff_id staffId , b.clerk_id clerkId , b.store_id storeId from tab_haoban_open_staff a left join tab_haoban_staff_clerk_relation b
select a.staff_id staffId , b.clerk_id clerkId , b.store_id storeId from tab_haoban_open_staff a left join tab_haoban_staff_clerk_relation b
on a.staff_id = b.staff_id and b.status_flag = 1
on a.staff_id = b.staff_id and b.status_flag = 1
...
@@ -225,6 +226,7 @@
...
@@ -225,6 +226,7 @@
#{item}
#{item}
</foreach>
</foreach>
</select>
</select>
<select
id=
"listAll"
resultType=
"java.lang.String"
>
<select
id=
"listAll"
resultType=
"java.lang.String"
>
select staff_id from tab_haoban_open_staff where status_flag = 1
select staff_id from tab_haoban_open_staff where status_flag = 1
</select>
</select>
...
@@ -235,4 +237,12 @@
...
@@ -235,4 +237,12 @@
and b.status_flag = 1
and b.status_flag = 1
</select>
</select>
<select
id=
"getNum"
resultType=
"java.lang.Integer"
>
select count(*) from tab_haoban_staff_clerk_relation where wx_enterprise_id = #{wxEnterpriseId} and enterprise_id=#{enterpriseId}
<if
test=
"status==1"
>
and status_flag = 1
</if>
</select>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/open/QywxOpenController.java
View file @
724915ed
...
@@ -254,6 +254,8 @@ public class QywxOpenController {
...
@@ -254,6 +254,8 @@ public class QywxOpenController {
if
(!
resp
.
isSuccess
())
{
if
(!
resp
.
isSuccess
())
{
return
RestResponse
.
failure
(
"9999"
,
resp
.
getMessage
());
return
RestResponse
.
failure
(
"9999"
,
resp
.
getMessage
());
}
}
OpenQwAccountInfoVO
vo
=
this
.
getCheckInfo
(
wxEnterpriseId
,
enterpriseId
)
;
resp
.
getResult
().
setGicTotal
(
vo
.
getGicTotal
());
return
RestResponse
.
successResult
(
resp
.
getResult
());
return
RestResponse
.
successResult
(
resp
.
getResult
());
}
}
...
@@ -309,7 +311,7 @@ public class QywxOpenController {
...
@@ -309,7 +311,7 @@ public class QywxOpenController {
}
}
String
json
=
dto
.
getModuleSetting
();
String
json
=
dto
.
getModuleSetting
();
WechatWorkServiceSetting
bo
=
JSONObject
.
parseObject
(
json
,
WechatWorkServiceSetting
.
class
);
WechatWorkServiceSetting
bo
=
JSONObject
.
parseObject
(
json
,
WechatWorkServiceSetting
.
class
);
vo
.
setGic
e
Total
(
bo
.
getAccountNumber
());
vo
.
setGicTotal
(
bo
.
getAccountNumber
());
}
}
}
}
log
.
info
(
"OpenQwAccountInfoVO={}"
,
JSONObject
.
toJSONString
(
vo
));
log
.
info
(
"OpenQwAccountInfoVO={}"
,
JSONObject
.
toJSONString
(
vo
));
...
...
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