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
39188a30
Commit
39188a30
authored
Jan 07, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开放平台-导购活码
parent
a989bf27
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
65 additions
and
11 deletions
+65
-11
ClerkQrcodeDTO.java
...java/com/gic/haoban/manage/api/dto/hm/ClerkQrcodeDTO.java
+26
-0
HmQrcodeApiService.java
.../gic/haoban/manage/api/service/hm/HmQrcodeApiService.java
+3
-4
TabHaobanHmQrcodeMapper.java
...manage/service/dao/mapper/hm/TabHaobanHmQrcodeMapper.java
+9
-0
HmQrcodeService.java
...gic/haoban/manage/service/service/hm/HmQrcodeService.java
+3
-0
HmQrcodeServiceImpl.java
...n/manage/service/service/hm/impl/HmQrcodeServiceImpl.java
+6
-0
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+6
-5
TabHaobanHmQrcodeMapper.xml
.../src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
+12
-2
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/hm/ClerkQrcodeDTO.java
0 → 100644
View file @
39188a30
package
com
.
gic
.
haoban
.
manage
.
api
.
dto
.
hm
;
import
java.io.Serializable
;
public
class
ClerkQrcodeDTO
implements
Serializable
{
private
String
clerkId
;
private
String
qwQrcode
;
public
String
getClerkId
()
{
return
clerkId
;
}
public
void
setClerkId
(
String
clerkId
)
{
this
.
clerkId
=
clerkId
;
}
public
String
getQwQrcode
()
{
return
qwQrcode
;
}
public
void
setQwQrcode
(
String
qwQrcode
)
{
this
.
qwQrcode
=
qwQrcode
;
}
}
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/hm/HmQrcodeApiService.java
View file @
39188a30
...
@@ -4,10 +4,7 @@ import java.util.List;
...
@@ -4,10 +4,7 @@ import java.util.List;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmBatchCountDTO
;
import
com.gic.haoban.manage.api.dto.hm.*
;
import
com.gic.haoban.manage.api.dto.hm.HmBatchModifyResultDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmQrcodeDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmQrcodeStoreDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmBatchModifyQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmBatchModifyQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO
;
...
@@ -197,4 +194,6 @@ public interface HmQrcodeApiService {
...
@@ -197,4 +194,6 @@ public interface HmQrcodeApiService {
ServiceResponse
<
HmBatchCountDTO
>
getModifyResult
(
String
wxEnterpriseId
,
String
taskId
)
;
ServiceResponse
<
HmBatchCountDTO
>
getModifyResult
(
String
wxEnterpriseId
,
String
taskId
)
;
List
<
ClerkQrcodeDTO
>
listClerkQrcode
(
String
enterpriseId
,
List
<
String
>
clerkIdList
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/hm/TabHaobanHmQrcodeMapper.java
View file @
39188a30
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
.
hm
;
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
.
hm
;
import
com.gic.haoban.manage.api.dto.hm.ClerkQrcodeDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO
;
import
com.gic.haoban.manage.service.entity.hm.TabHaobanHmQrcode
;
import
com.gic.haoban.manage.service.entity.hm.TabHaobanHmQrcode
;
import
com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeClerkBO
;
import
com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeClerkBO
;
...
@@ -206,6 +207,14 @@ public interface TabHaobanHmQrcodeMapper {
...
@@ -206,6 +207,14 @@ public interface TabHaobanHmQrcodeMapper {
* 返回已有单人活码的clerkId
* 返回已有单人活码的clerkId
*/
*/
List
<
String
>
listHasQrcodeClerk
(
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"clerkIdList"
)
List
<
String
>
clerkIdList
);
List
<
String
>
listHasQrcodeClerk
(
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"clerkIdList"
)
List
<
String
>
clerkIdList
);
/**
* 导购活码
* @param enterpriseId
* @param clerkIdList
* @return
*/
List
<
ClerkQrcodeDTO
>
listClerkQrcode
(
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"clerkIdList"
)
List
<
String
>
clerkIdList
)
;
/**
/**
* 获取导购单人活码
* 获取导购单人活码
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/HmQrcodeService.java
View file @
39188a30
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
hm
;
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
hm
;
import
com.gic.haoban.manage.api.dto.hm.ClerkQrcodeDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO
;
import
com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeBO
;
import
com.gic.haoban.manage.service.pojo.bo.hm.HmQrcodeBO
;
...
@@ -173,6 +174,8 @@ public interface HmQrcodeService {
...
@@ -173,6 +174,8 @@ public interface HmQrcodeService {
List
<
String
>
listHasQrcodeClerk
(
String
enterpriseId
,
List
<
String
>
clerkIdList
);
List
<
String
>
listHasQrcodeClerk
(
String
enterpriseId
,
List
<
String
>
clerkIdList
);
List
<
ClerkQrcodeDTO
>
listClerkQrcode
(
String
enterpriseId
,
List
<
String
>
clerkIdList
);
/**
/**
* 更新导购名称
* 更新导购名称
*
*
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmQrcodeServiceImpl.java
View file @
39188a30
...
@@ -3,6 +3,7 @@ package com.gic.haoban.manage.service.service.hm.impl;
...
@@ -3,6 +3,7 @@ package com.gic.haoban.manage.service.service.hm.impl;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
com.gic.haoban.manage.api.dto.hm.ClerkQrcodeDTO
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.LogManager
;
...
@@ -191,6 +192,11 @@ public class HmQrcodeServiceImpl implements HmQrcodeService {
...
@@ -191,6 +192,11 @@ public class HmQrcodeServiceImpl implements HmQrcodeService {
}
}
@Override
@Override
public
List
<
ClerkQrcodeDTO
>
listClerkQrcode
(
String
enterpriseId
,
List
<
String
>
clerkIdList
)
{
return
this
.
tabHaobanHmQrcodeMapper
.
listClerkQrcode
(
enterpriseId
,
clerkIdList
);
}
@Override
public
void
updateClerkNameByClerkId
(
String
enterpriseId
,
String
clerkId
,
String
clerkName
,
String
clerkCode
)
{
public
void
updateClerkNameByClerkId
(
String
enterpriseId
,
String
clerkId
,
String
clerkName
,
String
clerkCode
)
{
tabHaobanHmQrcodeMapper
.
updateClerkNameByClerkId
(
enterpriseId
,
clerkId
,
clerkName
,
clerkCode
);
tabHaobanHmQrcodeMapper
.
updateClerkNameByClerkId
(
enterpriseId
,
clerkId
,
clerkName
,
clerkCode
);
tabHaobanHmClerkRelationMapper
.
updateClerkNameByClerkId
(
enterpriseId
,
clerkId
,
clerkName
,
clerkCode
);
tabHaobanHmClerkRelationMapper
.
updateClerkNameByClerkId
(
enterpriseId
,
clerkId
,
clerkName
,
clerkCode
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
39188a30
...
@@ -8,6 +8,7 @@ import java.util.Map;
...
@@ -8,6 +8,7 @@ import java.util.Map;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
com.gic.haoban.manage.api.dto.hm.*
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
@@ -33,11 +34,6 @@ import com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO;
...
@@ -33,11 +34,6 @@ import com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.api.dto.WxEnterpriseDTO
;
import
com.gic.haoban.manage.api.dto.WxEnterpriseDTO
;
import
com.gic.haoban.manage.api.dto.WxEnterpriseQwDTO
;
import
com.gic.haoban.manage.api.dto.WxEnterpriseQwDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmBatchCountDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmBatchModifyResultDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmClerkDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmQrcodeDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmQrcodeStoreDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmBatchModifyQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmBatchModifyQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmClerkRelationQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmClerkRelationQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO
;
...
@@ -1038,4 +1034,9 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
...
@@ -1038,4 +1034,9 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
dto
.
setFailList
(
failList
);
dto
.
setFailList
(
failList
);
return
ServiceResponse
.
success
(
dto
);
return
ServiceResponse
.
success
(
dto
);
}
}
@Override
public
List
<
ClerkQrcodeDTO
>
listClerkQrcode
(
String
enterpriseId
,
List
<
String
>
clerkIdList
)
{
return
this
.
hmQrcodeService
.
listClerkQrcode
(
enterpriseId
,
clerkIdList
);
}
}
}
haoban-manage3-service/src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
View file @
39188a30
...
@@ -430,8 +430,18 @@
...
@@ -430,8 +430,18 @@
</foreach>
</foreach>
and hm_type = 1 and status_flag in (1,3)
and hm_type = 1 and status_flag in (1,3)
</select>
</select>
<select
id=
"getClerkQrcode"
resultType=
"java.lang.String"
>
<select
id=
"listClerkQrcode"
resultType=
"com.gic.haoban.manage.api.dto.hm.ClerkQrcodeDTO"
>
select clerk_id clerkId , wx_qrcode qwQrcode from tab_haoban_hm_qrcode where enterprise_id=#{enterpriseId}
and clerk_id in
<foreach
collection=
"clerkIdList"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
and hm_type = 1 and status_flag in (1,3)
</select>
<select
id=
"getClerkQrcode"
resultType=
"java.lang.String"
>
select wx_qrcode from tab_haoban_hm_qrcode where enterprise_id=#{enterpriseId}
select wx_qrcode from tab_haoban_hm_qrcode where enterprise_id=#{enterpriseId}
and clerk_id = #{clerkId}
and clerk_id = #{clerkId}
and hm_type = 1 and status_flag = 1 limit 1
and hm_type = 1 and status_flag = 1 limit 1
...
...
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