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
c38e6885
Commit
c38e6885
authored
Dec 13, 2021
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:welcome修改
parent
1630a44f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
165 additions
and
335 deletions
+165
-335
WelcomeDTO.java
...c/main/java/com/gic/haoban/manage/api/dto/WelcomeDTO.java
+25
-82
WxEnterpriseApiService.java
...gic/haoban/manage/api/service/WxEnterpriseApiService.java
+1
-1
TabHaobanWelcomeMapper.java
...ban/manage/service/dao/mapper/TabHaobanWelcomeMapper.java
+0
-9
TabWelcome.java
...java/com/gic/haoban/manage/service/entity/TabWelcome.java
+23
-83
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+2
-2
TabHaobanExternalClerkRelatedMapper.xml
.../resources/mapper/TabHaobanExternalClerkRelatedMapper.xml
+1
-0
TabHaobanWelcomeMapper.xml
...vice/src/main/resources/mapper/TabHaobanWelcomeMapper.xml
+22
-71
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+4
-5
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+75
-49
WebInterceptor.java
...com/gic/haoban/manage/web/interceptor/WebInterceptor.java
+6
-33
ClerkLoginQO.java
.../main/java/com/gic/haoban/manage/web/qo/ClerkLoginQO.java
+6
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/WelcomeDTO.java
View file @
c38e6885
...
@@ -11,6 +11,9 @@ import java.util.Date;
...
@@ -11,6 +11,9 @@ import java.util.Date;
* @author fdh
* @author fdh
*/
*/
public
class
WelcomeDTO
implements
Serializable
{
public
class
WelcomeDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
*
*
*/
*/
...
@@ -30,6 +33,12 @@ public class WelcomeDTO implements Serializable {
...
@@ -30,6 +33,12 @@ public class WelcomeDTO implements Serializable {
* 内容
* 内容
*/
*/
private
String
welcomeContent
;
private
String
welcomeContent
;
/**
* 图片
*/
private
String
welcomeImg
;
/**
/**
* 0删除 1正常
* 0删除 1正常
*/
*/
...
@@ -49,140 +58,74 @@ public class WelcomeDTO implements Serializable {
...
@@ -49,140 +58,74 @@ public class WelcomeDTO implements Serializable {
*/
*/
private
Date
updateTime
;
private
Date
updateTime
;
/**
*/
private
static
final
long
serialVersionUID
=
1L
;
public
Integer
getOpenFlag
()
{
return
openFlag
;
}
public
void
setOpenFlag
(
Integer
openFlag
)
{
this
.
openFlag
=
openFlag
;
}
/**
* This method returns the value of the database column tab_haoban_welcome.welcome_id
*
* @return the value of tab_haoban_welcome.welcome_id
*/
public
String
getWelcomeId
()
{
public
String
getWelcomeId
()
{
return
welcomeId
;
return
welcomeId
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.welcome_id
*
* @param welcomeId the value for tab_haoban_welcome.welcome_id
*/
public
void
setWelcomeId
(
String
welcomeId
)
{
public
void
setWelcomeId
(
String
welcomeId
)
{
this
.
welcomeId
=
welcomeId
;
this
.
welcomeId
=
welcomeId
;
}
}
/**
* This method returns the value of the database column tab_haoban_welcome.wx_enterprise_id
*
* @return the value of tab_haoban_welcome.wx_enterprise_id
*/
public
String
getWxEnterpriseId
()
{
public
String
getWxEnterpriseId
()
{
return
wxEnterpriseId
;
return
wxEnterpriseId
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.wx_enterprise_id
*
* @param wxEnterpriseId the value for tab_haoban_welcome.wx_enterprise_id
*/
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
this
.
wxEnterpriseId
=
wxEnterpriseId
;
this
.
wxEnterpriseId
=
wxEnterpriseId
;
}
}
/**
* This method returns the value of the database column tab_haoban_welcome.title
*
* @return the value of tab_haoban_welcome.title
*/
public
String
getTitle
()
{
public
String
getTitle
()
{
return
title
;
return
title
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.title
*
* @param title the value for tab_haoban_welcome.title
*/
public
void
setTitle
(
String
title
)
{
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
this
.
title
=
title
;
}
}
/**
* This method returns the value of the database column tab_haoban_welcome.welcome_content
*
* @return the value of tab_haoban_welcome.welcome_content
*/
public
String
getWelcomeContent
()
{
public
String
getWelcomeContent
()
{
return
welcomeContent
;
return
welcomeContent
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.welcome_content
*
* @param welcomeContent the value for tab_haoban_welcome.welcome_content
*/
public
void
setWelcomeContent
(
String
welcomeContent
)
{
public
void
setWelcomeContent
(
String
welcomeContent
)
{
this
.
welcomeContent
=
welcomeContent
;
this
.
welcomeContent
=
welcomeContent
;
}
}
/**
public
String
getWelcomeImg
()
{
* This method returns the value of the database column tab_haoban_welcome.status_flag
return
welcomeImg
;
*
}
* @return the value of tab_haoban_welcome.status_flag
*/
public
void
setWelcomeImg
(
String
welcomeImg
)
{
this
.
welcomeImg
=
welcomeImg
;
}
public
Integer
getOpenFlag
()
{
return
openFlag
;
}
public
void
setOpenFlag
(
Integer
openFlag
)
{
this
.
openFlag
=
openFlag
;
}
public
Integer
getStatusFlag
()
{
public
Integer
getStatusFlag
()
{
return
statusFlag
;
return
statusFlag
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.status_flag
*
* @param statusFlag the value for tab_haoban_welcome.status_flag
*/
public
void
setStatusFlag
(
Integer
statusFlag
)
{
public
void
setStatusFlag
(
Integer
statusFlag
)
{
this
.
statusFlag
=
statusFlag
;
this
.
statusFlag
=
statusFlag
;
}
}
/**
* This method returns the value of the database column tab_haoban_welcome.create_time
*
* @return the value of tab_haoban_welcome.create_time
*/
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
return
createTime
;
return
createTime
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.create_time
*
* @param createTime the value for tab_haoban_welcome.create_time
*/
public
void
setCreateTime
(
Date
createTime
)
{
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
this
.
createTime
=
createTime
;
}
}
/**
* This method returns the value of the database column tab_haoban_welcome.update_time
*
* @return the value of tab_haoban_welcome.update_time
*/
public
Date
getUpdateTime
()
{
public
Date
getUpdateTime
()
{
return
updateTime
;
return
updateTime
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.update_time
*
* @param updateTime the value for tab_haoban_welcome.update_time
*/
public
void
setUpdateTime
(
Date
updateTime
)
{
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
this
.
updateTime
=
updateTime
;
}
}
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/WxEnterpriseApiService.java
View file @
c38e6885
...
@@ -137,7 +137,7 @@ public interface WxEnterpriseApiService {
...
@@ -137,7 +137,7 @@ public interface WxEnterpriseApiService {
boolean
setWelcome
(
String
wxEnterpriseId
,
Integer
openFlag
);
boolean
setWelcome
(
String
wxEnterpriseId
,
Integer
openFlag
);
/**
/**
*
获取
欢迎语
*
删除
欢迎语
*
*
* @param wxEnterpriseId
* @param wxEnterpriseId
* @return
* @return
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanWelcomeMapper.java
View file @
c38e6885
...
@@ -15,10 +15,6 @@ public interface TabHaobanWelcomeMapper {
...
@@ -15,10 +15,6 @@ public interface TabHaobanWelcomeMapper {
/**
/**
*/
*/
int
insertSelective
(
TabWelcome
record
);
/**
*/
TabWelcome
selectByPrimaryKey
(
String
welcomeId
);
TabWelcome
selectByPrimaryKey
(
String
welcomeId
);
/**
/**
...
@@ -27,9 +23,5 @@ public interface TabHaobanWelcomeMapper {
...
@@ -27,9 +23,5 @@ public interface TabHaobanWelcomeMapper {
/**
/**
*/
*/
int
updateByPrimaryKey
(
TabWelcome
record
);
/**
*/
TabWelcome
selectByWxEnterpriseId
(
String
wxEnterpriseId
);
TabWelcome
selectByWxEnterpriseId
(
String
wxEnterpriseId
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/TabWelcome.java
View file @
c38e6885
...
@@ -11,6 +11,8 @@ import java.util.Date;
...
@@ -11,6 +11,8 @@ import java.util.Date;
* @author fdh
* @author fdh
*/
*/
public
class
TabWelcome
implements
Serializable
{
public
class
TabWelcome
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
*
*
*/
*/
...
@@ -32,6 +34,11 @@ public class TabWelcome implements Serializable {
...
@@ -32,6 +34,11 @@ public class TabWelcome implements Serializable {
private
String
welcomeContent
;
private
String
welcomeContent
;
/**
/**
* 图片
*/
private
String
welcomeImg
;
/**
* 0删除 1正常
* 0删除 1正常
*/
*/
private
Integer
openFlag
;
private
Integer
openFlag
;
...
@@ -51,141 +58,74 @@ public class TabWelcome implements Serializable {
...
@@ -51,141 +58,74 @@ public class TabWelcome implements Serializable {
*/
*/
private
Date
updateTime
;
private
Date
updateTime
;
/**
*/
private
static
final
long
serialVersionUID
=
1L
;
public
Integer
getOpenFlag
()
{
return
openFlag
;
}
public
void
setOpenFlag
(
Integer
openFlag
)
{
this
.
openFlag
=
openFlag
;
}
/**
* This method returns the value of the database column tab_haoban_welcome.welcome_id
*
* @return the value of tab_haoban_welcome.welcome_id
*/
public
String
getWelcomeId
()
{
public
String
getWelcomeId
()
{
return
welcomeId
;
return
welcomeId
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.welcome_id
*
* @param welcomeId the value for tab_haoban_welcome.welcome_id
*/
public
void
setWelcomeId
(
String
welcomeId
)
{
public
void
setWelcomeId
(
String
welcomeId
)
{
this
.
welcomeId
=
welcomeId
;
this
.
welcomeId
=
welcomeId
;
}
}
/**
* This method returns the value of the database column tab_haoban_welcome.wx_enterprise_id
*
* @return the value of tab_haoban_welcome.wx_enterprise_id
*/
public
String
getWxEnterpriseId
()
{
public
String
getWxEnterpriseId
()
{
return
wxEnterpriseId
;
return
wxEnterpriseId
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.wx_enterprise_id
*
* @param wxEnterpriseId the value for tab_haoban_welcome.wx_enterprise_id
*/
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
this
.
wxEnterpriseId
=
wxEnterpriseId
;
this
.
wxEnterpriseId
=
wxEnterpriseId
;
}
}
/**
* This method returns the value of the database column tab_haoban_welcome.title
*
* @return the value of tab_haoban_welcome.title
*/
public
String
getTitle
()
{
public
String
getTitle
()
{
return
title
;
return
title
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.title
*
* @param title the value for tab_haoban_welcome.title
*/
public
void
setTitle
(
String
title
)
{
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
this
.
title
=
title
;
}
}
/**
* This method returns the value of the database column tab_haoban_welcome.welcome_content
*
* @return the value of tab_haoban_welcome.welcome_content
*/
public
String
getWelcomeContent
()
{
public
String
getWelcomeContent
()
{
return
welcomeContent
;
return
welcomeContent
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.welcome_content
*
* @param welcomeContent the value for tab_haoban_welcome.welcome_content
*/
public
void
setWelcomeContent
(
String
welcomeContent
)
{
public
void
setWelcomeContent
(
String
welcomeContent
)
{
this
.
welcomeContent
=
welcomeContent
;
this
.
welcomeContent
=
welcomeContent
;
}
}
/**
public
String
getWelcomeImg
()
{
* This method returns the value of the database column tab_haoban_welcome.status_flag
return
welcomeImg
;
*
}
* @return the value of tab_haoban_welcome.status_flag
*/
public
void
setWelcomeImg
(
String
welcomeImg
)
{
this
.
welcomeImg
=
welcomeImg
;
}
public
Integer
getOpenFlag
()
{
return
openFlag
;
}
public
void
setOpenFlag
(
Integer
openFlag
)
{
this
.
openFlag
=
openFlag
;
}
public
Integer
getStatusFlag
()
{
public
Integer
getStatusFlag
()
{
return
statusFlag
;
return
statusFlag
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.status_flag
*
* @param statusFlag the value for tab_haoban_welcome.status_flag
*/
public
void
setStatusFlag
(
Integer
statusFlag
)
{
public
void
setStatusFlag
(
Integer
statusFlag
)
{
this
.
statusFlag
=
statusFlag
;
this
.
statusFlag
=
statusFlag
;
}
}
/**
* This method returns the value of the database column tab_haoban_welcome.create_time
*
* @return the value of tab_haoban_welcome.create_time
*/
public
Date
getCreateTime
()
{
public
Date
getCreateTime
()
{
return
createTime
;
return
createTime
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.create_time
*
* @param createTime the value for tab_haoban_welcome.create_time
*/
public
void
setCreateTime
(
Date
createTime
)
{
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
this
.
createTime
=
createTime
;
}
}
/**
* This method returns the value of the database column tab_haoban_welcome.update_time
*
* @return the value of tab_haoban_welcome.update_time
*/
public
Date
getUpdateTime
()
{
public
Date
getUpdateTime
()
{
return
updateTime
;
return
updateTime
;
}
}
/**
* This method sets the value of the database column tab_haoban_welcome.update_time
*
* @param updateTime the value for tab_haoban_welcome.update_time
*/
public
void
setUpdateTime
(
Date
updateTime
)
{
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
this
.
updateTime
=
updateTime
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
c38e6885
...
@@ -264,7 +264,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
...
@@ -264,7 +264,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
}
}
tabWelcome
.
setOpenFlag
(
openFlag
);
tabWelcome
.
setOpenFlag
(
openFlag
);
tabWelcome
.
setUpdateTime
(
new
Date
());
tabWelcome
.
setUpdateTime
(
new
Date
());
welcomeMapper
.
updateByPrimaryKey
(
tabWelcome
);
welcomeMapper
.
updateByPrimaryKey
Selective
(
tabWelcome
);
return
true
;
return
true
;
}
}
...
@@ -276,7 +276,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
...
@@ -276,7 +276,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
}
}
tabWelcome
.
setStatusFlag
(
0
);
tabWelcome
.
setStatusFlag
(
0
);
tabWelcome
.
setUpdateTime
(
new
Date
());
tabWelcome
.
setUpdateTime
(
new
Date
());
welcomeMapper
.
updateByPrimaryKey
(
tabWelcome
);
welcomeMapper
.
updateByPrimaryKey
Selective
(
tabWelcome
);
return
true
;
return
true
;
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanExternalClerkRelatedMapper.xml
View file @
c38e6885
...
@@ -240,6 +240,7 @@
...
@@ -240,6 +240,7 @@
and external_user_id = #{externalUserId}
and external_user_id = #{externalUserId}
and status_flag = 1
and status_flag = 1
</select>
</select>
<update
id=
"delByUserIdAndExternalUserId"
<update
id=
"delByUserIdAndExternalUserId"
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanExternalClerkRelated"
>
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanExternalClerkRelated"
>
update tab_haoban_external_clerk_related
update tab_haoban_external_clerk_related
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanWelcomeMapper.xml
View file @
c38e6885
...
@@ -6,81 +6,40 @@
...
@@ -6,81 +6,40 @@
<result
column=
"wx_enterprise_id"
jdbcType=
"VARCHAR"
property=
"wxEnterpriseId"
/>
<result
column=
"wx_enterprise_id"
jdbcType=
"VARCHAR"
property=
"wxEnterpriseId"
/>
<result
column=
"title"
jdbcType=
"VARCHAR"
property=
"title"
/>
<result
column=
"title"
jdbcType=
"VARCHAR"
property=
"title"
/>
<result
column=
"welcome_content"
jdbcType=
"VARCHAR"
property=
"welcomeContent"
/>
<result
column=
"welcome_content"
jdbcType=
"VARCHAR"
property=
"welcomeContent"
/>
<result
column=
"welcome_img"
jdbcType=
"VARCHAR"
property=
"welcomeImg"
/>
<result
column=
"status_flag"
jdbcType=
"INTEGER"
property=
"statusFlag"
/>
<result
column=
"status_flag"
jdbcType=
"INTEGER"
property=
"statusFlag"
/>
<result
column=
"open_flag"
jdbcType=
"INTEGER"
property=
"openFlag"
/>
<result
column=
"open_flag"
jdbcType=
"INTEGER"
property=
"openFlag"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
welcome_id, wx_enterprise_id, title, welcome_content,open_flag, status_flag, create_time, update_time
welcome_id, wx_enterprise_id, title, welcome_content,welcome_img,open_flag, status_flag, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_haoban_welcome
from tab_haoban_welcome
where welcome_id = #{welcomeId,jdbcType=VARCHAR}
where welcome_id = #{welcomeId,jdbcType=VARCHAR}
</select>
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
delete from tab_haoban_welcome
delete
where welcome_id = #{welcomeId,jdbcType=VARCHAR}
from tab_haoban_welcome
</delete>
where welcome_id = #{welcomeId,jdbcType=VARCHAR}
</delete>
<insert
id=
"insert"
parameterType=
"com.gic.haoban.manage.service.entity.TabWelcome"
>
<insert
id=
"insert"
parameterType=
"com.gic.haoban.manage.service.entity.TabWelcome"
>
insert into tab_haoban_welcome (welcome_id, wx_enterprise_id, title,
insert into tab_haoban_welcome (welcome_id, wx_enterprise_id, title,
welcome_content,open_flag, status_flag, create_time,
welcome_content, welcome_img, open_flag, status_flag, create_time,
update_time)
update_time)
values (#{welcomeId,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
values (#{welcomeId,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
#{welcomeContent,jdbcType=VARCHAR},#{openFlag}, #{statusFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{welcomeContent,jdbcType=VARCHAR}, #{welcomeImg,jdbcType=VARCHAR}, #{openFlag},
#{updateTime,jdbcType=TIMESTAMP})
#{statusFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
</insert>
#{updateTime,jdbcType=TIMESTAMP})
<insert
id=
"insertSelective"
parameterType=
"com.gic.haoban.manage.service.entity.TabWelcome"
>
insert into tab_haoban_welcome
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"welcomeId != null"
>
welcome_id,
</if>
<if
test=
"wxEnterpriseId != null"
>
wx_enterprise_id,
</if>
<if
test=
"title != null"
>
title,
</if>
<if
test=
"welcomeContent != null"
>
welcome_content,
</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=
"welcomeId != null"
>
#{welcomeId,jdbcType=VARCHAR},
</if>
<if
test=
"wxEnterpriseId != null"
>
#{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if
test=
"title != null"
>
#{title,jdbcType=VARCHAR},
</if>
<if
test=
"welcomeContent != null"
>
#{welcomeContent,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>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.haoban.manage.service.entity.TabWelcome"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.haoban.manage.service.entity.TabWelcome"
>
update tab_haoban_welcome
update tab_haoban_welcome
<set>
<set>
...
@@ -93,6 +52,9 @@
...
@@ -93,6 +52,9 @@
<if
test=
"welcomeContent != null"
>
<if
test=
"welcomeContent != null"
>
welcome_content = #{welcomeContent,jdbcType=VARCHAR},
welcome_content = #{welcomeContent,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"welcomeImg != null"
>
welcome_img = #{welcomeImg,jdbcType=VARCHAR},
</if>
<if
test=
"openFlag != null"
>
<if
test=
"openFlag != null"
>
open_flag = #{openFlag,jdbcType=INTEGER},
open_flag = #{openFlag,jdbcType=INTEGER},
</if>
</if>
...
@@ -108,17 +70,6 @@
...
@@ -108,17 +70,6 @@
</set>
</set>
where welcome_id = #{welcomeId,jdbcType=VARCHAR}
where welcome_id = #{welcomeId,jdbcType=VARCHAR}
</update>
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.haoban.manage.service.entity.TabWelcome"
>
update tab_haoban_welcome
set wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
welcome_content = #{welcomeContent,jdbcType=VARCHAR},
open_flag = #{openFlag,jdbcType=INTEGER},
status_flag = #{statusFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where welcome_id = #{welcomeId,jdbcType=VARCHAR}
</update>
<select
id=
"selectByWxEnterpriseId"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByWxEnterpriseId"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
select
select
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
c38e6885
...
@@ -73,11 +73,13 @@ public class LoginController extends WebBaseController {
...
@@ -73,11 +73,13 @@ public class LoginController extends WebBaseController {
private
Config
config
;
private
Config
config
;
@RequestMapping
(
"login"
)
@RequestMapping
(
"login"
)
@Deprecated
public
void
login
(
String
auth_code
,
HttpServletResponse
response
)
{
public
void
login
(
String
auth_code
,
HttpServletResponse
response
)
{
String
userJson
=
qywxCorpApiService
.
getLoginUserInfo
(
config
.
getCorpid
(),
auth_code
);
String
userJson
=
qywxCorpApiService
.
getLoginUserInfo
(
config
.
getCorpid
(),
auth_code
);
if
(
StringUtils
.
isBlank
(
userJson
))
{
if
(
StringUtils
.
isBlank
(
userJson
))
{
return
;
return
;
}
}
UserDTO
user
=
JSON
.
parseObject
(
userJson
,
UserDTO
.
class
);
UserDTO
user
=
JSON
.
parseObject
(
userJson
,
UserDTO
.
class
);
String
corpId
=
user
.
getCorpid
();
String
corpId
=
user
.
getCorpid
();
logger
.
info
(
"【企业微信登录】userId={},auth_code={},corpId={}"
,
user
.
getUserid
(),
auth_code
,
corpId
);
logger
.
info
(
"【企业微信登录】userId={},auth_code={},corpId={}"
,
user
.
getUserid
(),
auth_code
,
corpId
);
...
@@ -117,10 +119,10 @@ public class LoginController extends WebBaseController {
...
@@ -117,10 +119,10 @@ public class LoginController extends WebBaseController {
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
logger
.
warn
(
"异常"
,
e
);
logger
.
warn
(
"异常"
,
e
);
}
}
}
}
@RequestMapping
(
"login_local"
)
@RequestMapping
(
"login_local"
)
@Deprecated
public
HaobanResponse
login
()
{
public
HaobanResponse
login
()
{
LoginDTO
loginVO
=
new
LoginDTO
();
LoginDTO
loginVO
=
new
LoginDTO
();
...
@@ -141,6 +143,7 @@ public class LoginController extends WebBaseController {
...
@@ -141,6 +143,7 @@ public class LoginController extends WebBaseController {
* @return res
* @return res
*/
*/
@RequestMapping
(
"get-login-info"
)
@RequestMapping
(
"get-login-info"
)
@Deprecated
public
HaobanResponse
getLoginInfo
()
{
public
HaobanResponse
getLoginInfo
()
{
LoginDTO
loginVO
=
(
LoginDTO
)
AuthRequestUtil
.
getLoginUser
();
LoginDTO
loginVO
=
(
LoginDTO
)
AuthRequestUtil
.
getLoginUser
();
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
loginVO
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
loginVO
);
...
@@ -151,9 +154,7 @@ public class LoginController extends WebBaseController {
...
@@ -151,9 +154,7 @@ public class LoginController extends WebBaseController {
String
corpid
=
config
.
getCorpid
();
String
corpid
=
config
.
getCorpid
();
String
redirectUri
=
config
.
getHost
()
+
"login"
;
String
redirectUri
=
config
.
getHost
()
+
"login"
;
String
url
=
"https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?appid="
+
corpid
+
"&redirect_uri="
+
URLEncoder
.
encode
(
redirectUri
,
"UTF-8"
)
+
"&state=web_login@gyoss9&usertype=admin"
;
String
url
=
"https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?appid="
+
corpid
+
"&redirect_uri="
+
URLEncoder
.
encode
(
redirectUri
,
"UTF-8"
)
+
"&state=web_login@gyoss9&usertype=admin"
;
//String url = qywxCorpApiService.getGrantAuthorizationUrl(siteId, redirectUri);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
URL
.
decode
(
url
));
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
URL
.
decode
(
url
));
}
}
/**
/**
...
@@ -196,7 +197,6 @@ public class LoginController extends WebBaseController {
...
@@ -196,7 +197,6 @@ public class LoginController extends WebBaseController {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
}
/**
/**
...
@@ -290,7 +290,6 @@ public class LoginController extends WebBaseController {
...
@@ -290,7 +290,6 @@ public class LoginController extends WebBaseController {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
return
null
;
return
null
;
}
}
@RequestMapping
(
"login-wx-enterprise-list"
)
@RequestMapping
(
"login-wx-enterprise-list"
)
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
c38e6885
This diff is collapsed.
Click to expand it.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/interceptor/WebInterceptor.java
View file @
c38e6885
package
com
.
gic
.
haoban
.
manage
.
web
.
interceptor
;
package
com
.
gic
.
haoban
.
manage
.
web
.
interceptor
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.haoban.auth.api.anno.MenuCheck
;
import
com.gic.haoban.auth.api.dto.UserRightDetailDTO
;
import
com.gic.haoban.auth.api.enums.RoleCodeEnum
;
import
com.gic.haoban.auth.api.service.ClerkRightManageService
;
import
com.gic.haoban.common.utils.AuthRequestUtil
;
import
com.gic.haoban.common.utils.AuthRequestUtil
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.manage.web.anno.IgnoreLogin
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.method.HandlerMethod
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
;
import
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.PrintWriter
;
import
java.io.PrintWriter
;
import
java.util.Arrays
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
@@ -33,7 +23,7 @@ import java.util.Map;
...
@@ -33,7 +23,7 @@ import java.util.Map;
*/
*/
public
class
WebInterceptor
extends
HandlerInterceptorAdapter
{
public
class
WebInterceptor
extends
HandlerInterceptorAdapter
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
WebInterceptor
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
WebInterceptor
.
class
);
private
void
errorResult
(
HttpServletResponse
httpServletResponse
,
HaoBanErrCode
errCode
)
{
private
void
errorResult
(
HttpServletResponse
httpServletResponse
,
HaoBanErrCode
errCode
)
{
...
@@ -56,28 +46,11 @@ public class WebInterceptor extends HandlerInterceptorAdapter {
...
@@ -56,28 +46,11 @@ public class WebInterceptor extends HandlerInterceptorAdapter {
logger
.
info
(
"post-url:{}"
,
requestURI
);
logger
.
info
(
"post-url:{}"
,
requestURI
);
Map
<
String
,
String
[]>
parameterMap
=
httpServletRequest
.
getParameterMap
();
Map
<
String
,
String
[]>
parameterMap
=
httpServletRequest
.
getParameterMap
();
logger
.
info
(
"post-params:{}"
,
JSONObject
.
toJSONString
(
parameterMap
));
logger
.
info
(
"post-params:{}"
,
JSONObject
.
toJSONString
(
parameterMap
));
Object
appLoginUser
=
AuthRequestUtil
.
getAppLoginUser
();
//TODO 登陆信息拦截
if
(
ObjectUtil
.
isNotNull
(
appLoginUser
))
{
}
return
true
;
return
true
;
// UserRightDetailDTO loginUser = (UserRightDetailDTO) AuthRequestUtil.getSessionUser();
//
// if (loginUser == null) {
// this.errorResult(httpServletResponse, HaoBanErrCode.ERR_4);
// logger.info("用户不存在!");
// return false;
// }
// HandlerMethod method = null;
// if (o instanceof HandlerMethod) {
// method = (HandlerMethod) (o);
// }
// if (method == null) {
// return true;
// }
// return true;
}
}
@Override
@Override
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/qo/ClerkLoginQO.java
View file @
c38e6885
...
@@ -17,5 +17,11 @@ public class ClerkLoginQO implements Serializable {
...
@@ -17,5 +17,11 @@ public class ClerkLoginQO implements Serializable {
*/
*/
private
String
phoneNumber
;
private
String
phoneNumber
;
public
String
getPhoneNumber
()
{
return
phoneNumber
;
}
public
void
setPhoneNumber
(
String
phoneNumber
)
{
this
.
phoneNumber
=
phoneNumber
;
}
}
}
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