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
ead66a16
Commit
ead66a16
authored
May 26, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购
parent
a58d0579
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
66 deletions
+15
-66
TabHaobanOperationSettingMapper.java
...e/service/dao/mapper/TabHaobanOperationSettingMapper.java
+0
-27
TabHaobanOperationSettingMapper.xml
...main/resources/mapper/TabHaobanOperationSettingMapper.xml
+0
-18
AuditController.java
...com/gic/haoban/manage/web/controller/AuditController.java
+11
-14
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+2
-5
OperationSettingVO.java
...java/com/gic/haoban/manage/web/vo/OperationSettingVO.java
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanOperationSettingMapper.java
View file @
ead66a16
...
@@ -2,7 +2,6 @@ package com.gic.haoban.manage.service.dao.mapper;
...
@@ -2,7 +2,6 @@ package com.gic.haoban.manage.service.dao.mapper;
import
com.gic.haoban.manage.service.entity.TabHaobanOperationSetting
;
import
com.gic.haoban.manage.service.entity.TabHaobanOperationSetting
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
import
java.util.List
;
...
@@ -33,14 +32,6 @@ public interface TabHaobanOperationSettingMapper {
...
@@ -33,14 +32,6 @@ public interface TabHaobanOperationSettingMapper {
int
update
(
TabHaobanOperationSetting
setting
);
int
update
(
TabHaobanOperationSetting
setting
);
/**
/**
* 通过主键删除数据
*
* @param settingId 主键
* @return 影响行数
*/
int
deleteById
(
String
settingId
);
/**
* 通过ID查询单条数据
* 通过ID查询单条数据
*
*
* @param settingId 主键
* @param settingId 主键
...
@@ -56,22 +47,4 @@ public interface TabHaobanOperationSettingMapper {
...
@@ -56,22 +47,4 @@ public interface TabHaobanOperationSettingMapper {
*/
*/
List
<
TabHaobanOperationSetting
>
queryAll
(
TabHaobanOperationSetting
setting
);
List
<
TabHaobanOperationSetting
>
queryAll
(
TabHaobanOperationSetting
setting
);
/**
* 分页总数
*
* @return 对象列表
*/
int
queryCountByPage
();
/**
* 分页列表
*
* @param offset 查询起始位置
* @param limit 查询条数
* @return 对象列表
*/
List
<
TabHaobanOperationSetting
>
queryListByPage
(
@Param
(
"offset"
)
int
offset
,
@Param
(
"limit"
)
int
limit
);
}
}
haoban-manage3-service/src/main/resources/mapper/TabHaobanOperationSettingMapper.xml
View file @
ead66a16
...
@@ -91,11 +91,6 @@
...
@@ -91,11 +91,6 @@
where setting_id = #{settingId}
where setting_id = #{settingId}
</update>
</update>
<!--通过主键删除-->
<delete
id=
"deleteById"
>
delete from tab_haoban_operation_setting where setting_id = #{settingId}
</delete>
<!--查询单个-->
<!--查询单个-->
<select
id=
"queryById"
resultMap=
"TabHaobanOperationSettingMap"
>
<select
id=
"queryById"
resultMap=
"TabHaobanOperationSettingMap"
>
select
select
...
@@ -134,17 +129,4 @@
...
@@ -134,17 +129,4 @@
</where>
</where>
</select>
</select>
<select
id=
"queryCountByPage"
resultType=
"int"
>
select
count(*)
from tab_haoban_operation_setting
</select>
<select
id=
"queryListByPage"
resultMap=
"TabHaobanOperationSettingMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_operation_setting
limit #{offset}, #{limit}
</select>
</mapper>
</mapper>
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/AuditController.java
View file @
ead66a16
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
...
@@ -19,28 +30,14 @@ import com.gic.haoban.manage.api.dto.StaffClerkRelationDTO;
...
@@ -19,28 +30,14 @@ import com.gic.haoban.manage.api.dto.StaffClerkRelationDTO;
import
com.gic.haoban.manage.api.dto.StaffDTO
;
import
com.gic.haoban.manage.api.dto.StaffDTO
;
import
com.gic.haoban.manage.api.enums.AuditType
;
import
com.gic.haoban.manage.api.enums.AuditType
;
import
com.gic.haoban.manage.api.enums.ChannelCodeEnum
;
import
com.gic.haoban.manage.api.enums.ChannelCodeEnum
;
import
com.gic.haoban.manage.api.enums.NoticeMessageTypeEnum
;
import
com.gic.haoban.manage.api.service.AuditApiService
;
import
com.gic.haoban.manage.api.service.AuditApiService
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.StaffClerkRelationApiService
;
import
com.gic.haoban.manage.api.service.StaffClerkRelationApiService
;
import
com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService
;
import
com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService
;
import
com.gic.haoban.manage.api.util.notify.NoticeMessageUtil
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.vo.AuditVO
;
import
com.gic.haoban.manage.web.vo.AuditVO
;
import
com.gic.haoban.manage.web.vo.StaffClerkBindLogDetailVO
;
import
com.gic.haoban.manage.web.vo.StaffClerkBindLogDetailVO
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.redis.data.util.RedisUtil
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
@RestController
@RestController
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
ead66a16
...
@@ -109,7 +109,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -109,7 +109,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
String
userDTOJson
=
qywxCorpApiService
.
getCodeSession
(
config
.
getWxSuiteid
(),
code
);
String
userDTOJson
=
qywxCorpApiService
.
getCodeSession
(
config
.
getWxSuiteid
(),
code
);
// {"errcode":0,"corpid":"wweac4ef962720aa12","session_key":"oNKOu4tDcnTWdj4wOg75YQ==","errmsg":"ok",
// {"errcode":0,"corpid":"wweac4ef962720aa12","session_key":"oNKOu4tDcnTWdj4wOg75YQ==","errmsg":"ok",
// "open_userid":"wo59NLDQAAxeJ-Nr7_vwkZVc7QOG73PQ","userid":"xugaohua","deviceid":"0BB1D1FA-C5A2-4BDD-80A2-33B6BB230F8A"}
// "open_userid":"wo59NLDQAAxeJ-Nr7_vwkZVc7QOG73PQ","userid":"xugaohua","deviceid":"0BB1D1FA-C5A2-4BDD-80A2-33B6BB230F8A"}
logger
.
info
(
"
userDTOJson=============>
{}"
,
userDTOJson
);
logger
.
info
(
"
好办登录=
{}"
,
userDTOJson
);
UserDTO
user
=
JSON
.
parseObject
(
userDTOJson
,
UserDTO
.
class
);
UserDTO
user
=
JSON
.
parseObject
(
userDTOJson
,
UserDTO
.
class
);
if
(
user
==
null
)
{
if
(
user
==
null
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_6
);
return
resultResponse
(
HaoBanErrCode
.
ERR_6
);
...
@@ -120,16 +120,13 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -120,16 +120,13 @@ public class WxEnterpriseInfoController extends WebBaseController {
StaffDTO
loginStaff
=
null
;
StaffDTO
loginStaff
=
null
;
if
(
enterprise
!=
null
)
{
if
(
enterprise
!=
null
)
{
loginStaff
=
staffApiService
.
getByUserIdAndReflushWhenNoPhone
(
userId
,
enterprise
.
getWxEnterpriseId
());
loginStaff
=
staffApiService
.
getByUserIdAndReflushWhenNoPhone
(
userId
,
enterprise
.
getWxEnterpriseId
());
}
//手机号不存在
if
(
loginStaff
==
null
)
{
if
(
loginStaff
==
null
)
{
if
(
enterprise
!=
null
)
{
staffApiService
.
wxGetAdd
(
userId
,
enterprise
.
getWxEnterpriseId
());
staffApiService
.
wxGetAdd
(
userId
,
enterprise
.
getWxEnterpriseId
());
loginStaff
=
staffApiService
.
selectByUserIdAndEnterpriseId
(
userId
,
enterprise
.
getWxEnterpriseId
());
loginStaff
=
staffApiService
.
selectByUserIdAndEnterpriseId
(
userId
,
enterprise
.
getWxEnterpriseId
());
}
}
}
}
if
(
loginStaff
==
null
)
{
if
(
loginStaff
==
null
)
{
logger
.
info
(
"游客用户"
);
WellDoneLoginInfoVO
wellDoneLoginInfoVo
=
new
WellDoneLoginInfoVO
();
WellDoneLoginInfoVO
wellDoneLoginInfoVo
=
new
WellDoneLoginInfoVO
();
wellDoneLoginInfoVo
.
setWxOpenUseId
(
userId
);
wellDoneLoginInfoVo
.
setWxOpenUseId
(
userId
);
StaffPrivacyUseLogDTO
staffPrivacyUseLogDTO
=
staffApiService
.
getStaffPrivacyByUserId
(
userId
);
StaffPrivacyUseLogDTO
staffPrivacyUseLogDTO
=
staffApiService
.
getStaffPrivacyByUserId
(
userId
);
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/vo/OperationSettingVO.java
View file @
ead66a16
...
@@ -69,11 +69,11 @@ public class OperationSettingVO implements Serializable {
...
@@ -69,11 +69,11 @@ public class OperationSettingVO implements Serializable {
}
}
public
Integer
getClerkPhoneFlag
()
{
public
Integer
getClerkPhoneFlag
()
{
return
clerkPhoneFlag
;
return
1
;
}
}
public
void
setClerkPhoneFlag
(
Integer
clerkPhoneFlag
)
{
public
void
setClerkPhoneFlag
(
Integer
clerkPhoneFlag
)
{
this
.
clerkPhoneFlag
=
clerkPhoneFlag
;
this
.
clerkPhoneFlag
=
1
;
}
}
public
Integer
getStoreEditFlag
()
{
public
Integer
getStoreEditFlag
()
{
...
...
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