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
1b5bbdeb
Commit
1b5bbdeb
authored
Jul 15, 2021
by
xuwenqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:新增查询所有与好办相关导购
parent
d71be61e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
126 additions
and
71 deletions
+126
-71
StaffClerkInfoDTO.java
...java/com/gic/haoban/manage/api/dto/StaffClerkInfoDTO.java
+2
-3
StaffClerkRelationDTO.java
.../com/gic/haoban/manage/api/dto/StaffClerkRelationDTO.java
+19
-2
StaffClerkRelationApiService.java
...oban/manage/api/service/StaffClerkRelationApiService.java
+21
-10
TabHaobanStaffClerkRelationMapper.java
...service/dao/mapper/TabHaobanStaffClerkRelationMapper.java
+20
-7
StaffClerkRelationService.java
...ban/manage/service/service/StaffClerkRelationService.java
+24
-15
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+14
-22
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+0
-0
TabHaobanStaffClerkRelationMapper.xml
...in/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
+19
-8
StoreController.java
...com/gic/haoban/manage/web/controller/StoreController.java
+7
-4
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/StaffClerkInfoDTO.java
View file @
1b5bbdeb
...
@@ -3,8 +3,9 @@ package com.gic.haoban.manage.api.dto;
...
@@ -3,8 +3,9 @@ package com.gic.haoban.manage.api.dto;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
public
class
StaffClerkInfoDTO
implements
Serializable
{
public
class
StaffClerkInfoDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
staffClerkRelationId
;
private
String
staffClerkRelationId
;
...
@@ -48,8 +49,6 @@ public class StaffClerkInfoDTO implements Serializable{
...
@@ -48,8 +49,6 @@ public class StaffClerkInfoDTO implements Serializable{
this
.
mainStoreFlag
=
mainStoreFlag
;
this
.
mainStoreFlag
=
mainStoreFlag
;
}
}
private
static
final
long
serialVersionUID
=
1L
;
public
String
getEnterpriseName
()
{
public
String
getEnterpriseName
()
{
return
enterpriseName
;
return
enterpriseName
;
}
}
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/StaffClerkRelationDTO.java
View file @
1b5bbdeb
...
@@ -3,8 +3,9 @@ package com.gic.haoban.manage.api.dto;
...
@@ -3,8 +3,9 @@ package com.gic.haoban.manage.api.dto;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
public
class
StaffClerkRelationDTO
implements
Serializable
{
public
class
StaffClerkRelationDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
staffClerkRelationId
;
private
String
staffClerkRelationId
;
...
@@ -28,7 +29,8 @@ public class StaffClerkRelationDTO implements Serializable{
...
@@ -28,7 +29,8 @@ public class StaffClerkRelationDTO implements Serializable{
private
Date
updateTime
;
private
Date
updateTime
;
private
static
final
long
serialVersionUID
=
1L
;
private
String
storeName
;
private
String
staffName
;
public
String
getStaffClerkRelationId
()
{
public
String
getStaffClerkRelationId
()
{
return
staffClerkRelationId
;
return
staffClerkRelationId
;
...
@@ -118,4 +120,19 @@ public class StaffClerkRelationDTO implements Serializable{
...
@@ -118,4 +120,19 @@ public class StaffClerkRelationDTO implements Serializable{
this
.
updateTime
=
updateTime
;
this
.
updateTime
=
updateTime
;
}
}
public
String
getStoreName
()
{
return
storeName
;
}
public
void
setStoreName
(
String
storeName
)
{
this
.
storeName
=
storeName
;
}
public
String
getStaffName
()
{
return
staffName
;
}
public
void
setStaffName
(
String
staffName
)
{
this
.
staffName
=
staffName
;
}
}
}
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffClerkRelationApiService.java
View file @
1b5bbdeb
package
com
.
gic
.
haoban
.
manage
.
api
.
service
;
package
com
.
gic
.
haoban
.
manage
.
api
.
service
;
import
java.util.List
;
import
java.util.Set
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
...
@@ -10,12 +7,16 @@ import com.gic.haoban.manage.api.dto.StaffClerkBindLogDetailDTO;
...
@@ -10,12 +7,16 @@ import com.gic.haoban.manage.api.dto.StaffClerkBindLogDetailDTO;
import
com.gic.haoban.manage.api.dto.StaffClerkInfoDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkInfoDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
java.util.List
;
import
java.util.Set
;
public
interface
StaffClerkRelationApiService
{
public
interface
StaffClerkRelationApiService
{
/**
/**
* 绑定日志
* 绑定日志
*
* @param params
* @param params
*/
*/
public
void
bindLogMq
(
String
params
);
void
bindLogMq
(
String
params
);
List
<
StaffClerkRelationDTO
>
listBindCode
(
String
enterpriseId
,
Set
<
String
>
clerkCodeList
);
List
<
StaffClerkRelationDTO
>
listBindCode
(
String
enterpriseId
,
Set
<
String
>
clerkCodeList
);
...
@@ -30,9 +31,10 @@ public interface StaffClerkRelationApiService {
...
@@ -30,9 +31,10 @@ public interface StaffClerkRelationApiService {
/**
/**
* 绑定
* 绑定
*
* @return
* @return
*/
*/
public
ServiceResponse
bindStaffClerk
(
StaffClerkRelationDTO
staffClerkRelationDTO
,
String
optStaffId
,
int
chanelCode
);
ServiceResponse
bindStaffClerk
(
StaffClerkRelationDTO
staffClerkRelationDTO
,
String
optStaffId
,
int
chanelCode
);
StaffClerkRelationDTO
getByCodeAndEnterpriseId
(
String
clerkCode
,
String
enterpriseId
);
StaffClerkRelationDTO
getByCodeAndEnterpriseId
(
String
clerkCode
,
String
enterpriseId
);
...
@@ -96,40 +98,49 @@ public interface StaffClerkRelationApiService {
...
@@ -96,40 +98,49 @@ public interface StaffClerkRelationApiService {
/**
/**
* 搜索查询列表
* 搜索查询列表
*
* @param wxEnterpriseId
* @param wxEnterpriseId
* @param search
* @param search
* @param enterpriseId
* @param enterpriseId
* @param optType
* @param optType
* @return
* @return
*/
*/
public
Page
<
StaffClerkBindLogDetailDTO
>
pageStaffClerkBindLog
(
String
wxEnterpriseId
,
String
search
,
String
enterpriseId
,
int
optType
,
BasePageInfo
pageInfo
);
Page
<
StaffClerkBindLogDetailDTO
>
pageStaffClerkBindLog
(
String
wxEnterpriseId
,
String
search
,
String
enterpriseId
,
int
optType
,
BasePageInfo
pageInfo
);
/**
/**
* 追加到绑定日志
* 追加到绑定日志
*
* @param staffId
* @param staffId
* @param optStaffId
* @param optStaffId
* @param optType
* @param optType
* @param channelCode
* @param channelCode
* @param relationId
* @param relationId
*/
*/
public
void
pushToBindLog
(
String
staffId
,
String
optStaffId
,
int
optType
,
int
channelCode
,
String
relationId
);
void
pushToBindLog
(
String
staffId
,
String
optStaffId
,
int
optType
,
int
channelCode
,
String
relationId
);
/**
/**
* 获取config
* 获取config
*
* @param clerkId
* @param clerkId
* @param memberId
* @param memberId
* @return
* @return
*/
*/
ServiceResponse
<
String
>
getClerkMemberChatConfig
(
String
clerkId
);
ServiceResponse
<
String
>
getClerkMemberChatConfig
(
String
clerkId
);
/**
/**
*
* @Description 方法描述:
* @return 返回值类型: <pre>
* @return 返回值类型: <pre>
* @author 作者: WQ <pre>
* @author 作者: WQ <pre>
* @date 时间: 2020年12月24日 上午11:21:38 <pre>
* @date 时间: 2020年12月24日 上午11:21:38 <pre>
* @param wxEnterpriseId: <pre>
* @param wxEnterpriseId: <pre>
* @param pageInfo: <pre>
* @param pageInfo: <pre>
* @Description 方法描述:
*/
Page
<
StaffClerkRelationDTO
>
pageByWxEnterpriseId
(
String
wxEnterpriseId
,
BasePageInfo
pageInfo
);
/**
* 查询状态正常导购
* @return
*/
*/
public
Page
<
StaffClerkRelationDTO
>
pageByWxEnterpriseId
(
String
wxEnterpriseId
,
BasePageInfo
pageInfo
);
List
<
StaffClerkRelationDTO
>
listAll
(
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanStaffClerkRelationMapper.java
View file @
1b5bbdeb
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
;
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
;
import
java.util.List
;
import
java.util.Set
;
import
org.apache.ibatis.annotations.Param
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffClerkRelation
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffClerkRelation
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.Set
;
public
interface
TabHaobanStaffClerkRelationMapper
{
public
interface
TabHaobanStaffClerkRelationMapper
{
int
deleteByPrimaryKey
(
String
staffClerkRelationId
);
int
deleteByPrimaryKey
(
String
staffClerkRelationId
);
...
@@ -25,14 +24,16 @@ public interface TabHaobanStaffClerkRelationMapper {
...
@@ -25,14 +24,16 @@ public interface TabHaobanStaffClerkRelationMapper {
List
<
TabHaobanStaffClerkRelation
>
listBindCodeByStaffId
(
@Param
(
"enterpriseIdList"
)
List
<
String
>
enterpriseIdList
,
@Param
(
"staffId"
)
String
staffId
);
List
<
TabHaobanStaffClerkRelation
>
listBindCodeByStaffId
(
@Param
(
"enterpriseIdList"
)
List
<
String
>
enterpriseIdList
,
@Param
(
"staffId"
)
String
staffId
);
TabHaobanStaffClerkRelation
getOneByClerkId
(
@Param
(
"clerkId"
)
String
clerkId
);
TabHaobanStaffClerkRelation
getOneByClerkId
(
@Param
(
"clerkId"
)
String
clerkId
);
/**
/**
* 改变状态 格局clerkId
* 改变状态 格局clerkId
*
* @param clerkId
* @param clerkId
* @param status
* @param status
* @return
* @return
*/
*/
public
int
changeStatusByClerkId
(
@Param
(
"clerkId"
)
String
clerkId
,
@Param
(
"status"
)
Integer
status
);
int
changeStatusByClerkId
(
@Param
(
"clerkId"
)
String
clerkId
,
@Param
(
"status"
)
Integer
status
);
/**
/**
* 更新信息
* 更新信息
...
@@ -117,7 +118,18 @@ public interface TabHaobanStaffClerkRelationMapper {
...
@@ -117,7 +118,18 @@ public interface TabHaobanStaffClerkRelationMapper {
/**
/**
* 已使用的门店id列表
* 已使用的门店id列表
*
* @param enterpriseId
* @param enterpriseId
*/
*/
List
<
TabHaobanStaffClerkRelation
>
listBindStoreIdByEnterpriseId
(
String
enterpriseId
);
List
<
TabHaobanStaffClerkRelation
>
listBindStoreIdByEnterpriseId
(
String
enterpriseId
);
/**
* 列出所有
*
* @return {@link List<TabHaobanStaffClerkRelation> }
* @author xuwenqian
* @date 2021-07-15 16:24:27
*/
List
<
StaffClerkRelationDTO
>
listAll
();
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/StaffClerkRelationService.java
View file @
1b5bbdeb
package
com
.
gic
.
haoban
.
manage
.
service
.
service
;
package
com
.
gic
.
haoban
.
manage
.
service
.
service
;
import
java.util.List
;
import
java.util.Set
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.service.entity.MemberClerkChatConfig
;
import
com.gic.haoban.manage.service.entity.MemberClerkChatConfig
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffClerkRelation
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffClerkRelation
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.Set
;
public
interface
StaffClerkRelationService
{
public
interface
StaffClerkRelationService
{
...
@@ -20,10 +17,11 @@ public interface StaffClerkRelationService {
...
@@ -20,10 +17,11 @@ public interface StaffClerkRelationService {
/**
/**
* 删除绑定
* 删除绑定
*
* @param clerkId
* @param clerkId
* @return
* @return
*/
*/
public
boolean
delBind
(
String
clerkId
,
String
optStaffId
,
int
chanelCode
);
boolean
delBind
(
String
clerkId
,
String
optStaffId
,
int
chanelCode
);
/**
/**
* 删除绑定
* 删除绑定
...
@@ -32,7 +30,7 @@ public interface StaffClerkRelationService {
...
@@ -32,7 +30,7 @@ public interface StaffClerkRelationService {
* @param storeIds
* @param storeIds
* @return
* @return
*/
*/
public
boolean
delBindByStoreIds
(
String
wxEnterpriseId
,
Set
<
String
>
storeIds
,
String
optStaffId
,
int
chanelCode
);
boolean
delBindByStoreIds
(
String
wxEnterpriseId
,
Set
<
String
>
storeIds
,
String
optStaffId
,
int
chanelCode
);
/**
/**
* 删除绑定
* 删除绑定
...
@@ -42,35 +40,37 @@ public interface StaffClerkRelationService {
...
@@ -42,35 +40,37 @@ public interface StaffClerkRelationService {
* @param storeIds 解除除了这些门店之外的绑定的门店
* @param storeIds 解除除了这些门店之外的绑定的门店
* @return
* @return
*/
*/
public
boolean
delBindNotInStoreIds
(
String
wxEnterpriseId
,
String
enterpriseId
,
Set
<
String
>
storeIds
,
String
optStaffId
,
int
chanelCode
);
boolean
delBindNotInStoreIds
(
String
wxEnterpriseId
,
String
enterpriseId
,
Set
<
String
>
storeIds
,
String
optStaffId
,
int
chanelCode
);
/**
/**
* 绑定
* 绑定
*
* @param dto
* @param dto
* @return
* @return
*/
*/
public
String
bind
(
StaffClerkRelationDTO
dto
,
String
optStaffId
,
int
chanelCode
);
String
bind
(
StaffClerkRelationDTO
dto
,
String
optStaffId
,
int
chanelCode
);
/**
/**
* 根据clerkId 更新数据
* 根据clerkId 更新数据
* @param dto
* @param dto
* @return
* @return
*/
*/
public
boolean
updateByClerkId
(
StaffClerkRelationDTO
dto
);
boolean
updateByClerkId
(
StaffClerkRelationDTO
dto
);
/**
/**
* 查询绑定根据clerkId
* 查询绑定根据clerkId
*
* @param clerkId
* @param clerkId
* @param wxEnterpriseId
* @param wxEnterpriseId
* @return
* @return
*/
*/
public
StaffClerkRelationDTO
getBindByClerkId
(
String
clerkId
,
String
wxEnterpriseId
);
StaffClerkRelationDTO
getBindByClerkId
(
String
clerkId
,
String
wxEnterpriseId
);
StaffClerkRelationDTO
getByCodeAndEnterpriseId
(
String
clerkCode
,
String
enterpriseId
);
StaffClerkRelationDTO
getByCodeAndEnterpriseId
(
String
clerkCode
,
String
enterpriseId
);
String
insert
(
StaffClerkRelationDTO
staffClerkRelation
);
String
insert
(
StaffClerkRelationDTO
staffClerkRelation
);
public
int
cleanStaffClerk
(
String
wxEnterpriseId
,
List
<
String
>
staffIds
);
int
cleanStaffClerk
(
String
wxEnterpriseId
,
List
<
String
>
staffIds
);
StaffClerkRelationDTO
getOneBindCodeNoStatus
(
String
enterpriseId
,
String
clerkCode
);
StaffClerkRelationDTO
getOneBindCodeNoStatus
(
String
enterpriseId
,
String
clerkCode
);
...
@@ -86,15 +86,15 @@ public interface StaffClerkRelationService {
...
@@ -86,15 +86,15 @@ public interface StaffClerkRelationService {
* 保存
* 保存
* @param memberClerkChatConfig
* @param memberClerkChatConfig
*/
*/
public
void
saveChatConfig
(
MemberClerkChatConfig
memberClerkChatConfig
);
void
saveChatConfig
(
MemberClerkChatConfig
memberClerkChatConfig
);
/**
/**
*
* @param staffId
* @param staffId
* @param memberId
* @param memberId
* @return
* @return
*/
*/
public
MemberClerkChatConfig
getChatConfig
(
String
staffId
,
String
memberId
);
MemberClerkChatConfig
getChatConfig
(
String
staffId
,
String
memberId
);
/**
/**
* 根据企业查询
* 根据企业查询
* @param wxEnterpriseId
* @param wxEnterpriseId
...
@@ -121,5 +121,14 @@ public interface StaffClerkRelationService {
...
@@ -121,5 +121,14 @@ public interface StaffClerkRelationService {
*/
*/
List
<
StaffClerkRelationDTO
>
listBindStoreIdByEnterpriseId
(
String
enterpriseId
);
List
<
StaffClerkRelationDTO
>
listBindStoreIdByEnterpriseId
(
String
enterpriseId
);
/**
* 查询所有正常导购
*
* @return {@link List<StaffClerkRelationDTO> }
* @author xuwenqian
* @date 2021-07-15 16:26:17
*/
List
<
StaffClerkRelationDTO
>
listAll
();
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
1b5bbdeb
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
impl
;
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
impl
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.ToolUtil
;
import
com.gic.commons.util.ToolUtil
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.common.utils.PageUtil
;
import
com.gic.haoban.common.utils.StringUtil
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.api.enums.BindTypeEnum
;
import
com.gic.haoban.manage.api.enums.BindTypeEnum
;
import
com.gic.haoban.manage.api.enums.ChannelCodeEnum
;
import
com.gic.haoban.manage.api.enums.ChannelCodeEnum
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanMemberClerkChatConfigMapper
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanMemberClerkChatConfigMapper
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanStaffClerkRelationMapper
;
import
com.gic.haoban.manage.service.entity.MemberClerkChatConfig
;
import
com.gic.haoban.manage.service.entity.MemberClerkChatConfig
;
import
com.gic.haoban.manage.service.entity.TabHaobanClerkMainStoreRelated
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffClerkBindLog
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffClerkRelation
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffClerkRelation
;
import
com.gic.haoban.manage.service.service.ClerkMainStoreRelatedService
;
import
com.gic.haoban.manage.service.service.*
;
import
com.gic.haoban.manage.service.service.ExternalClerkRelatedService
;
import
com.gic.haoban.manage.service.service.StaffClerkBindLogService
;
import
com.gic.haoban.manage.service.service.StaffService
;
import
com.gic.wechat.api.dto.qywx.QywxExternalcontactDTO
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
javafx.scene.control.Tab
;
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
;
...
@@ -31,14 +24,8 @@ import org.slf4j.LoggerFactory;
...
@@ -31,14 +24,8 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.gic.api.base.commons.Page
;
import
java.util.*
;
import
com.gic.commons.util.EntityUtil
;
import
java.util.stream.Collectors
;
import
com.gic.haoban.common.utils.PageUtil
;
import
com.gic.haoban.common.utils.StringUtil
;
import
com.gic.haoban.manage.api.dto.StaffClerkBindLogDetailDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanStaffClerkRelationMapper
;
import
com.gic.haoban.manage.service.service.StaffClerkRelationService
;
@Service
@Service
public
class
StaffClerkRelationServiceImpl
implements
StaffClerkRelationService
{
public
class
StaffClerkRelationServiceImpl
implements
StaffClerkRelationService
{
...
@@ -293,4 +280,9 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -293,4 +280,9 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
}
}
return
EntityUtil
.
changeEntityListNew
(
StaffClerkRelationDTO
.
class
,
clerkRelations
);
return
EntityUtil
.
changeEntityListNew
(
StaffClerkRelationDTO
.
class
,
clerkRelations
);
}
}
@Override
public
List
<
StaffClerkRelationDTO
>
listAll
()
{
return
mapper
.
listAll
();
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
1b5bbdeb
This diff is collapsed.
Click to expand it.
haoban-manage3-service/src/main/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
View file @
1b5bbdeb
...
@@ -233,12 +233,11 @@
...
@@ -233,12 +233,11 @@
<update
id=
"delByStoreIdAndCode"
>
<update
id=
"delByStoreIdAndCode"
>
update tab_haoban_staff_clerk_relation
update tab_haoban_staff_clerk_relation
set
set status_flag = 0,
status_flag = 0,
update_time = now()
update_time = now()
where clerk_code = #{clerkCode,jdbcType=VARCHAR}
where clerk_code = #{clerkCode,jdbcType=VARCHAR}
and store_id = #{storeId,jdbcType=VARCHAR}
and store_id = #{storeId,jdbcType=VARCHAR}
and status_flag =
1
and status_flag =
1
</update>
</update>
<select
id=
"listByClerkIds"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
<select
id=
"listByClerkIds"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
...
@@ -426,13 +425,24 @@
...
@@ -426,13 +425,24 @@
</update>
</update>
<select
id=
"listBindStoreIdByEnterpriseId"
resultMap=
"BaseResultMap"
>
<select
id=
"listBindStoreIdByEnterpriseId"
resultMap=
"BaseResultMap"
>
select
select store_id,
store_id,
wx_enterprise_id
wx_enterprise_id
from tab_haoban_staff_clerk_relation
from tab_haoban_staff_clerk_relation
where
where enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
and status_flag = 1
and status_flag =1
group by store_id
group by store_id
</select>
</select>
<select
id=
"listAll"
resultType=
"com.gic.haoban.manage.api.dto.StaffClerkRelationDTO"
>
SELECT a.store_id,
a.staff_id,
a.clerk_id,
b.staff_name,
c.store_name
FROM tab_haoban_staff_clerk_relation a
LEFT JOIN tab_haoban_staff b ON b.staff_id = a.staff_id
LEFT JOIN tab_gic_clerk c ON c.clerk_id = a.clerk_id
WHERE a.status_flag = 1
GROUP BY a.staff_id
</select>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/StoreController.java
View file @
1b5bbdeb
...
@@ -303,20 +303,23 @@ public class StoreController extends WebBaseController{
...
@@ -303,20 +303,23 @@ public class StoreController extends WebBaseController{
//获取门店详情
//获取门店详情
public
boolean
isEnterpriseOver
(
String
storeId
)
{
public
boolean
isEnterpriseOver
(
String
storeId
)
{
StoreDTO
store
=
storeService
.
getStore
(
storeId
);
StoreDTO
store
=
storeService
.
getStore
(
storeId
);
if
(
store
==
null
)
{
if
(
store
==
null
)
{
return
true
;
return
true
;
}
}
EnterpriseDTO
enterprise
=
enterpriseService
.
getEnterpriseBy
Ei
d
(
store
.
getEnterpriseId
());
EnterpriseDTO
enterprise
=
enterpriseService
.
getEnterpriseBy
I
d
(
store
.
getEnterpriseId
());
if
(
enterprise
==
null
||
enterprise
.
getStatus
()
!=
1
)
{
if
(
enterprise
==
null
||
enterprise
.
getStatus
()
!=
1
)
{
return
true
;
return
true
;
}
}
if
(
enterprise
.
getExpireTime
()
==
null
)
{
if
(
enterprise
.
getExpireTime
()
==
null
)
{
if
(
enterprise
.
getEnabledState
()
==
null
)
{
if
(
enterprise
.
getEnabledState
()
==
null
)
{
return
false
;
return
false
;
}
else
return
enterprise
.
getEnabledState
()
!=
1
;
}
else
{
}
else
return
enterprise
.
getEnabledState
()
!=
1
;
}
}
else
{
return
enterprise
.
getExpireTime
().
getTime
()
<=
System
.
currentTimeMillis
()
||
enterprise
.
getEnabledState
()
!=
1
;
return
enterprise
.
getExpireTime
().
getTime
()
<=
System
.
currentTimeMillis
()
||
enterprise
.
getEnabledState
()
!=
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