Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李苗
/
Vion-DevOps
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 8112bb65
authored
Jul 11, 2024
by
HlQ
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[fix] 修改合同同步和合同文件同步任务的执行时间
[add] 合同进度注释完善
1 parent
045ca186
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
8 deletions
src/main/java/vion/cron/ContractRunner.java
src/main/java/vion/interceptor/InterceptorConfig.java
src/main/java/vion/model/Contract.java
src/main/java/vion/model/ContractPayment.java
src/main/java/vion/vo/ContractVO.java
src/main/java/vion/cron/ContractRunner.java
View file @
8112bb6
...
...
@@ -293,7 +293,7 @@ public class ContractRunner {
log.info("【结束】从crm系统同步合同信息");
}*/
@Scheduled
(
cron
=
"0 0
*
* * *"
)
@Scheduled
(
cron
=
"0 0
8-20
* * *"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
contractSync1
()
{
Long
modifyTime
=
Opt
.
ofNullable
((
Long
)
redissonClient
.
getBucket
(
RedisKeyEnum
.
CONTRACT_SYNC_NEW_TIME
.
getVal
()).
get
()).
orElse
(
0L
);
...
...
@@ -681,7 +681,7 @@ public class ContractRunner {
log
.
info
(
"【结束】计算门店维保状态"
);
}
@Scheduled
(
cron
=
"0 10
*
? * *"
)
@Scheduled
(
cron
=
"0 10
8-20
? * *"
)
public
void
syncContractFile
()
{
contractService
.
syncContractFile
(
null
);
}
...
...
src/main/java/vion/interceptor/InterceptorConfig.java
View file @
8112bb6
...
...
@@ -19,8 +19,7 @@ public class InterceptorConfig implements WebMvcConfigurer {
}))
.
addPathPatterns
(
"/api/**"
)
.
excludePathPatterns
(
"/api/dictionarys"
)
.
excludePathPatterns
(
"/api/upLoadFile"
,
"/api/ding/callback/**"
,
"/api/ding/getPlatformToken"
,
"/api"
+
"/wechat/**"
,
"/error"
)
.
excludePathPatterns
(
"/api/upLoadFile"
,
"/api/ding/callback/**"
,
"/api/ding/getPlatformToken"
,
"/api/wechat/**"
,
"/error"
)
.
excludePathPatterns
(
"/api/order/sign/*"
)
.
excludePathPatterns
(
"/api/form/sign/*"
)
.
excludePathPatterns
(
"/api/wechatCallback"
)
...
...
src/main/java/vion/model/Contract.java
View file @
8112bb6
...
...
@@ -60,7 +60,7 @@ public class Contract {
private
Date
maintainEdate
;
/**
* 合同进度:1-签订 2-到货 3-系统验收(初验) 4-项目验收(终验) 5-质保 6-第一笔维保款 7-第二笔维保款 8-第三笔维保款
* 合同进度:1-签订 2-到货 3-系统验收(初验) 4-项目验收(终验) 5-质保 6-第一笔维保款 7-第二笔维保款 8-第三笔维保款
9-维保进度款 10-维保验收款
*/
@TableField
(
value
=
"\"status\""
)
private
Integer
status
;
...
...
src/main/java/vion/model/ContractPayment.java
View file @
8112bb6
...
...
@@ -30,7 +30,7 @@ public class ContractPayment {
private
Long
contractId
;
/**
* 付款方式:1-签订 2-到货 3-系统验收 4-项目验收 5-质保 6-第一笔维保款 7-第二笔维保款 8-第三笔维保款
* 付款方式:1-签订 2-到货 3-系统验收 4-项目验收 5-质保 6-第一笔维保款 7-第二笔维保款 8-第三笔维保款
9-维保进度款 10-维保验收款
*/
@TableField
(
value
=
"payment_type"
)
private
Integer
paymentType
;
...
...
src/main/java/vion/vo/ContractVO.java
View file @
8112bb6
...
...
@@ -6,6 +6,7 @@ import com.github.liaochong.myexcel.core.annotation.ExcelModel;
import
lombok.Getter
;
import
lombok.Setter
;
import
vion.model.ContractLog
;
import
vion.model.ContractPayment
;
import
vion.model.RContractProduct
;
import
java.math.BigDecimal
;
...
...
@@ -58,9 +59,9 @@ public class ContractVO {
private
Date
maintainEdate
;
/**
* 合同进度:1-签订 2-到货 3-系统验收(初验) 4-项目验收(终验) 5-质保 6-第一笔维保款 7-第二笔维保款 8-第三笔维保款
* 合同进度:1-签订 2-到货 3-系统验收(初验) 4-项目验收(终验) 5-质保 6-第一笔维保款 7-第二笔维保款 8-第三笔维保款
9-维保进度款 10-维保验收款
*/
@ExcelColumn
(
order
=
7
,
title
=
"合同进度"
,
mapping
=
"1:合同签订,2:到货,3:系统验收,4:项目验收,5:质保,6:第一笔维保款,7:第二笔维保款,8:第三笔维保款"
)
@ExcelColumn
(
order
=
7
,
title
=
"合同进度"
,
mapping
=
"1:合同签订,2:到货,3:系统验收,4:项目验收,5:质保,6:第一笔维保款,7:第二笔维保款,8:第三笔维保款
,9:维保进度款,10:维保验收款
"
)
private
Integer
status
;
/**
...
...
@@ -174,4 +175,6 @@ public class ContractVO {
private
List
<
ContractLog
>
contractLogs
;
private
List
<
RContractProduct
>
contractProducts
;
private
List
<
ContractPayment
>
contractPayments
;
}
\ No newline at end of file
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