Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
eda54634
Commit
eda54634
authored
Jun 22, 2020
by
lal
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of develop-gitlab.youlingrc.com:8timerv2/8timerapiv200 into lal
parents
7dd32824
a56c60a9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
83 additions
and
5 deletions
+83
-5
src/main/java/cn/timer/api/controller/crm/CrmController.java
+0
-0
src/main/java/cn/timer/api/controller/crm/CrmRuleController.java
+1
-1
src/main/java/cn/timer/api/dao/crm/CrmClientDataMapper.java
+11
-2
src/main/java/cn/timer/api/dto/crm/CrmCartogramDto.java
+34
-0
src/main/java/cn/timer/api/dto/crm/CrmClientDataImportVo.java
+1
-1
src/main/java/cn/timer/api/utils/router/RouterUtils.java
+4
-0
src/main/java/cn/timer/api/utils/router/business/ReissueACardBusiness.java
+1
-1
src/main/resources/mapping/crm/CrmClientDataMapper.xml
+31
-0
No files found.
src/main/java/cn/timer/api/controller/crm/CrmController.java
View file @
eda54634
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/crm/CrmRuleController.java
View file @
eda54634
...
...
@@ -36,7 +36,7 @@ import cn.timer.api.bean.crm.CrmSeaRule;
@Component
public
class
CrmRuleController
{
@Scheduled
(
cron
=
"0 0
0/1
* * ? "
)
// 每小时扫描
@Scheduled
(
cron
=
"0 0
10
* * ? "
)
// 每小时扫描
@Transactional
public
void
getRules
()
{
// 全部业务组规则
...
...
src/main/java/cn/timer/api/dao/crm/CrmClientDataMapper.java
View file @
eda54634
...
...
@@ -7,13 +7,17 @@
*/
package
cn
.
timer
.
api
.
dao
.
crm
;
import
java.util.List
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.crm.CrmClientData
;
import
cn.timer.api.dto.crm.CrmCartogramDto
;
/**
* Title: CrmClientDataMapper.java
* Description:
* Title: CrmClientDataMapper.java Description:
*
* @author dsc
* @date 2020年6月5日
...
...
@@ -21,4 +25,9 @@ import cn.timer.api.bean.crm.CrmClientData;
*/
public
interface
CrmClientDataMapper
extends
BaseMapper
<
CrmClientData
>
{
List
<
CrmCartogramDto
>
crmCartogram
(
@RequestParam
(
"orgCode"
)
Integer
orgCode
,
@RequestParam
(
name
=
"belongUser"
,
required
=
false
)
Integer
belongUser
,
@RequestParam
(
name
=
"belongGroup"
,
required
=
false
)
Integer
belongGroup
,
@RequestParam
(
name
=
"startCreateTime"
,
required
=
false
)
String
startCreateTime
,
@RequestParam
(
name
=
"endCreateTime"
,
required
=
false
)
String
endCreateTime
);
}
src/main/java/cn/timer/api/dto/crm/CrmCartogramDto.java
0 → 100644
View file @
eda54634
/**
* Title: CrmCartogramDto.java
* Description:
* @author dsc
* @date 2020年6月22日
* @version 1.0
*/
package
cn
.
timer
.
api
.
dto
.
crm
;
import
java.io.Serializable
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* Title: CrmCartogramDto.java
*
* @Description:
* @author dsc
* @date 2020年6月22日
* @version 1.0
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
CrmCartogramDto
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
4445892627839823485L
;
private
Integer
provinceId
;
private
String
provinceName
;
private
Integer
num
;
}
src/main/java/cn/timer/api/dto/crm/CrmClientDataImportVo.java
View file @
eda54634
...
...
@@ -17,7 +17,7 @@ import lombok.NoArgsConstructor;
/**
* Title: CrmClientDataImportVo.java
*
* @Description:
* @Description:
客户导入
* @author dsc
* @date 2020年6月12日
* @version 1.0
...
...
src/main/java/cn/timer/api/utils/router/RouterUtils.java
View file @
eda54634
...
...
@@ -550,10 +550,14 @@ public class RouterUtils {
//在 原审批人 列表中 插入 一个被转派人(审批人)
}
else
if
(
sts
==
ExecutorSts
.
REDEPLOY
.
ordinal
())
{
List
<
User
>
users1
=
CollectionUtil
.
sub
(
listUser
,
0
,
i_user
+
1
);
redeployUser
.
setExecute
(
UNEXECUTED
);
users1
.
add
(
redeployUser
);
List
<
User
>
users2
=
CollectionUtil
.
sub
(
listUser
,
i_user
+
1
,
listUser
.
size
());
System
.
out
.
println
(
users1
);
System
.
out
.
println
(
users2
);
listUser
=
ListUtils
.
union
(
users1
,
users2
);
n_user
=
listUser
.
size
();
System
.
out
.
println
(
listUser
);
}
}
else
if
(
UNEXECUTED
.
equals
(
listUser
.
get
(
i_user
).
getExecute
()))
{
SpmkExecutor
.
builder
()
...
...
src/main/java/cn/timer/api/utils/router/business/ReissueACardBusiness.java
View file @
eda54634
...
...
@@ -39,7 +39,7 @@ public class ReissueACardBusiness extends SpmkAssoBusiness {
String
PatchCardTime
=
ObjectUtil
.
isNull
(
jsonObj
.
get
(
"__PatchCardTime"
,
FromData
.
class
))
?
null
:
jsonObj
.
get
(
"__PatchCardTime"
,
FromData
.
class
).
getValue
();
// 缺卡原因
String
cardShortage
=
ObjectUtil
.
isNull
(
jsonObj
.
get
(
"cardShortage"
,
FromData
.
class
))
?
null
:
jsonObj
.
get
(
"cardShortage"
,
FromData
.
class
).
getValue
();
// 缺卡时段-上班、下班-前端未改
String
cardSupplementType
=
ObjectUtil
.
isNull
(
jsonObj
.
get
(
"__CardSupplementType"
,
FromData
.
class
))
?
null
:
jsonObj
.
get
(
"__CardSupplementType"
,
FromData
.
class
).
getValue
();
...
...
src/main/resources/mapping/crm/CrmClientDataMapper.xml
0 → 100644
View file @
eda54634
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.crm.CrmClientDataMapper"
>
<select
id=
"crmCartogram"
resultType=
"cn.timer.api.dto.crm.CrmCartogramDto"
>
SELECT
province_id,province as provinceName,count(province_id) num
FROM
crm_client_data
WHERE
org_code = #{orgCode}
<if
test=
'null != belongUser and belongUser !=""'
>
AND
belong_user = #{belongUser}
</if>
<if
test=
'null != belongGroup and belongGroup !=""'
>
AND
belong_group = #{belongGroup}
</if>
<if
test=
'null != startCreateTime and startCreateTime !=""'
>
AND
create_time
<![CDATA[>=]]>
#{startCreateTime}
</if>
<if
test=
'null != endCreateTime and endCreateTime !=""'
>
AND
create_time
<![CDATA[<=]]>
#{endCreateTime}
</if>
GROUP BY
province_id
</select>
</mapper>
\ No newline at end of file
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