Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8d9d2b86
authored
Dec 05, 2020
by
水库浪子
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改分页BUG
1 parent
020b981b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
36 additions
and
25 deletions
linkwe-admin/src/main/java/com/linkwechat/LinkWeChatApplication.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCustomerController.java
linkwe-admin/src/main/resources/application-druid.yml
linkwe-framework/src/main/java/com/linkwechat/framework/config/MyBatisPlusConfig.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeFlowerCustomerTagRel.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
linkwe-wecom/src/main/resources/mapper/wecom/WeCustomerMapper.xml
pom.xml
linkwe-admin/src/main/java/com/linkwechat/LinkWeChatApplication.java
View file @
8d9d2b8
...
@@ -6,8 +6,6 @@ import org.mybatis.spring.annotation.MapperScan;
...
@@ -6,8 +6,6 @@ import org.mybatis.spring.annotation.MapperScan;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
;
import
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
;
import
org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
;
/**
/**
* 启动程序
* 启动程序
...
@@ -35,4 +33,6 @@ public class LinkWeChatApplication
...
@@ -35,4 +33,6 @@ public class LinkWeChatApplication
" | | \\ / \\ / \n"
+
" | | \\ / \\ / \n"
+
" ''-' `'-' `-..-' "
);
" ''-' `'-' `-..-' "
);
}
}
}
}
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCustomerController.java
View file @
8d9d2b8
package
com
.
linkwechat
.
web
.
controller
.
wecom
;
package
com
.
linkwechat
.
web
.
controller
.
wecom
;
import
java.util.List
;
import
com.linkwechat.common.annotation.Log
;
import
com.linkwechat.common.annotation.Log
;
import
com.linkwechat.common.constant.WeConstans
;
import
com.linkwechat.common.constant.WeConstans
;
import
com.linkwechat.common.core.controller.BaseController
;
import
com.linkwechat.common.core.controller.BaseController
;
...
@@ -10,22 +8,17 @@ import com.linkwechat.common.core.page.TableDataInfo;
...
@@ -10,22 +8,17 @@ import com.linkwechat.common.core.page.TableDataInfo;
import
com.linkwechat.common.enums.BusinessType
;
import
com.linkwechat.common.enums.BusinessType
;
import
com.linkwechat.common.utils.Threads
;
import
com.linkwechat.common.utils.Threads
;
import
com.linkwechat.common.utils.poi.ExcelUtil
;
import
com.linkwechat.common.utils.poi.ExcelUtil
;
import
com.linkwechat.wecom.domain.WeCustomer
;
import
com.linkwechat.wecom.domain.vo.WeMakeCustomerTag
;
import
com.linkwechat.wecom.domain.vo.WeMakeCustomerTag
;
import
org.springframework.security.access.prepost.PreAuthoriz
e
;
import
com.linkwechat.wecom.service.IWeCustomerServic
e
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.core.context.SecurityContext
;
import
org.springframework.security.core.context.SecurityContext
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
java.util.List
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.linkwechat.wecom.domain.WeCustomer
;
import
com.linkwechat.wecom.service.IWeCustomerService
;
/**
/**
* 企业微信客户Controller
* 企业微信客户Controller
...
...
linkwe-admin/src/main/resources/application-druid.yml
View file @
8d9d2b8
...
@@ -6,9 +6,9 @@ spring:
...
@@ -6,9 +6,9 @@ spring:
druid
:
druid
:
# 主库数据源
# 主库数据源
master
:
master
:
url
:
jdbc:mysql://
127.0.0.1:3306/ry-vue
?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url
:
jdbc:mysql://
cdb-gvebaa90.bj.tencentcdb.com:10179/link-wechat
?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
root
username
:
root
password
:
123456
password
:
linkwechat2020
# 从库数据源
# 从库数据源
slave
:
slave
:
# 从数据源开关/默认关闭
# 从数据源开关/默认关闭
...
...
linkwe-framework/src/main/java/com/linkwechat/framework/config/MyBatisPlusConfig.java
0 → 100644
View file @
8d9d2b8
package
com
.
linkwechat
.
framework
.
config
;
import
com.github.pagehelper.PageInterceptor
;
import
org.apache.ibatis.plugin.Interceptor
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
/**
* Mybatis支持*匹配扫描包
*
* @author ruoyi
*/
@Configuration
public
class
MyBatisPlusConfig
{
@Bean
public
Interceptor
[]
plugins
()
{
return
new
Interceptor
[]{
new
PageInterceptor
()};
}
}
\ No newline at end of file
\ No newline at end of file
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeFlowerCustomerTagRel.java
View file @
8d9d2b8
...
@@ -31,7 +31,7 @@ public class WeFlowerCustomerTagRel
...
@@ -31,7 +31,7 @@ public class WeFlowerCustomerTagRel
/** $column.columnComment */
/** $column.columnComment */
@TableId
@TableId
private
Long
id
=
SnowFlakeUtil
.
nextId
()
;
private
Long
id
;
/** 添加客户的企业微信用户 */
/** 添加客户的企业微信用户 */
private
Long
flowerCustomerRelId
;
private
Long
flowerCustomerRelId
;
...
@@ -45,9 +45,4 @@ public class WeFlowerCustomerTagRel
...
@@ -45,9 +45,4 @@ public class WeFlowerCustomerTagRel
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
createTime
;
private
Date
createTime
;
}
}
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
View file @
8d9d2b8
...
@@ -25,7 +25,6 @@ import com.linkwechat.wecom.domain.vo.WeLeaveUserInfoAllocateVo;
...
@@ -25,7 +25,6 @@ import com.linkwechat.wecom.domain.vo.WeLeaveUserInfoAllocateVo;
import
com.linkwechat.wecom.domain.vo.WeMakeCustomerTag
;
import
com.linkwechat.wecom.domain.vo.WeMakeCustomerTag
;
import
com.linkwechat.wecom.mapper.WeCustomerMapper
;
import
com.linkwechat.wecom.mapper.WeCustomerMapper
;
import
com.linkwechat.wecom.service.*
;
import
com.linkwechat.wecom.service.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.core.context.SecurityContext
;
import
org.springframework.security.core.context.SecurityContext
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.security.core.context.SecurityContextHolder
;
...
@@ -111,6 +110,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
...
@@ -111,6 +110,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
*/
*/
@Override
@Override
public
List
<
WeCustomer
>
selectWeCustomerList
(
WeCustomer
weCustomer
)
{
public
List
<
WeCustomer
>
selectWeCustomerList
(
WeCustomer
weCustomer
)
{
return
weCustomerMapper
.
selectWeCustomerList
(
weCustomer
);
return
weCustomerMapper
.
selectWeCustomerList
(
weCustomer
);
}
}
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeCustomerMapper.xml
View file @
8d9d2b8
...
@@ -100,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -100,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and wt.tag_id=#{tagIds}
and wt.tag_id=#{tagIds}
</if>
</if>
</if>
</if>
<if
test=
"beginTime != null and beginTime != ''"
>
<!-- 开始时间检索 -->
<if
test=
"beginTime != null and beginTime != ''"
>
<!-- 开始时间检索 -->
AND date_format(wfcr.create_time,'%y%m%d')
>
= date_format(#{beginTime},'%y%m%d')
AND date_format(wfcr.create_time,'%y%m%d')
>
= date_format(#{beginTime},'%y%m%d')
</if>
</if>
...
...
pom.xml
View file @
8d9d2b8
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<bitwalker.version>
1.19
</bitwalker.version>
<bitwalker.version>
1.19
</bitwalker.version>
<swagger.version>
2.9.2
</swagger.version>
<swagger.version>
2.9.2
</swagger.version>
<kaptcha.version>
2.3.2
</kaptcha.version>
<kaptcha.version>
2.3.2
</kaptcha.version>
<pagehelper.boot.version>
1.2.
5
</pagehelper.boot.version>
<pagehelper.boot.version>
1.2.
7
</pagehelper.boot.version>
<fastjson.version>
1.2.73
</fastjson.version>
<fastjson.version>
1.2.73
</fastjson.version>
<oshi.version>
3.9.1
</oshi.version>
<oshi.version>
3.9.1
</oshi.version>
<commons.io.version>
2.5
</commons.io.version>
<commons.io.version>
2.5
</commons.io.version>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment