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
36abde78
Commit
36abde78
authored
Jun 02, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
4227025e
bc370c76
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
71 additions
and
111 deletions
+71
-111
StaffClerkBindLogDetailDTO.java
...gic/haoban/manage/api/dto/StaffClerkBindLogDetailDTO.java
+9
-0
StaffClerkBindLogMapper.java
...an/manage/service/dao/mapper/StaffClerkBindLogMapper.java
+2
-23
TabHaobanTemplateEnterpriseRelationMapper.java
...dao/mapper/TabHaobanTemplateEnterpriseRelationMapper.java
+0
-3
TabHaobanStaffClerkBindLog.java
...ban/manage/service/entity/TabHaobanStaffClerkBindLog.java
+20
-0
StaffClerkBindLogService.java
...oban/manage/service/service/StaffClerkBindLogService.java
+1
-1
StaffClerkBindLogServiceImpl.java
...ge/service/service/impl/StaffClerkBindLogServiceImpl.java
+3
-3
TemplateApplicationRelatedServiceImpl.java
...e/service/impl/TemplateApplicationRelatedServiceImpl.java
+0
-1
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+0
-0
StaffDepartmentRelatedApiServiceImpl.java
...ervice/out/impl/StaffDepartmentRelatedApiServiceImpl.java
+1
-2
StaffClerkBindLogMapper.xml
...ice/src/main/resources/mapper/StaffClerkBindLogMapper.xml
+0
-0
TabHaobanTemplateEnterpriseRelationMapper.xml
...rces/mapper/TabHaobanTemplateEnterpriseRelationMapper.xml
+2
-55
ApplicationController.java
...c/haoban/manage/web/controller/ApplicationController.java
+19
-11
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+5
-2
StaffController.java
...com/gic/haoban/manage/web/controller/StaffController.java
+6
-8
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+3
-2
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/StaffClerkBindLogDetailDTO.java
View file @
36abde78
...
@@ -106,11 +106,20 @@ public class StaffClerkBindLogDetailDTO implements Serializable {
...
@@ -106,11 +106,20 @@ public class StaffClerkBindLogDetailDTO implements Serializable {
*
*
*/
*/
private
Date
updateTime
;
private
Date
updateTime
;
private
String
operName
;
/**
/**
*/
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getOperName
()
{
return
operName
;
}
public
void
setOperName
(
String
operName
)
{
this
.
operName
=
operName
;
}
public
String
getClerkPhone
()
{
public
String
getClerkPhone
()
{
return
clerkPhone
;
return
clerkPhone
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffClerkBindLogMapper.java
View file @
36abde78
...
@@ -3,7 +3,6 @@ package com.gic.haoban.manage.service.dao.mapper;
...
@@ -3,7 +3,6 @@ package com.gic.haoban.manage.service.dao.mapper;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffClerkBindLog
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffClerkBindLog
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
retrofit2.http.PATCH
;
import
java.util.List
;
import
java.util.List
;
...
@@ -12,34 +11,14 @@ public interface StaffClerkBindLogMapper {
...
@@ -12,34 +11,14 @@ public interface StaffClerkBindLogMapper {
/**
/**
*
*
*/
*/
int
deleteByPrimaryKey
(
Integer
logId
);
/**
*
*/
int
insert
(
TabHaobanStaffClerkBindLog
record
);
int
insert
(
TabHaobanStaffClerkBindLog
record
);
/**
/**
*
*
*/
*/
int
insertSelective
(
TabHaobanStaffClerkBindLog
record
);
/**
*
*/
TabHaobanStaffClerkBindLog
selectByPrimaryKey
(
Integer
logId
);
TabHaobanStaffClerkBindLog
selectByPrimaryKey
(
Integer
logId
);
/**
/**
*
*/
int
updateByPrimaryKeySelective
(
TabHaobanStaffClerkBindLog
record
);
/**
*
*/
int
updateByPrimaryKey
(
TabHaobanStaffClerkBindLog
record
);
/**
* 列表
* 列表
*
*
* @param clerkIds
* @param clerkIds
...
@@ -48,8 +27,8 @@ public interface StaffClerkBindLogMapper {
...
@@ -48,8 +27,8 @@ public interface StaffClerkBindLogMapper {
* @param optType
* @param optType
* @return
* @return
*/
*/
public
List
<
TabHaobanStaffClerkBindLog
>
listStaffClerkBindLog
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"clerkIds"
)
List
<
String
>
clerkIds
public
List
<
TabHaobanStaffClerkBindLog
>
listStaffClerkBindLog
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
,
@Param
(
"staffIds"
)
List
<
String
>
staffIds
,
@Param
(
"enterpriseIds"
)
List
<
String
>
enterpriseIds
,
@Param
(
"optType"
)
int
optType
,
@Param
(
"search"
)
String
search
);
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"optType"
)
int
optType
,
@Param
(
"search"
)
String
search
);
public
List
<
TabHaobanStaffClerkBindLog
>
staffClerkUnBindLog
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"clerkId"
)
String
clerkIds
public
List
<
TabHaobanStaffClerkBindLog
>
staffClerkUnBindLog
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"clerkId"
)
String
clerkIds
,
@Param
(
"enterpriseId"
)
String
enterpriseIds
,
@Param
(
"optType"
)
int
optType
);
,
@Param
(
"enterpriseId"
)
String
enterpriseIds
,
@Param
(
"optType"
)
int
optType
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanTemplateEnterpriseRelationMapper.java
View file @
36abde78
...
@@ -7,12 +7,9 @@ import org.apache.ibatis.annotations.Param;
...
@@ -7,12 +7,9 @@ import org.apache.ibatis.annotations.Param;
import
com.gic.haoban.manage.service.entity.TabHaobanTemplateEnterpriseRelation
;
import
com.gic.haoban.manage.service.entity.TabHaobanTemplateEnterpriseRelation
;
public
interface
TabHaobanTemplateEnterpriseRelationMapper
{
public
interface
TabHaobanTemplateEnterpriseRelationMapper
{
int
deleteByPrimaryKey
(
String
templateEnterpriseRelationId
);
int
insert
(
TabHaobanTemplateEnterpriseRelation
record
);
int
insert
(
TabHaobanTemplateEnterpriseRelation
record
);
int
insertSelective
(
TabHaobanTemplateEnterpriseRelation
record
);
TabHaobanTemplateEnterpriseRelation
selectByPrimaryKey
(
String
templateEnterpriseRelationId
);
TabHaobanTemplateEnterpriseRelation
selectByPrimaryKey
(
String
templateEnterpriseRelationId
);
int
updateByPrimaryKeySelective
(
TabHaobanTemplateEnterpriseRelation
record
);
int
updateByPrimaryKeySelective
(
TabHaobanTemplateEnterpriseRelation
record
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/TabHaobanStaffClerkBindLog.java
View file @
36abde78
...
@@ -87,6 +87,26 @@ public class TabHaobanStaffClerkBindLog implements Serializable {
...
@@ -87,6 +87,26 @@ public class TabHaobanStaffClerkBindLog implements Serializable {
*
*
*/
*/
private
Date
updateTime
;
private
Date
updateTime
;
private
String
operName
;
private
String
clerkName
;
public
String
getOperName
()
{
return
operName
;
}
public
String
getClerkName
()
{
return
clerkName
;
}
public
void
setOperName
(
String
operName
)
{
this
.
operName
=
operName
;
}
public
void
setClerkName
(
String
clerkName
)
{
this
.
clerkName
=
clerkName
;
}
/**
/**
*/
*/
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/StaffClerkBindLogService.java
View file @
36abde78
...
@@ -44,7 +44,7 @@ public interface StaffClerkBindLogService {
...
@@ -44,7 +44,7 @@ public interface StaffClerkBindLogService {
/**
/**
* @return
* @return
*/
*/
public
Page
<
StaffClerkBindLogDetailDTO
>
pageBindLog
(
String
wxEnterpriseId
,
List
<
String
>
clerkIds
,
List
<
String
>
staffIds
,
List
<
String
>
enterpriseIds
,
int
optType
,
String
search
,
BasePageInfo
pageInfo
);
public
Page
<
StaffClerkBindLogDetailDTO
>
pageBindLog
(
String
wxEnterpriseId
,
String
enterpriseId
,
int
optType
,
String
search
,
BasePageInfo
pageInfo
);
public
Page
<
StaffClerkBindLogDetailDTO
>
pageUnBindLog
(
String
wxEnterpriseId
,
String
clerkId
,
String
enterpriseId
,
int
optType
,
BasePageInfo
pageInfo
);
public
Page
<
StaffClerkBindLogDetailDTO
>
pageUnBindLog
(
String
wxEnterpriseId
,
String
clerkId
,
String
enterpriseId
,
int
optType
,
BasePageInfo
pageInfo
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkBindLogServiceImpl.java
View file @
36abde78
...
@@ -40,7 +40,7 @@ public class StaffClerkBindLogServiceImpl implements StaffClerkBindLogService {
...
@@ -40,7 +40,7 @@ public class StaffClerkBindLogServiceImpl implements StaffClerkBindLogService {
@Override
@Override
public
void
insert
(
TabHaobanStaffClerkBindLog
bindLog
)
{
public
void
insert
(
TabHaobanStaffClerkBindLog
bindLog
)
{
bindLog
.
setCreateTime
(
new
Date
());
bindLog
.
setCreateTime
(
new
Date
());
staffClerkBindLogMapper
.
insert
Selective
(
bindLog
);
staffClerkBindLogMapper
.
insert
(
bindLog
);
}
}
@Override
@Override
...
@@ -85,9 +85,9 @@ public class StaffClerkBindLogServiceImpl implements StaffClerkBindLogService {
...
@@ -85,9 +85,9 @@ public class StaffClerkBindLogServiceImpl implements StaffClerkBindLogService {
}
}
@Override
@Override
public
Page
<
StaffClerkBindLogDetailDTO
>
pageBindLog
(
String
wxEnterpriseId
,
List
<
String
>
clerkIds
,
List
<
String
>
staffIds
,
List
<
String
>
enterpriseIds
,
int
optType
,
String
search
,
BasePageInfo
pageInfo
)
{
public
Page
<
StaffClerkBindLogDetailDTO
>
pageBindLog
(
String
wxEnterpriseId
,
String
enterpriseId
,
int
optType
,
String
search
,
BasePageInfo
pageInfo
)
{
PageHelper
.
startPage
(
pageInfo
);
PageHelper
.
startPage
(
pageInfo
);
List
<
TabHaobanStaffClerkBindLog
>
clerkBindLogList
=
staffClerkBindLogMapper
.
listStaffClerkBindLog
(
wxEnterpriseId
,
clerkIds
,
staffIds
,
enterpriseIds
,
optType
,
search
);
List
<
TabHaobanStaffClerkBindLog
>
clerkBindLogList
=
staffClerkBindLogMapper
.
listStaffClerkBindLog
(
wxEnterpriseId
,
enterpriseId
,
optType
,
search
);
Page
<
StaffClerkBindLogDetailDTO
>
retPage
=
PageUtil
.
changePageHelperToCurrentPage
(
new
PageInfo
<>(
clerkBindLogList
),
StaffClerkBindLogDetailDTO
.
class
);
Page
<
StaffClerkBindLogDetailDTO
>
retPage
=
PageUtil
.
changePageHelperToCurrentPage
(
new
PageInfo
<>(
clerkBindLogList
),
StaffClerkBindLogDetailDTO
.
class
);
return
retPage
;
return
retPage
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/TemplateApplicationRelatedServiceImpl.java
View file @
36abde78
...
@@ -9,7 +9,6 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -9,7 +9,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.gic.haoban.common.utils.StringUtil
;
import
com.gic.haoban.common.utils.StringUtil
;
import
com.gic.haoban.manage.api.dto.MemberUnionidRelatedDTO
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanTemplateApplicationRelatedMapper
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanTemplateApplicationRelatedMapper
;
import
com.gic.haoban.manage.service.entity.TabHaobanTemplateApplicationRelated
;
import
com.gic.haoban.manage.service.entity.TabHaobanTemplateApplicationRelated
;
import
com.gic.haoban.manage.service.service.TemplateApplicationRelatedService
;
import
com.gic.haoban.manage.service.service.TemplateApplicationRelatedService
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
36abde78
This diff is collapsed.
Click to expand it.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffDepartmentRelatedApiServiceImpl.java
View file @
36abde78
...
@@ -515,10 +515,9 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
...
@@ -515,10 +515,9 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
if
(
clerkDTO
==
null
)
{
if
(
clerkDTO
==
null
)
{
return
;
return
;
}
}
StaffDTO
staffDTO
=
staffApiService
.
selectById
(
staffId
);
//字段
//字段
Map
<
String
,
String
>
params
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
params
=
new
HashMap
<
String
,
String
>();
params
.
put
(
"staffName"
,
staffDTO
.
getStaff
Name
());
params
.
put
(
"staffName"
,
clerkDTO
.
getClerk
Name
());
params
.
put
(
"clerkCode"
,
clerkDTO
.
getClerkCode
());
params
.
put
(
"clerkCode"
,
clerkDTO
.
getClerkCode
());
params
.
put
(
"reason"
,
reason
);
params
.
put
(
"reason"
,
reason
);
//参数
//参数
...
...
haoban-manage3-service/src/main/resources/mapper/StaffClerkBindLogMapper.xml
View file @
36abde78
This diff is collapsed.
Click to expand it.
haoban-manage3-service/src/main/resources/mapper/TabHaobanTemplateEnterpriseRelationMapper.xml
View file @
36abde78
...
@@ -20,11 +20,7 @@
...
@@ -20,11 +20,7 @@
from tab_haoban_template_enterprise_relation
from tab_haoban_template_enterprise_relation
where template_enterprise_relation_id = #{templateEnterpriseRelationId,jdbcType=VARCHAR}
where template_enterprise_relation_id = #{templateEnterpriseRelationId,jdbcType=VARCHAR}
</select>
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
delete
from tab_haoban_template_enterprise_relation
where template_enterprise_relation_id = #{templateEnterpriseRelationId,jdbcType=VARCHAR}
</delete>
<insert
id=
"insert"
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanTemplateEnterpriseRelation"
>
<insert
id=
"insert"
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanTemplateEnterpriseRelation"
>
insert into tab_haoban_template_enterprise_relation (template_enterprise_relation_id, wx_enterprise_id,
insert into tab_haoban_template_enterprise_relation (template_enterprise_relation_id, wx_enterprise_id,
application_template_id, status_flag, create_time,
application_template_id, status_flag, create_time,
...
@@ -34,56 +30,7 @@
...
@@ -34,56 +30,7 @@
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{wxEnterpriseName,jdbcType=VARCHAR})
#{updateTime,jdbcType=TIMESTAMP}, #{wxEnterpriseName,jdbcType=VARCHAR})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanTemplateEnterpriseRelation"
>
insert into tab_haoban_template_enterprise_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"templateEnterpriseRelationId != null"
>
template_enterprise_relation_id,
</if>
<if
test=
"wxEnterpriseId != null"
>
wx_enterprise_id,
</if>
<if
test=
"wxEnterpriseName != null"
>
wx_enterprise_name,
</if>
<if
test=
"applicationTemplateId != null"
>
application_template_id,
</if>
<if
test=
"statusFlag != null"
>
status_flag,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"templateEnterpriseRelationId != null"
>
#{templateEnterpriseRelationId,jdbcType=VARCHAR},
</if>
<if
test=
"wxEnterpriseId != null"
>
#{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if
test=
"wxEnterpriseName != null"
>
#{wxEnterpriseName,jdbcType=VARCHAR},
</if>
<if
test=
"applicationTemplateId != null"
>
#{applicationTemplateId,jdbcType=VARCHAR},
</if>
<if
test=
"statusFlag != null"
>
#{statusFlag,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanTemplateEnterpriseRelation"
>
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanTemplateEnterpriseRelation"
>
update tab_haoban_template_enterprise_relation
update tab_haoban_template_enterprise_relation
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/ApplicationController.java
View file @
36abde78
...
@@ -22,7 +22,6 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -22,7 +22,6 @@ import org.springframework.web.bind.annotation.RestController;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.commons.util.CollectionUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.common.anno.IgnoreLogin
;
import
com.gic.haoban.common.anno.IgnoreLogin
;
...
@@ -47,7 +46,6 @@ import com.gic.haoban.manage.web.config.Config;
...
@@ -47,7 +46,6 @@ import com.gic.haoban.manage.web.config.Config;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.vo.ApplicationVO
;
import
com.gic.haoban.manage.web.vo.ApplicationVO
;
import
com.gic.haoban.manage.web.vo.ClerkEditInfoVO
;
import
com.gic.haoban.manage.web.vo.ClerkEditInfoVO
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.wechat.api.service.qywx.QywxSuiteApiService
;
import
com.gic.wechat.api.service.qywx.QywxSuiteApiService
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
...
@@ -97,15 +95,25 @@ public class ApplicationController extends WebBaseController {
...
@@ -97,15 +95,25 @@ public class ApplicationController extends WebBaseController {
}
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
List
<
ApplicationDTO
>
list
=
applicationApiService
.
listApplicationByWxEnterpriseId
(
wxEnterpriseId
);
List
<
ApplicationDTO
>
list
=
applicationApiService
.
listApplicationByWxEnterpriseId
(
wxEnterpriseId
);
Object
o
=
RedisUtil
.
getCache
(
"haobanWxEnterpriseIdAppOpen"
);
Iterator
<
ApplicationDTO
>
it
=
list
.
iterator
();
String
wxEnterpriseIds
=
o
==
null
?
""
:
o
.
toString
();
// 判断模板
if
(!
wxEnterpriseIds
.
contains
(
wxEnterpriseId
))
{
List
<
String
>
tempIdList
=
null
;
Iterator
<
ApplicationDTO
>
it
=
list
.
iterator
();
List
<
ApplicationDTO
>
tempList
=
this
.
applicationApiService
.
listApplicationByWxEnterpriseId
(
wxEnterpriseId
)
;
while
(
it
.
hasNext
())
{
if
(
CollectionUtils
.
isNotEmpty
(
tempList
))
{
ApplicationDTO
s
=
it
.
next
();
tempIdList
=
tempList
.
stream
().
map
(
dto
->
dto
.
getApplicationId
()).
collect
(
Collectors
.
toList
())
;
// 我的客户、营销任务、看数据、云日报、月指标、商品中心、订单评价、扫码核销、E袋洗、佣金结算
}
if
(
Arrays
.
asList
(
"11111"
,
"11114"
,
"11121"
,
"11122"
).
contains
(
s
.
getApplicationId
()))
{
while
(
it
.
hasNext
())
{
it
.
remove
();
ApplicationDTO
s
=
it
.
next
();
// 我的客户、营销任务、看数据、云日报、月指标、商品中心、订单评价、扫码核销、E袋洗、佣金结算
if
(
Arrays
.
asList
(
"11111"
,
"11114"
,
"11121"
,
"11122"
).
contains
(
s
.
getApplicationId
()))
{
it
.
remove
();
}
// 11123E袋洗 11124佣金结算
if
(
CollectionUtils
.
isNotEmpty
(
tempIdList
))
{
if
(
Arrays
.
asList
(
"11123"
,
"11124"
).
contains
(
s
.
getApplicationId
()))
{
if
(!
tempIdList
.
contains
(
s
.
getApplicationId
()))
{
it
.
remove
();
}
}
}
}
}
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
36abde78
...
@@ -439,8 +439,11 @@ public class LoginController extends WebBaseController {
...
@@ -439,8 +439,11 @@ public class LoginController extends WebBaseController {
String
gicEnterpriseId
=
jsonObject
.
getString
(
"enterpriseId"
);
String
gicEnterpriseId
=
jsonObject
.
getString
(
"enterpriseId"
);
String
phoneNumber
=
jsonObject
.
getString
(
"phoneNumber"
);
String
phoneNumber
=
jsonObject
.
getString
(
"phoneNumber"
);
Long
timestamp
=
jsonObject
.
getLong
(
"timestamp"
)
;
Long
timestamp
=
jsonObject
.
getLong
(
"timestamp"
)
;
logger
.
info
(
"选择企微列表,gicEnterpriseId={},phoneNumber={}"
,
gicEnterpriseId
,
phoneNumber
);
if
(
null
==
timestamp
)
{
if
(
StringUtils
.
isAnyBlank
(
gicEnterpriseId
,
phoneNumber
,
timestamp
+
""
))
{
return
this
.
fail
(
"登录请求参数异常timestamp"
);
}
logger
.
info
(
"选择企微列表,params={}"
,
o
);
if
(
StringUtils
.
isAnyBlank
(
gicEnterpriseId
,
phoneNumber
))
{
return
this
.
fail
(
"参数异常"
);
return
this
.
fail
(
"参数异常"
);
}
}
if
(
timestamp
+
1000
*
60
*
5
<
System
.
currentTimeMillis
())
{
if
(
timestamp
+
1000
*
60
*
5
<
System
.
currentTimeMillis
())
{
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/StaffController.java
View file @
36abde78
...
@@ -339,12 +339,9 @@ public class StaffController extends WebBaseController {
...
@@ -339,12 +339,9 @@ public class StaffController extends WebBaseController {
* @return
* @return
*/
*/
@RequestMapping
(
"del-clerk-relation"
)
@RequestMapping
(
"del-clerk-relation"
)
public
HaobanResponse
delStaffClerkList
(
String
staffId
,
String
clerkId
)
{
public
HaobanResponse
delStaffClerkList
(
String
clerkId
)
{
StaffDTO
staff
=
staffApiService
.
selectById
(
staffId
);
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
if
(
staff
==
null
)
{
boolean
b
=
staffClerkRelationApiService
.
unbindByStaffAndClerkId
(
login
.
getClerkId
(),
clerkId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_10007
);
}
boolean
b
=
staffClerkRelationApiService
.
unbindByStaffAndClerkId
(
staffId
,
clerkId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
b
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
b
);
}
}
...
@@ -433,7 +430,7 @@ public class StaffController extends WebBaseController {
...
@@ -433,7 +430,7 @@ public class StaffController extends WebBaseController {
relationDTO
.
setWxUserId
(
staffDTO
.
getWxUserId
());
relationDTO
.
setWxUserId
(
staffDTO
.
getWxUserId
());
ServiceResponse
response
=
staffClerkRelationApiService
.
bindStaffClerk
(
relationDTO
,
login
.
get
Staff
Id
(),
ChannelCodeEnum
.
ADMIN_BIND
.
getCode
());
ServiceResponse
response
=
staffClerkRelationApiService
.
bindStaffClerk
(
relationDTO
,
login
.
get
Clerk
Id
(),
ChannelCodeEnum
.
ADMIN_BIND
.
getCode
());
logger
.
info
(
"返回信息:{}"
,
JSONObject
.
toJSONString
(
response
));
logger
.
info
(
"返回信息:{}"
,
JSONObject
.
toJSONString
(
response
));
if
(
response
.
getCode
()
==
1
)
{
if
(
response
.
getCode
()
==
1
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
...
@@ -450,8 +447,9 @@ public class StaffController extends WebBaseController {
...
@@ -450,8 +447,9 @@ public class StaffController extends WebBaseController {
* @return
* @return
*/
*/
@RequestMapping
(
"staff-clerk-bind-log"
)
@RequestMapping
(
"staff-clerk-bind-log"
)
public
HaobanResponse
bindLogs
(
String
search
,
String
enterpriseId
,
@RequestParam
(
defaultValue
=
"-1"
)
Integer
optType
,
BasePageInfo
qo
)
{
public
HaobanResponse
bindLogs
(
String
search
,
@RequestParam
(
defaultValue
=
"-1"
)
Integer
optType
,
BasePageInfo
qo
)
{
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
String
enterpriseId
=
login
.
getEnterpriseId
()
;
Page
<
StaffClerkBindLogDetailDTO
>
page
=
staffClerkRelationApiService
.
pageStaffClerkBindLog
(
login
.
getWxEnterpriseId
(),
search
,
enterpriseId
,
optType
,
qo
);
Page
<
StaffClerkBindLogDetailDTO
>
page
=
staffClerkRelationApiService
.
pageStaffClerkBindLog
(
login
.
getWxEnterpriseId
(),
search
,
enterpriseId
,
optType
,
qo
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
page
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
page
);
}
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
36abde78
...
@@ -163,7 +163,8 @@ public class ClerkController extends WebBaseController {
...
@@ -163,7 +163,8 @@ public class ClerkController extends WebBaseController {
}
else
{
}
else
{
WxEnterpriseRelationDetailDTO
enterpriseBindInfo
=
wxEnterpriseRelatedApiService
.
getEnterpriseBindInfo
(
wxEnterpriseId
,
storeDTO
.
getEnterpriseId
());
WxEnterpriseRelationDetailDTO
enterpriseBindInfo
=
wxEnterpriseRelatedApiService
.
getEnterpriseBindInfo
(
wxEnterpriseId
,
storeDTO
.
getEnterpriseId
());
Map
<
String
,
Object
>
ret
=
new
HashMap
<>();
Map
<
String
,
Object
>
ret
=
new
HashMap
<>();
ret
.
put
(
"clerkEditFlag"
,
enterpriseBindInfo
.
getClerkEditFlag
());
// 待删除
ret
.
put
(
"clerkEditFlag"
,
ClerkEditInfoVO
.
info
(
enterpriseBindInfo
.
getClerkEditFlag
()).
getEditClerkFlag
());
ret
.
put
(
"clerkList"
,
resultList
);
ret
.
put
(
"clerkList"
,
resultList
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
ret
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
ret
);
}
}
...
@@ -946,7 +947,7 @@ public class ClerkController extends WebBaseController {
...
@@ -946,7 +947,7 @@ public class ClerkController extends WebBaseController {
staffClerkRelationApiService
.
delByStoreIdAndCode
(
storeId
,
clerkCode
);
staffClerkRelationApiService
.
delByStoreIdAndCode
(
storeId
,
clerkCode
);
//加入日志
//加入日志
staffClerkRelationApiService
.
pushToBindLog
(
staffClerkRelation
.
getStaffId
(),
staff
Id
,
BindTypeEnum
.
UNBIND
.
getVal
(),
ChannelCodeEnum
.
SELF_UNBIND
.
getCode
(),
staffClerkRelation
.
getStaffClerkRelationId
());
staffClerkRelationApiService
.
pushToBindLog
(
staffClerkRelation
.
getStaffId
(),
clerk
Id
,
BindTypeEnum
.
UNBIND
.
getVal
(),
ChannelCodeEnum
.
SELF_UNBIND
.
getCode
(),
staffClerkRelation
.
getStaffClerkRelationId
());
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
return
resultResponse
(
HaoBanErrCode
.
ERR_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